class for holding an indirect geometry registrar (which holds the information about how to draw models) and handling the adding/registering the model to the registrar
More...
|
| virtual | ~DtIndirectModelsContainer () |
| | destructor More...
|
| |
| virtual bool | getModelNode (const std::string &modelName, const osg::Node *&modelNode, int &modelId, float minRange=-1, float maxRange=-1, osgDB::Options *options=0) |
| | Get the model node after reading the file, and the id for a model name(file) and cache it if does not exist. More...
|
| |
| virtual bool | addModelNodeIfNeeded (const osg::Node *modelNode, int &modelId, const std::string &modelNameSuffix, bool cullFaceEnabled=true, const DtIndirectPolygonOffset &polygonOffset=DtIndirectPolygonOffset(0.0f, 0.0f)) |
| | Add the model node (if not added already), with id as modelId. More...
|
| |
| virtual void | registerModelWithRegistrar (const osg::Node *modelNode, const std::string &modelName, const DtModelInfo &modelInfo, bool cullFaceEnabled=true, const DtIndirectPolygonOffset &polygonOffset=DtIndirectPolygonOffset(0.0f, 0.0f)) |
| | register a new model with DtIndirectGeometryRegistrar More...
|
| |
virtual
DtIndirectGeometryRegistrar * | registrar (void) |
| | access the registrar More...
|
| |
class for holding an indirect geometry registrar (which holds the information about how to draw models) and handling the adding/registering the model to the registrar
| virtual bool makVrv::DtIndirectModelsContainer::getModelNode |
( |
const std::string & |
modelName, |
|
|
const osg::Node *& |
modelNode, |
|
|
int & |
modelId, |
|
|
float |
minRange = -1, |
|
|
float |
maxRange = -1, |
|
|
osgDB::Options * |
options = 0 |
|
) |
| |
|
virtual |
Get the model node after reading the file, and the id for a model name(file) and cache it if does not exist.
if the model name is being read for the first time minRange, maxRange are the additional top level start and end values that will modulate all the lods within the model Return the cached node and model id, if it exists. Will return false if the model file cannot be read (and modelNode and modelId will be 0).