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

DispCmdTriMesh Struct Reference

draw a mesh consisting of vertices, facets, colors, normals etc. More...

#include <DispCmds.h>

List of all members.

Public Methods

void getpointers (float *&cnv, int *&f) const
 retrieve pointers to data following DispCmd in the display list float * cnv : array of colors, normals, vertices int * f : facet vertex index array. More...

void getpointers (float *&c, float *&n, float *&v) const
 retrieve pointers to data following DispCmd in the display list float *cnv : arrays of colors, normals, vertices. More...

void getpointers (unsigned char *&c, float *&n, float *&v) const
void getpointers (unsigned char *&c, signed char *&n, float *&v) const
void getpointers (float *&n, float *&v) const
 retrieve pointers to data following DispCmd in the display list float *nv : arrays of normals, vertices. More...

void getpointers (signed char *&n, float *&v) const

Static Public Methods

void putdata (const float *vertices, const float *normals, const float *colors, int num_facets, VMDDisplayList *)
void putdata (const float *vertices, const float *normals, const unsigned char *colors, int num_facets, VMDDisplayList *)
void putdata (const float *vertices, const char *normals, const unsigned char *colors, int num_facets, VMDDisplayList *)
void putdata (const float *vertices, const float *normals, const float *colors, int num_verts, const int *facets, int num_facets, int enablestrips, VMDDisplayList *)

Public Attributes

int pervertexcolors
 mesh contains per-vertex colors. More...

int pervertexnormals
 mesh contains per-vertex colors. More...

int numverts
 number of vertices in mesh. More...

int numfacets
 number of facets. More...


Detailed Description

draw a mesh consisting of vertices, facets, colors, normals etc.

Definition at line 288 of file DispCmds.h.


Member Function Documentation

void DispCmdTriMesh::getpointers signed char *&    n,
float *&    v
const [inline]
 

Definition at line 374 of file DispCmds.h.

References n, and numverts.

void DispCmdTriMesh::getpointers float *&    n,
float *&    v
const [inline]
 

retrieve pointers to data following DispCmd in the display list float *nv : arrays of normals, vertices.

Definition at line 369 of file DispCmds.h.

References n, and numverts.

void DispCmdTriMesh::getpointers unsigned char *&    c,
signed char *&    n,
float *&    v
const [inline]
 

Definition at line 361 of file DispCmds.h.

References n, and numverts.

void DispCmdTriMesh::getpointers unsigned char *&    c,
float *&    n,
float *&    v
const [inline]
 

Definition at line 355 of file DispCmds.h.

References n, and numverts.

void DispCmdTriMesh::getpointers float *&    c,
float *&    n,
float *&    v
const [inline]
 

retrieve pointers to data following DispCmd in the display list float *cnv : arrays of colors, normals, vertices.

Definition at line 349 of file DispCmds.h.

References n, and numverts.

void DispCmdTriMesh::getpointers float *&    cnv,
int *&    f
const [inline]
 

retrieve pointers to data following DispCmd in the display list float * cnv : array of colors, normals, vertices int * f : facet vertex index array.

Definition at line 342 of file DispCmds.h.

References numverts.

Referenced by putdata, and FileRenderer::render.

void DispCmdTriMesh::putdata const float *    vertices,
const float *    normals,
const float *    colors,
int    num_verts,
const int *    facets,
int    num_facets,
int    enablestrips,
VMDDisplayList  
[static]
 

Definition at line 536 of file DispCmds.C.

References VMDDisplayList::append, DTRIMESH_C4F_N3F_V3F, getpointers, NULL, numfacets, numverts, pervertexcolors, pervertexnormals, and DispCmdTriStrips::putdata.

void DispCmdTriMesh::putdata const float *    vertices,
const char *    normals,
const unsigned char *    colors,
int    num_facets,
VMDDisplayList  
[static]
 

Definition at line 491 of file DispCmds.C.

References VMDDisplayList::append, DTRIMESH_C4U_N3B_V3F, getpointers, n, NULL, numfacets, numverts, pervertexcolors, and pervertexnormals.

void DispCmdTriMesh::putdata const float *    vertices,
const float *    normals,
const unsigned char *    colors,
int    num_facets,
VMDDisplayList  
[static]
 

Definition at line 448 of file DispCmds.C.

References VMDDisplayList::append, DTRIMESH_C4U_N3F_V3F, getpointers, n, NULL, numfacets, numverts, pervertexcolors, and pervertexnormals.

void DispCmdTriMesh::putdata const float *    vertices,
const float *    normals,
const float *    colors,
int    num_facets,
VMDDisplayList  
[static]
 

Definition at line 378 of file DispCmds.C.

References VMDDisplayList::append, cross_prod, DTRIMESH_C3F_N3F_V3F, getpointers, n, NULL, numfacets, numverts, pervertexcolors, pervertexnormals, vec_normalize, and vec_sub.


Member Data Documentation

int DispCmdTriMesh::numfacets
 

number of facets.

Definition at line 382 of file DispCmds.h.

Referenced by putdata, and FileRenderer::render.

int DispCmdTriMesh::numverts
 

number of vertices in mesh.

Definition at line 381 of file DispCmds.h.

Referenced by getpointers, putdata, and FileRenderer::render.

int DispCmdTriMesh::pervertexcolors
 

mesh contains per-vertex colors.

Definition at line 379 of file DispCmds.h.

Referenced by putdata, and FileRenderer::render.

int DispCmdTriMesh::pervertexnormals
 

mesh contains per-vertex colors.

Definition at line 380 of file DispCmds.h.

Referenced by putdata, and FileRenderer::render.


The documentation for this struct was generated from the following files:
Generated on Fri Nov 8 02:46:58 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002