A model instance creates a ribbon model instance effect from a model definition.
More...
Public Member Functions |
| virtual | ~DtRibbonModelInstance () |
| | DTOR.
|
| virtual bool | realize (DtModelDefinition &definition) |
| | Attempt to realize a definition.
|
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| | Brief Tell the model instance to add itself to the provided node.
|
| virtual void | updateRibbonWidth () |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| | Brief Tell the model instance to remove itself from the provided node.
|
| virtual void | setParentSceneObject (const DtUniqueID &sceneObjID) |
| | Set the parent scene object; used for dynamically sizing the ribbon.
|
| virtual DtSceneObject * | parentSceneObject () |
| | Get the scene object that the ribbon is attached to; returns null if none exists.
|
| virtual void | setOcclusionEnabled (bool enabled) |
| | Turn on or off occlusion of the ribbon by other objects in the scene Default is true.
|
| virtual void | setRibbonSpacing (float spacing) |
| | Sets the spacing between sample points along the ribbon (in meters).
|
| virtual void | setRibbonLength (int maxSamples) |
| | Sets the maximum length of the ribbon (in samples).
|
| virtual void | setColor (const osg::Vec4 &color) |
| | Sets the color of the ribbon.
|
| virtual void | setVisible (bool isVisible) |
| | no-op
|
| virtual void | update () |
| | Update the position of the ribbon.
|
| osg::Node * | sensorNode () |
| | Get the model instance's sensor node, .
|
| const osg::Node * | sensorNode () const |
| virtual | ~DtOsgModelInstance () |
| | DTOR.
|
| 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 |
| 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.
|
| virtual void | slot_atcGlobalModelEnableChanged () |
| | Slot to handle the global alpha to coverage signal for entities.
|
| virtual bool | alphaToCoverageEnabled () |
| | Get the current setting for alpha to coverage for this model.
|
| virtual void | registerLightPoints (const std::string &groupName, bool daylightControlledLights) |
| | 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
|
| | DtModelInstance (DtDe &de) |
| | CTOR.
|
| virtual | ~DtModelInstance () |
| | DTOR.
|
| 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.
|
A model instance creates a ribbon model instance effect from a model definition.