VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
makVrv::DtSphericalVertexCache< T > Class Template Reference

template<class T>
class makVrv::DtSphericalVertexCache< T >

Caches the cartesian version of spherical vertices and their normals into the specified arrays.

Public Member Functions

 DtSphericalVertexCache ()
 
int getIndex (const DtSphericalVertex< T > &vertex)
 

Public Attributes

std::map< DtSphericalVertex< T >
, int
mySphericalToIndexMap
 
std::list< DtVector3< T > > myVertices
 
std::list< DtVector3< T > > myNormals
 
int myNextIndex
 

Constructor & Destructor Documentation

CTOR Instantiates a new DtSphericalVertexCache for building the vertex and normal arrays for the ellipse arc model's geometry.

Member Function Documentation

template<class T >
int makVrv::DtSphericalVertexCache< T >::getIndex ( const DtSphericalVertex< T > &  vertex)

Get the given vertex's index Adds the given SphericalVertex into the vertex array and returns its index, or simply returns the index if it has already been added. Also generates and stores the vertex's normal.

Parameters
vertexthe vertex to store and/or return the index of
Returns
the requested vertex's index

Member Data Documentation

template<class T >
std::map<DtSphericalVertex<T>, int> makVrv::DtSphericalVertexCache< T >::mySphericalToIndexMap

Stores the indices of the vertices in the vertex array.

template<class T >
std::list<DtVector3<T> > makVrv::DtSphericalVertexCache< T >::myVertices

The vertex array to update.

template<class T >
std::list<DtVector3<T> > makVrv::DtSphericalVertexCache< T >::myNormals

The normal array to update.

template<class T >
int makVrv::DtSphericalVertexCache< T >::myNextIndex

The index of the next inserted vertex.


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)