Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

VMDDisplayList Class Reference

Display list data structure used to hold all of the rendering commands VMD generates and interprets in order to do its 3-D rendering. More...

#include <VMDDisplayList.h>

List of all members.

Public Methods

 VMDDisplayList ()
 constructor. More...

 ~VMDDisplayList ()
 destructor. More...

void * operator new (size_t)
 potentially shared mem allocation. More...

void operator delete (void *, size_t)
 potentially shared mem allocation. More...

void * append (int code, int size)
 Append a new item. Return space for the requested number of bytes. More...

void reset_and_free (unsigned long newserial)
const VMDClipPlaneclipplane (int i)
 return clip plane info for read-only access. More...

void first (VMDLinkIter *it) const
 get head of the list. More...

int next (VMDLinkIter *it, char *&d) const
 get next item in the list. More...

int set_clip_center (int i, const float *)
 Set clip plane properties. Return true on success, false if failed. More...

int set_clip_normal (int i, const float *)
 Set clip plane properties. Return true on success, false if failed. More...

int set_clip_color (int i, const float *)
 Set clip plane properties. Return true on success, false if failed. More...

int set_clip_status (int i, int)
 Set clip plane properties. Return true on success, false if failed. More...


Public Attributes

Matrix4 mat
 The transformation matrix for this display list. More...

unsigned long serial
 globally unique serial number for current contents. More...

int cacheskip
 display list cache skip flag. More...

int pbc
 periodic boundary condition flags. More...

int npbc
 number of times to replicate the image. More...

Matrix4 transX
Matrix4 transY
Matrix4 transZ
 how to create periodic images. More...

Matrix4 transXinv
Matrix4 transYinv
Matrix4 transZinv
 the inverse transforms. More...

VMDClipPlane clipplanes [VMD_MAX_CLIP_PLANE]
 user clip planes. More...

float ambient
 Material properties for this display list. More...

float specular
 Material properties for this display list. More...

float diffuse
 Material properties for this display list. More...

float shininess
 Material properties for this display list. More...

float opacity
 Material properties for this display list. More...

int materialtag
 used to avoid unnecessary material changes. More...


Detailed Description

Display list data structure used to hold all of the rendering commands VMD generates and interprets in order to do its 3-D rendering.

Definition at line 60 of file VMDDisplayList.h.


Constructor & Destructor Documentation

VMDDisplayList::VMDDisplayList  
 

constructor.

Definition at line 53 of file VMDDisplayList.C.

References cacheskip, materialtag, npbc, NULL, pbc, PBC_NONE, and serial.

VMDDisplayList::~VMDDisplayList  
 

destructor.

Definition at line 75 of file VMDDisplayList.C.

References vmd_dealloc.


Member Function Documentation

void * VMDDisplayList::append int    code,
int    size
 

Append a new item. Return space for the requested number of bytes.

Definition at line 79 of file VMDDisplayList.C.

References ALLOC_ALIGNMASK, BASE_DISPLAYLIST_SIZE, GROWN_DISPLAYLIST_SIZE, NULL, and vmd_resize_alloc.

Referenced by Displayable::append, DispCmdPickPointIndexArray::putdata, DispCmdPickPointIndex::putdata, DispCmdPickPoint::putdata, DispCmdLineWidth::putdata, DispCmdLineType::putdata, DispCmdSphereType::putdata, DispCmdSphereRes::putdata, DispCmdVolumeTexture::putdata, DispCmdVolSlice::putdata, DispCmdTextSize::putdata, DispCmdComment::putdata, DispCmdTextOffset::putdata, DispCmdText::putdata, DispCmdColorIndex::putdata, DispCmdCone::putdata, DispCmdCylinder::putdata, DispCmdWireMesh::putdata, DispCmdTriStrips::putdata, DispCmdTriMesh::putdata, DispCmdSquare::putdata, DispCmdPolyLineArray::putdata, DispCmdLineArray::putdata, DispCmdLine::putdata, DispCmdLitPointArray::putdata, DispCmdPointArray::putdata, DispCmdSphereArray::putdata, DispCmdSphereIndex::putdata, DispCmdSphere::putdata, DispCmdPoint::putdata, DispCmdDataBlock::putdata, and DispCmdTriangle::set_array.

const VMDClipPlane* VMDDisplayList::clipplane int    i [inline]
 

return clip plane info for read-only access.

Definition at line 98 of file VMDDisplayList.h.

References NULL, and VMD_MAX_CLIP_PLANE.

Referenced by Displayable::clipplane.

void VMDDisplayList::first VMDLinkIter   it const [inline]
 

get head of the list.

Definition at line 118 of file VMDDisplayList.h.

Referenced by DisplayDevice::pick, PSDisplayDevice::render, OpenGLRenderer::render, and FileRenderer::render.

int VMDDisplayList::next VMDLinkIter   it,
char *&    d
const [inline]
 

get next item in the list.

Definition at line 124 of file VMDDisplayList.h.

Referenced by DisplayDevice::pick, PSDisplayDevice::render, OpenGLRenderer::render, and FileRenderer::render.

void VMDDisplayList::operator delete void *   ,
size_t   
 

potentially shared mem allocation.

Definition at line 49 of file VMDDisplayList.C.

References vmd_dealloc.

void * VMDDisplayList::operator new size_t   
 

potentially shared mem allocation.

Definition at line 45 of file VMDDisplayList.C.

References vmd_alloc.

void VMDDisplayList::reset_and_free unsigned long    newserial
 

Definition at line 115 of file VMDDisplayList.C.

References BASE_DISPLAYLIST_SIZE, NULL, serial, and vmd_dealloc.

Referenced by Displayable::reset_disp_list, and Displayable::~Displayable.

