![]() |
VR-Forces 5.0.1 Developer's Guide
|
The base class for simple OSG based model instances. This call can't be instantiated itself.

Public Types | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
Static Public Member Functions | |
| static osg::Vec4 | readVec4 (const std::string ¶mName, const DtModelDefinition &definition, const osg::Vec4 &initValue=osg::Vec4(1, 1, 1, 1)) |
| static osg::Vec3 | readVec3 (const std::string ¶mName, const DtModelDefinition &definition, const osg::Vec3 &initValue=osg::Vec3(1, 1, 1)) |
Static Public Member Functions inherited from makVrv::DtModelInstance | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
Protected Member Functions | |
| DtOsgModelInstance (DtDe &de) | |
| virtual void | updateColorBlending () |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| virtual void | setRootNode (osg::Node *node) |
| virtual void | setUpDepthTest (osg::StateSet *stateSet) |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| typedef std::unordered_map<std::string, bool> makVrv::DtOsgModelInstance::SensorRegionStateMap |
Dynamic Sensor Region methods.
How Dynamic Sensor Region states are stored
|
virtual |
DTOR.
|
protected |
CTOR.
|
virtual |
Attempt to realize a definition. If the model instance can't realize the definition it should return false.
Reimplemented from makVrv::DtModelInstance.
Reimplemented in makVrv::DtAttachableEllipsoidArcModelInstance, makVrv::DtArcModelInstance, makVrv::DtOsgOverlayEllipseArcModelInstance, makVrv::DtOsgOverlayDirectionLineModelInstance, makVrv::DtOverlaySegmentedLineModelInstance, makVrv::Dt3DSegmentedLineModelInstance, makVrv::DtExtrudedLineModelInstance, makVrv::DtFxParticleSystemModelInstance, makVrv::Dt3DTextModelInstance, makVrv::DtArticulatingCylinderModelInstance, makVrv::DtEllipsoidArcModelInstance, makVrv::DtPolygonModelInstance, makVrv::DtCuboidModelInstance, makVrv::DtCylinderModelInstance, makVrv::DtEllipsoidModelInstance, makVrv::DtCubeModelInstance, makVrv::DtParticleSystemModelInstance, makVrv::DtRibbonModelInstance, makVrv::DtRectangularPyramidModelInstance, makVrv::DtTacticalSmokeModelInstance, makVrv::DtDecalModelInstance, makVrv::DtOverlayGreatCircleArcModelInstance, makVrv::DtDiGuyModelInstance, makVrv::Dt3DGreatCircleArcModelInstance, and makVrv::DtOsgSimpleModelInstance.
|
virtual |
Attempt to clone the basic geometry. Can be done in the background. If the model instance can't clone the definition it should return false.
Reimplemented from makVrv::DtModelInstance.
Reimplemented in makVrv::DtOsgSimpleModelInstance.
|
virtual |
Brief Tell the model instance to add itself to the provided node.
Reimplemented in makVrv::DtAttachableEllipsoidArcModelInstance, makVrv::Dt3DSegmentedLineModelInstance, makVrv::DtPolygonModelInstance, makVrv::DtExtrudedLineModelInstance, makVrv::DtExtrudedModelInstance, makVrv::DtFxParticleSystemModelInstance, makVrv::Dt3DTextModelInstance, makVrv::DtArticulatingCylinderModelInstance, makVrv::DtEllipsoidArcModelInstance, makVrv::DtCuboidModelInstance, makVrv::DtParticleSystemModelInstance, makVrv::DtRibbonModelInstance, makVrv::DtDecalModelInstance, makVrv::DtRectangularPyramidModelInstance, makVrv::DtMovablePolygonModel::DtMovablePolygonModelInstance, makVrv::DtProjectedTextModelInstance, makVrv::DtScribeBoxModelInstance, and makVrv::DtDrawModelInstance.
|
virtual |
Brief Tell the model instance to remove itself from the provided node. Returns true if the node was removed.
Reimplemented in makVrv::DtAttachableEllipsoidArcModelInstance, makVrv::Dt3DSegmentedLineModelInstance, makVrv::DtPolygonModelInstance, makVrv::DtExtrudedLineModelInstance, makVrv::DtExtrudedModelInstance, makVrv::DtFxParticleSystemModelInstance, makVrv::Dt3DTextModelInstance, makVrv::DtArticulatingCylinderModelInstance, makVrv::DtEllipsoidArcModelInstance, makVrv::DtCuboidModelInstance, makVrv::DtParticleSystemModelInstance, makVrv::DtRibbonModelInstance, makVrv::DtDecalModelInstance, makVrv::DtRectangularPyramidModelInstance, makVrv::DtProjectedTextModelInstance, makVrv::DtScribeBoxModelInstance, and makVrv::DtDrawModelInstance.
|
virtual |
Get the model instance's root node.
Reimplemented in makVrv::DtExtrudedModelInstance.
|
virtual |
Get the model instance's root node.
|
virtual |
Get the model instance's sensor node, .
Reimplemented in makVrv::DtRibbonModelInstance, and makVrv::DtDiGuyModelInstance.
|
virtual |
Get the model instance's sensor node, .
Reimplemented in makVrv::DtRibbonModelInstance, and makVrv::DtDiGuyModelInstance.
|
virtual |
Attempt to save the model to a file.
Reimplemented from makVrv::DtModelInstance.
|
virtual |
Enable / disable coloring on all models in the scene object Note about enableColorBlending: If this particular model has instancing enabled then this flag is set to false and color blending is handled by the instance manager. It should not be set to true if the model has instancing enabled.
Reimplemented from makVrv::DtModelInstance.
Reimplemented in makVrv::DtPolygonModelInstance.
|
virtual |
set the model's color
Reimplemented from makVrv::DtModelInstance.
|
virtual |
|
virtual |
Set the state of an active region.
|
virtual |
Get the current state of the specified sensor region.
|
virtual |
Get the map containing all regions and their current states.
|
virtual |
Slot to handle the global alpha to coverage signal for entities.
Reimplemented in makVrv::DtScribeBoxModelInstance.
|
virtual |
Get the current setting for alpha to coverage for this model.
|
virtual |
loop over all this models light points and register them with the light point manager daylightControlled is only used if the light points do not already have a type specified
|
static |
|
static |
|
protectedvirtual |
calls update color blending with the model root. Override to use a different root
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in makVrv::DtDiGuyModelInstance.
|
protectedvirtual |
Set the model instance's root node.
Reimplemented in makVrv::DtDiGuyModelInstance.
|
protectedvirtual |
Helper function to set up a depth test on a state set taking into account whether reverse z is enabled or not.
| boost::signalslib::signal< void(const std::string&) > makVrv::DtOsgModelInstance::signal_dynamicSensorRegionAdded |
Signal raised when a dynamic sensor region is added.
| boost::signalslib::signal< void(const std::string&, bool) > makVrv::DtOsgModelInstance::signal_dynamicSensorRegionChanged |
Signal raised when a dynamic sensor region's state changes.
| boost::signalslib::signal<void(bool)> makVrv::DtOsgModelInstance::signal_atcModeEnableChanged |
Signal raised when alpha to coverage for this model is changed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Has this model instance had a shader generated for it? Used for classes (ex. Dt3DSegmentedLineModelInstance) which call DtOsgShaderUtils::generateModelInstanceShaders.