VR-Forces 4.6.1 Class Documentation
 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

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

Public Member Functions

 DtSphericalVertexCache ()
 CTOR Instantiates a new DtSphericalVertexCache for building the vertex and normal arrays for the ellipse arc model's geometry.
int 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.

Public Attributes

std::map< DtSphericalVertex< T >
, int
mySphericalToIndexMap
 Stores the indices of the vertices in the vertex array.
std::list< DtVector3< T > > myVertices
 The vertex array to update.
std::list< DtVector3< T > > myNormals
 The normal array to update.
int myNextIndex
 The index of the next inserted vertex.

Detailed Description

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

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

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 Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)