Public Member Functions |
| | DtExampleModelInstance (DtDe &de, double halfLength, double animateRate) |
| | CTOR.
|
| virtual | ~DtExampleModelInstance () |
| virtual void | setVisible (bool isVisible) |
| | Set whether the model is visible or not.
|
| virtual void | changeSideSize (int side, double deltaChange) |
| virtual void | updateSize (double animationScale) |
| virtual | ~DtOsgModelInstance () |
| | DTOR.
|
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| | Brief Tell the model instance to add itself to the provided node.
|
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| | Brief Tell the model instance to remove itself from the provided node.
|
| virtual bool | saveModelToFile (const std::string &filename) const |
| | Attempt to save the model to a file.
|
| virtual void | enableColorBlending (bool b) |
| | 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.
|
| virtual void | setBlendColor (float r, float g, float b, float a) |
| | set the model's color
|
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| | Get the model instance's root node.
|
| virtual const osg::Node * | rootNode () const |
| | Get the model instance's root node.
|
| virtual osg::Node * | sensorNode () |
| | Get the model instance's sensor node, .
|
| virtual const osg::Node * | sensorNode () const |
| | Get the model instance's sensor node, .
|
| virtual void | addDynamicSensorRegion (const std::string ®ion) |
| | Add an active region state.
|
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| | Set the state of an active region.
|
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| | Get the current state of the specified sensor region.
|
| SensorRegionStateMap const | dynamicSensorRegionMap () const |
| | Get the map containing all regions and their current states.
|
| | DtModelInstance (DtDe &de) |
| | CTOR.
|
| virtual | ~DtModelInstance () |
| | DTOR.
|
| virtual bool | realize (DtModelDefinition &definition) |
| | Attempt to realize a definition.
|
| const std::string & | realizedDefinitionName () const |
| | Get the name of the definition that this model instance was realized with.
|
| const DtVector & | boundingBoxExtents () const |
| | Get the bounding box extents of the model instance.
|
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| | Get the bounding box extents of the model instance.
|
| const DtVector & | boundingBoxCenter () const |
| | Get the bounding box center of the model instance.
|
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| | Get the bounding box center of the model instance.
|
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| | Set whether this model instance contributes to an object's overall bounding volume.
|
| bool | contributesToBound () const |
| | Get whether this model instance contributes to an object's overall bounding volume.
|