VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes
makVrv::DtAggregatedGeometry Class Reference

Public Types

typedef std::map< int,
VectorGeometryLocations
MapModelsToVectorGeometryLocations
typedef std::map< int,
VectorMaterials
MapModelsToVectorMaterials
typedef std::map< int,
VectorOsgTextures
MapModelsToVectorOsgTextures

Public Member Functions

 DtAggregatedGeometry ()
virtual ~DtAggregatedGeometry ()
virtual int numModels (void) const
 number of models registered here
virtual int modelId (int index) const
 the actual model id of the model with index
VectorGeometryLocationsgetOrCreateLocationsFor (int modelId)
VectorMaterialsgetOrCreateMaterialsFor (int modelId)
VectorOsgTexturesgetOrCreateTexturesFor (int modelId)
virtual const
VectorGeometryLocations
getVectorGeometryLocations (int modelId) const
 vector of the 'specs' for the model
virtual bool hasVectorGeometryLocations (int modelId) const
 This being true indicates that the model with id modelId was infact registered here.
virtual const VectorMaterialsgetVectorMaterials (int modelId) const
virtual const VectorOsgTexturesgetVectorOsgTextures (const int modelId) const
 vector of osg textures encountered within the model
int vertexAndAttributesBufferSize (void) const
 size of all vertex attributes (vertices, normals, colors, texture coords)
void copyVertexAndAttributeDataInto (DtGlBuffer *vertexAndAttributesBuffer) const
 copy all vertex data into a gl buffer
osg::Geometry * aggregatedGeometry (void)
virtual void printSpecsForModelId (int modelId)
 debugging
virtual void printStats ()
 debugging
virtual void testDrawUsingDrawElements ()
 debugging
virtual unsigned int vertexBufferSizeInBytes () const
 Accessors for the Vertex Buffer/Size.
virtual unsigned int vertexBufferNumElements () const
virtual const void * verticesPointer () const
virtual unsigned int numVertices (void) const
virtual unsigned int normalBufferSizeInBytes () const
 Accessors for the Normals' Buffer/Size.
virtual unsigned int normalBufferNumElements () const
virtual const void * normalsPointer () const
virtual unsigned int numNormals (void) const
virtual unsigned int colorBufferSizeInBytes () const
 Accessors for the Colors' Buffer/Size.
virtual unsigned int colorBufferNumElements () const
virtual const void * colorsPointer () const
virtual unsigned int numColors (void) const
virtual unsigned int textureCoordsBufferSizeInBytes (unsigned int unit) const
 Accessors for the Texture Coordinates' Buffer/Size.
virtual unsigned int textureCoordsBufferNumElements (unsigned int unit) const
virtual const void * textureCoordsPointer (unsigned int unit) const
virtual unsigned int numTextureCoords (unsigned int unit) const
virtual const void * indexBufferPointer () const
 Accessors for the Index Buffer/Size.
virtual unsigned int indexBufferSizeInBytes () const

Public Attributes

osg::ref_ptr< osg::Geometry > myAggregatedGeometry
MapModelsToVectorGeometryLocations myMapModelsToGeometryLocations
MapModelsToVectorMaterials myMapModelsToVectorMaterials
MapModelsToVectorOsgTextures myMapModelsToVectorOsgTextures

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtAggregatedGeometry::DtAggregatedGeometry ( )
virtual makVrv::DtAggregatedGeometry::~DtAggregatedGeometry ( )
virtual

Member Function Documentation

virtual int makVrv::DtAggregatedGeometry::numModels ( void  ) const
virtual

number of models registered here

virtual int makVrv::DtAggregatedGeometry::modelId ( int  index) const
virtual

the actual model id of the model with index

VectorGeometryLocations& makVrv::DtAggregatedGeometry::getOrCreateLocationsFor ( int  modelId)
VectorMaterials& makVrv::DtAggregatedGeometry::getOrCreateMaterialsFor ( int  modelId)
VectorOsgTextures& makVrv::DtAggregatedGeometry::getOrCreateTexturesFor ( int  modelId)
virtual const VectorGeometryLocations& makVrv::DtAggregatedGeometry::getVectorGeometryLocations ( int  modelId) const
virtual