int VMDDisplayList::set_clip_center int    i,
const float *   
 

Set clip plane properties. Return true on success, false if failed.

Definition at line 139 of file VMDDisplayList.C.

References VMDClipPlane::center, clipplanes, and VMD_MAX_CLIP_PLANE.

Referenced by Displayable::set_clip_center.

int VMDDisplayList::set_clip_color int    i,
const float *   
 

Set clip plane properties. Return true on success, false if failed.

Definition at line 147 of file VMDDisplayList.C.

References clipplanes, VMDClipPlane::color, and VMD_MAX_CLIP_PLANE.

Referenced by Displayable::set_clip_color.

int VMDDisplayList::set_clip_normal int    i,
const float *   
 

Set clip plane properties. Return true on success, false if failed.

Definition at line 129 of file VMDDisplayList.C.

References clipplanes, norm, VMDClipPlane::normal, and VMD_MAX_CLIP_PLANE.

Referenced by Displayable::set_clip_normal.

int VMDDisplayList::set_clip_status int    i,
int   
 

Set clip plane properties. Return true on success, false if failed.

Definition at line 155 of file VMDDisplayList.C.

References clipplanes, VMDClipPlane::mode, and VMD_MAX_CLIP_PLANE.

Referenced by Displayable::set_clip_status.


Member Data Documentation

float VMDDisplayList::ambient
 

Material properties for this display list.

Definition at line 84 of file VMDDisplayList.h.

Referenced by Displayable::change_material, Displayable::Displayable, OpenGLRenderer::render, and FileRenderer::render.

int VMDDisplayList::cacheskip
 

display list cache skip flag.

Definition at line 76 of file VMDDisplayList.h.

Referenced by Displayable::cacheskip, Displayable::Displayable, OpenGLRenderer::render, and VMDDisplayList.

VMDClipPlane VMDDisplayList::clipplanes[VMD_MAX_CLIP_PLANE]
 

user clip planes.

Definition at line 88 of file VMDDisplayList.h.

Referenced by OpenGLRenderer::render, FileRenderer::render, set_clip_center, set_clip_color, set_clip_normal, and set_clip_status.

float VMDDisplayList::diffuse
 

Material properties for this display list.

Definition at line 84 of file VMDDisplayList.h.

Referenced by Displayable::change_material, Displayable::Displayable, OpenGLRenderer::render, and FileRenderer::render.

Matrix4 VMDDisplayList::mat
 

The transformation matrix for this display list.

Definition at line 74 of file VMDDisplayList.h.

Referenced by DisplayDevice::pick, Displayable::recalc_mat, PSDisplayDevice::render, OpenGLRenderer::render, and FileRenderer::render.

int VMDDisplayList::materialtag
 

used to avoid unnecessary material changes.

Definition at line 85 of file VMDDisplayList.h.

Referenced by Displayable::change_material, Displayable::curr_material, Displayable::Displayable, OpenGLRenderer::render, FileRenderer::render, and VMDDisplayList.

int VMDDisplayList::npbc
 

number of times to replicate the image.

Definition at line 78 of file VMDDisplayList.h.

Referenced by DisplayDevice::find_pbc_cells, DrawMolItem::get_pbc_images, DrawMolItem::set_pbc_images, and VMDDisplayList.

float VMDDisplayList::opacity
 

Material properties for this display list.

Definition at line 84 of file VMDDisplayList.h.

Referenced by Displayable::change_material, Displayable::Displayable, OpenGLRenderer::render, and FileRenderer::render.

int VMDDisplayList::pbc
 

periodic boundary condition flags.

Definition at line 77 of file VMDDisplayList.h.

Referenced by DisplayDevice::find_pbc_cells, DisplayDevice::find_pbc_images, DrawMolItem::get_pbc, DrawMolItem::prepare, DrawMolItem::set_pbc, and VMDDisplayList.

unsigned long VMDDisplayList::serial
 

globally unique serial number for current contents.

Definition at line 75 of file VMDDisplayList.h.

Referenced by OpenGLRenderer::render, reset_and_free, and VMDDisplayList.

float VMDDisplayList::shininess
 

Material properties for this display list.

Definition at line 84 of file VMDDisplayList.h.

Referenced by Displayable::change_material, Displayable::Displayable, OpenGLRenderer::render, and FileRenderer::render.

float VMDDisplayList::specular
 

Material properties for this display list.

Definition at line 84 of file VMDDisplayList.h.

Referenced by Displayable::change_material, Displayable::Displayable, OpenGLRenderer::render, and FileRenderer::render.

Matrix4 VMDDisplayList::transX
 

Definition at line 79 of file VMDDisplayList.h.

Referenced by DisplayDevice::find_pbc_images.

Matrix4 VMDDisplayList::transXinv
 

Definition at line 80 of file VMDDisplayList.h.

Referenced by DisplayDevice::find_pbc_images.

Matrix4 VMDDisplayList::transY
 

Definition at line 79 of file VMDDisplayList.h.

Referenced by DisplayDevice::find_pbc_images.

Matrix4 VMDDisplayList::transYinv
 

Definition at line 80 of file VMDDisplayList.h.

Referenced by DisplayDevice::find_pbc_images.

Matrix4 VMDDisplayList::transZ
 

how to create periodic images.

Definition at line 79 of file VMDDisplayList.h.

Referenced by DisplayDevice::find_pbc_images.

Matrix4 VMDDisplayList::transZinv
 

the inverse transforms.

Definition at line 80 of file VMDDisplayList.h.

Referenced by DisplayDevice::find_pbc_images.


The documentation for this class was generated from the following files:
Generated on Sat Aug 30 01:27:55 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002