![]() |
VR-Forces 5.0.2 Developer's Guide
|
Class that loads and contains a bunch of models registered with the registrar. It is owned by the Indirect geometry registrar.
Public Member Functions | |
| virtual | ~DtIndirectModelInfoContainer () |
| virtual void | releaseGLObjects (osg::State *state) const |
| virtual void | addModelSubGeometryToLoad (const DtCopyModelDataStructure &cds) |
| virtual bool | hasDataToAsyncLoad () const |
| virtual bool | hasDataToCopy () const |
| virtual int | isCopyingData () const |
| virtual bool | isNotCopyingData () |
| virtual int | numModels (void) const |
| virtual int | modelId (int index) const |
| virtual DtIndirectModelInfo * | getOrCreateModelInfoFor (int modelId) |
| virtual DtIndirectModelInfo * | findModelInfoFor (int modelId) |
| virtual GLenum | indicesType (void) const |
| virtual void | copyDataQueue () |
| virtual int | numTexCoordArrays (void) const |
Public Attributes | |
| friend | DtIndirectModelInfoContainerCreator |
Protected Types | |
| typedef std::map< int, DtIndirectModelInfo * > | MapModelsToModelInfo |
Protected Member Functions | |
| DtIndirectModelInfoContainer (DtDe &de) | |
| virtual void | copyData (DtCopyModelDataStructure &data) |
Protected Attributes | |
| MapModelsToModelInfo | myMapModelsToModelInfo |
| tbb::concurrent_queue < DtCopyModelDataStructure > | myModelDataToCopy |
| tbb::atomic< int > | myIsCopyingData |
| boost::mutex | myCopyDataMutex |
| boost::mutex | myMutableMapModelsToModelInfoMutex |
| boost::mutex | myMutableMaxCoordsBindlessMutex |
| int | myMaxCoordsBindless |
| tbb::atomic< int > | myCancelTask |
| DtDe & | myDe |
Private Member Functions | |
| DtIndirectModelInfoContainer ()=delete | |
| DtIndirectModelInfoContainer (const DtIndirectModelInfoContainer &other)=delete | |
| DtIndirectModelInfoContainer & | operator= (const DtIndirectModelInfoContainer &other)=delete |
|
protected |
|
virtual |
destructor
|
protected |
constructor. protected. only creator can create
|
privatedelete |
not allowed
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
|
privatedelete |
Assignment Operator Not implemented – Assignment 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 |
access to copy data atomic
|
virtual |
check whether the copy data atomic is false and also the copy data mutex was acquired PPP: not sure why both are needed
|
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 |
the indices' type (unsigned short or unsigned int, usually unsigned int)
|
virtual |
run through the data that needs to be copied and copy until canceled
|
virtual |
The max texture coordinates unit/number of the texture coordinate sets.
|
protectedvirtual |
copy data described in structure into the aggregate geometry, usually called by async thread.
| friend makVrv::DtIndirectModelInfoContainer::DtIndirectModelInfoContainerCreator |
only creator can create
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
mutex needs to be used in const functions so must be mutable.
|
mutableprotected |
|
protected |
|
protected |
|
protected |
reference to De