![]() |
VR-Forces Developer's Guide
|
internal structure for mapping a DtOsgArticulatedModel/DtOsgSimpleModel object to a corresponding instance within the indirect geometry
Public Member Functions | |
| DtIndirectEntityManagerInstance (const DtModelDefinition &modelDefinition, const DtOsgModelInstance &modelInstance, const DtModel *model, DtModelSetId modelSet, float modelScale, float modelRadius, bool mapDofsSwitchesSequences, const std::string &modelName, const int modelId, const int lightPointGroupId, DtIndirectGeometryGrid *grid, bool trackLifeTime, const std::string &trackName) | |
| DtIndirectEntityManagerInstance (const DtIndirectEntityManagerInstance &rhs) | |
| virtual | ~DtIndirectEntityManagerInstance () |
Public Attributes | |
| int | myInstanceIdInIndirectGeometry |
| osg::ref_ptr < DtIndirectEntityGeometry > | myIndirectGeometry |
| Vector3_int | myCellId |
| const std::string | myModelName |
| const int | myModelId |
| const float | myModelScale |
| const float | myModelRadius |
| const DtModelDefinition & | myModelDefinition |
| const DtModel * | myModel |
| const DtModelSetId | myModelSet |
| const bool | myMapDofsSwitchesSequences |
| const int | myLightPointGroupId |
| DtIndirectGeometryGrid * | myGrid |
| const bool | myTrackLifeTime |
| const std::string | myTrackName |
Private Member Functions | |
| DtIndirectEntityManagerInstance ()=delete | |
| DtIndirectEntityManagerInstance & | operator= (const DtIndirectEntityManagerInstance &rhs)=delete |
| makVrv::DtIndirectEntityManagerInstance::DtIndirectEntityManagerInstance | ( | const DtModelDefinition & | modelDefinition, |
| const DtOsgModelInstance & | modelInstance, | ||
| const DtModel * | model, | ||
| DtModelSetId | modelSet, | ||
| float | modelScale, | ||
| float | modelRadius, | ||
| bool | mapDofsSwitchesSequences, | ||
| const std::string & | modelName, | ||
| const int | modelId, | ||
| const int | lightPointGroupId, | ||
| DtIndirectGeometryGrid * | grid, | ||
| bool | trackLifeTime, | ||
| const std::string & | trackName | ||
| ) |
constructor
| makVrv::DtIndirectEntityManagerInstance::DtIndirectEntityManagerInstance | ( | const DtIndirectEntityManagerInstance & | rhs | ) |
copy constructor
|
virtual |
destructor
|
privatedelete |
not allowed
|
privatedelete |
assignment
| int makVrv::DtIndirectEntityManagerInstance::myInstanceIdInIndirectGeometry |
These are not constants for the duration of this instance within the indirect entity manager we change them when we move instances from one indirect geometry to another.
id within the indirect geometry
| osg::ref_ptr<DtIndirectEntityGeometry> makVrv::DtIndirectEntityManagerInstance::myIndirectGeometry |
the indirect geometry to which this instance belongs to Purposely hold a reference to avoid DtIndirectEntityGeometry from being deleted from underneath somehow (page out/reload etc)
| Vector3_int makVrv::DtIndirectEntityManagerInstance::myCellId |
the cell id within the grid
| const std::string makVrv::DtIndirectEntityManagerInstance::myModelName |
These are constants for the duration of this instance within the indirect entity manager.
the model name. comes from the model definition
| const int makVrv::DtIndirectEntityManagerInstance::myModelId |
the model id
| const float makVrv::DtIndirectEntityManagerInstance::myModelScale |
scale
| const float makVrv::DtIndirectEntityManagerInstance::myModelRadius |
radius
| const DtModelDefinition& makVrv::DtIndirectEntityManagerInstance::myModelDefinition |
reference to the model definition
| const DtModel* makVrv::DtIndirectEntityManagerInstance::myModel |
reference to the model (DtOsgArticulatedModel/DtOsgSimpleModel)
| const DtModelSetId makVrv::DtIndirectEntityManagerInstance::myModelSet |
model set
| const bool makVrv::DtIndirectEntityManagerInstance::myMapDofsSwitchesSequences |
whether dofs, switches, sequences are to be mapped typically: true for articulated model, false for simple model
| const int makVrv::DtIndirectEntityManagerInstance::myLightPointGroupId |
| DtIndirectGeometryGrid* makVrv::DtIndirectEntityManagerInstance::myGrid |
back pointer to the grid which this instance belongs to
| const bool makVrv::DtIndirectEntityManagerInstance::myTrackLifeTime |
whether tracking (for debugging)
| const std::string makVrv::DtIndirectEntityManagerInstance::myTrackName |
the display name of the entity being tracked (for debugging)