vector of the 'specs' for the model

virtual bool makVrv::DtAggregatedGeometry::hasVectorGeometryLocations ( int  modelId) const
virtual

This being true indicates that the model with id modelId was infact registered here.

virtual const VectorMaterials& makVrv::DtAggregatedGeometry::getVectorMaterials ( int  modelId) const
virtual
virtual const VectorOsgTextures& makVrv::DtAggregatedGeometry::getVectorOsgTextures ( const int  modelId) const
virtual

vector of osg textures encountered within the model

int makVrv::DtAggregatedGeometry::vertexAndAttributesBufferSize ( void  ) const

size of all vertex attributes (vertices, normals, colors, texture coords)

void makVrv::DtAggregatedGeometry::copyVertexAndAttributeDataInto ( DtGlBuffer vertexAndAttributesBuffer) const

copy all vertex data into a gl buffer

osg::Geometry* makVrv::DtAggregatedGeometry::aggregatedGeometry ( void  )
virtual unsigned int makVrv::DtAggregatedGeometry::vertexBufferSizeInBytes ( ) const
virtual

Accessors for the Vertex Buffer/Size.

virtual unsigned int makVrv::DtAggregatedGeometry::vertexBufferNumElements ( ) const
virtual
virtual const void* makVrv::DtAggregatedGeometry::verticesPointer ( ) const
virtual
virtual unsigned int makVrv::DtAggregatedGeometry::numVertices ( void  ) const
virtual
virtual unsigned int makVrv::DtAggregatedGeometry::normalBufferSizeInBytes ( ) const
virtual

Accessors for the Normals' Buffer/Size.

virtual unsigned int makVrv::DtAggregatedGeometry::normalBufferNumElements ( ) const
virtual
virtual const void* makVrv::DtAggregatedGeometry::normalsPointer ( ) const
virtual
virtual unsigned int makVrv::DtAggregatedGeometry::numNormals ( void  ) const
virtual
virtual unsigned int makVrv::DtAggregatedGeometry::colorBufferSizeInBytes ( ) const
virtual

Accessors for the Colors' Buffer/Size.

virtual unsigned int makVrv::DtAggregatedGeometry::colorBufferNumElements ( ) const
virtual
virtual const void* makVrv::DtAggregatedGeometry::colorsPointer ( ) const
virtual
virtual unsigned int makVrv::DtAggregatedGeometry::numColors ( void  ) const
virtual
virtual unsigned int makVrv::DtAggregatedGeometry::textureCoordsBufferSizeInBytes ( unsigned int  unit) const
virtual

Accessors for the Texture Coordinates' Buffer/Size.

virtual unsigned int makVrv::DtAggregatedGeometry::textureCoordsBufferNumElements ( unsigned int  unit) const
virtual
virtual const void* makVrv::DtAggregatedGeometry::textureCoordsPointer ( unsigned int  unit) const
virtual
virtual unsigned int makVrv::DtAggregatedGeometry::numTextureCoords ( unsigned int  unit) const
virtual
virtual const void* makVrv::DtAggregatedGeometry::indexBufferPointer ( ) const
virtual

Accessors for the Index Buffer/Size.

virtual unsigned int makVrv::DtAggregatedGeometry::indexBufferSizeInBytes ( ) const
virtual
virtual void makVrv::DtAggregatedGeometry::printSpecsForModelId ( int  modelId)
virtual

debugging

virtual void makVrv::DtAggregatedGeometry::printStats ( )
virtual

debugging

virtual void makVrv::DtAggregatedGeometry::testDrawUsingDrawElements ( )
virtual

debugging

Member Data Documentation

osg::ref_ptr<osg::Geometry> makVrv::DtAggregatedGeometry::myAggregatedGeometry
MapModelsToVectorGeometryLocations makVrv::DtAggregatedGeometry::myMapModelsToGeometryLocations
MapModelsToVectorMaterials makVrv::DtAggregatedGeometry::myMapModelsToVectorMaterials
MapModelsToVectorOsgTextures makVrv::DtAggregatedGeometry::myMapModelsToVectorOsgTextures

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)