![]() |
VR-Forces 4.8 Class Documentation
|
contains the information which indirect needs for all geometry found by the geometry aggregator after it runs. More...
Public Member Functions | |
| DtAggregatedGeometry () | |
| constructor More... | |
| DtAggregatedGeometry (DtCoreGlBufferCreator &coreGlBufferCreator) | |
| constructor More... | |
| virtual | ~DtAggregatedGeometry () |
| destructor More... | |
| virtual void | releaseGLObjects (osg::State *state) const |
| used to release resources More... | |
| virtual void | addGeometryToLoad (const DtCopyDataStructure &cds) |
| add geometry descriptor to the queue for future async loading. More... | |
| virtual bool | hasDataToAsyncLoad () |
| checks if there's data to start loading and isn't currently running an async task More... | |
| virtual bool | hasDataToCopy () |
| checks if there's data to start loading More... | |
| virtual void | setDtDe (DtDe *myDe) |
| set the DtDe. More... | |
| boost::mutex & | copyDataMutex () |
| access to copy data mutex More... | |
| int | isCopyingData () |
| access to copy data atomic More... | |
| virtual int | numModels (void) const |
| number of models registered here More... | |
| virtual int | modelId (int index) const |
| the actual model id of the model with index More... | |
| virtual DtAggregateModelInfo * | getOrCreateModelInfoFor (int modelId) |
| the actual modelinfo from the modelid More... | |
| virtual DtAggregateModelInfo * | getModelInfoFor (int modelId) |
| the actual modelinfo from the modelid More... | |
| virtual const DtIndirectSwitchManager::DequeNodeSwitchInfoPairsArray & | getVectorSwitchPaths (int modelId) const |
| vector of the 'switch paths' for the model More... | |
| virtual const DtIndirectLodManager::DequeIndirectLodInfoArray & | getVectorLodStacks (int modelId) const |
| vector of the lod stacks for a model More... | |
| virtual int | vertexAndAttributesBufferSize (void) const |
| size of all vertex attributes (vertices, normals, colors, texture coords) More... | |
| virtual osg::Geometry * | aggregatedGeometry (void) |
| accessor for the underlying osg::Geometry that holds all the vertex information. More... | |
| virtual void | printStats () |
| debugging More... | |
| virtual void | testDrawUsingDrawElements () |
| debugging More... | |
| virtual GLenum | indicesType (void) const |
| the indices' type (unsigned short or unsigned int, usually unsigned int) More... | |
| virtual void | copyDataQueue () |
Protected Types | |
| typedef std::map< int, DtAggregateModelInfo * > | MapModelsToModelInfo |
Protected Member Functions | |
| void | configureBuffers () |
| called from the constructor, just a helper function for the 2 different creation paths. More... | |
| virtual void | reserveMaxMemory () |
| reserve as much memory as the last values in the copy data list More... | |
| virtual void | copyData (DtCopyDataStructure &data) |
| copy data described in structure into the aggregate geometry, usually called by async thread. More... | |
| virtual void | convertToUIntIfNecessary (int indicesCount) |
| resize the buffer because we've exceeded shorts More... | |
| virtual bool | updateBuffers () |
| returns true if buffers were successfully filled out More... | |
| virtual void | bindBuffers () |
| sets up vbo so it's ready to draw More... | |
| virtual void | unbindBuffers () |
| resets vertex buffer state More... | |
| virtual unsigned int | vertexBufferSizeInBytes () const |
| Accessors for the Vertex Buffer/Size. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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 unsigned int | textureBufferSizeInBytes () const |
| virtual void | copyTextureData (DtGlBuffer *vertexAndAttributesBuffer, int &offset) const |
| virtual const void * | indexBufferPointer () const |
| Accessors for the Index Buffer/Size. More... | |
| virtual unsigned int | indexBufferSizeInBytes () const |
Private Member Functions | |
| DtAggregatedGeometry (const DtAggregatedGeometry &other) | |
| Copy Constructor not implemented – Copy Not Allowed. More... | |
| DtAggregatedGeometry & | operator= (const DtAggregatedGeometry &other) |
| Assignment Operator Not implemented – Assignment Not Allowed. More... | |
contains the information which indirect needs for all geometry found by the geometry aggregator after it runs.
It is owned by the Indirect geometry registrar.
|
protected |
| makVrv::DtAggregatedGeometry::DtAggregatedGeometry | ( | ) |
constructor
| makVrv::DtAggregatedGeometry::DtAggregatedGeometry | ( | DtCoreGlBufferCreator & | coreGlBufferCreator | ) |
constructor
|
virtual |
destructor
|
private |
Copy Constructor not implemented – Copy Not Allowed.
|
virtual |
used to release resources
|
virtual |
add geometry descriptor to the queue for future async loading.
|
virtual |
checks if there's data to start loading and isn't currently running an async task
|
virtual |
checks if there's data to start loading
|
virtual |
set the DtDe.
Needs to happen after the constructor and before releaseGLObjects() is called
|
inline |
access to copy data mutex
|
inline |
access to copy data atomic
|
private |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
number of models registered here
the actual model id of the model with index
|
virtual |
the actual modelinfo from the modelid
|
virtual |
the actual modelinfo from the modelid
|
virtual |
vector of the 'switch paths' for the model
|
virtual |
vector of the lod stacks for a model
|
virtual |
size of all vertex attributes (vertices, normals, colors, texture coords)
|
virtual |
accessor for the underlying osg::Geometry that holds all the vertex information.
|
virtual |
debugging
|
virtual |
debugging
|
virtual |
the indices' type (unsigned short or unsigned int, usually unsigned int)
|
virtual |
|
protected |
called from the constructor, just a helper function for the 2 different creation paths.
|
protectedvirtual |
reserve as much memory as the last values in the copy data list
|
protectedvirtual |
copy data described in structure into the aggregate geometry, usually called by async thread.
|
protectedvirtual |
resize the buffer because we've exceeded shorts
|
protectedvirtual |
returns true if buffers were successfully filled out
|
protectedvirtual |
sets up vbo so it's ready to draw
|
protectedvirtual |
resets vertex buffer state
|
protectedvirtual |
Accessors for the Vertex Buffer/Size.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Accessors for the Normals' Buffer/Size.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Accessors for the Colors' Buffer/Size.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Accessors for the Texture Coordinates' Buffer/Size.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Accessors for the Index Buffer/Size.
|
protectedvirtual |
|
protected |
need lots of access to internal functions, these are effectively a tightly coupled system probably shouldn't be calling any of these functions without seeing exactly how the C++ code flow works
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
mutex needs to be used in const functions so must be mutable.
|
protected |
reference to De
|
protected |