![]() |
VR-Forces Developer's Guide
|
A model instance creates a ribbon model instance effect from a model definition.

Public Member Functions | |
| virtual | ~DtRibbonModelInstance () |
| virtual bool | realize (const DtModelDefinition &definition) |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual void | updateRibbonWidth () |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| virtual void | setParentSceneObject (const DtUniqueID &sceneObjID) |
| virtual DtSceneObject * | parentSceneObject () |
| virtual void | setOcclusionEnabled (bool enabled) |
| virtual void | setHeightLinesEnabled (bool enabled) |
| virtual void | setHeightLinesColor (float r, float g, float b, float a) |
| virtual void | setHeightLinesSpacing (float spacing) |
| virtual void | setHeightLinesModelSetId (DtModelSetId modelSetId) |
| virtual void | setRibbonSpacing (float spacing) |
| virtual void | setRibbonLength (int maxSamples) |
| virtual void | setRibbonTimeout (float duration) |
| virtual void | setColor (const osg::Vec4 &color) |
| virtual void | setVisible (bool isVisible) |
| virtual void | update () |
| osg::Node * | sensorNode () |
| const osg::Node * | sensorNode () const |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | cloneInstance (const DtModelDefinition &definition) |
| virtual bool | saveModelToFile (const std::string &filename) const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| virtual const osg::Node * | rootNode () const |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| virtual const SensorRegionStateMap & | dynamicSensorRegionMap () const |
| virtual void | slot_atcGlobalModelEnableChanged () |
| virtual bool | alphaToCoverageEnabled () |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| virtual | ~DtModelInstance () |
| const std::string & | realizedDefinitionName () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| const DtVector & | allGeometryboundingBoxExtents () const |
| void | getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | allGeometryboundingBoxCenter () const |
| void | getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
Protected Member Functions | |
| DtRibbonModelInstance (DtDe &de) | |
| virtual osg::Node * | findFromCache (DtModelDefinition &definition) |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| 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) |
Private Member Functions | |
| DtRibbonModelInstance () | |
| DtRibbonModelInstance (const DtRibbonModelInstance &) | |
| DtRibbonModelInstance & | operator= (const DtRibbonModelInstance &) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| typedef std::unordered_map < std::string, bool > | SensorRegionStateMap |
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) |
| static DtVector4< float > | readVector4 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signalslib::signal < void(const std::string &, bool) > | signal_dynamicSensorRegionAdded |
| boost::signalslib::signal < void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| boost::signalslib::signal < void(bool)> | signal_atcModeEnableChanged |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
|
virtual |
DTOR.
|
protected |
CTOR.
|
private |
unimplemented private default constructor
|
private |
Copy Constructor not implemented – Copy not allowed.
|
private |
Assignment Operator not implemented – Copy not allowed.
|
virtual |
Attempt to realize a definition. If the model instance can't realize the definition it should return false. This instance requires the definition be of schema "Ribbon".
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Brief Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
|
virtual |
Brief Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Set the parent scene object; used for dynamically sizing the ribbon.
|
virtual |
Get the scene object that the ribbon is attached to; returns null if none exists.
|
virtual |
Turn on or off occlusion of the ribbon by other objects in the scene Default is true.
|
virtual |
Turn on or off height lines for the ribbon Default is false.
|
virtual |
Sets the color for height lines.
|
virtual |
Sets the desired spacing for height lines applied along ribbon segments (in meters).
|
virtual |
Sets the model set that the height lines should be used with.
|
virtual |
Sets the spacing between sample points along the ribbon (in meters).
|
virtual |
Sets the maximum length of the ribbon (in samples). If the given value (max number of samples in the ribbon), is negative or zero, the ribbon is unbounded and can be infinitely (or at least maximally) long.
|
virtual |
Sets the timeout of a ribbon segment (in seconds). If the given value, is negative or zero, the ribbon is unbounded and will not timeout.
|
virtual |
Sets the color of the ribbon.
|
inlinevirtual |
no-op
Implements makVrv::DtModelInstance.
|
virtual |
Update the position of the ribbon.
|
virtual |
get the node that the sensor module should use for modifying of the stateset
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
get the node that the sensor module should use for modifying of the stateset
Reimplemented from makVrv::DtOsgModelInstance.
|
protectedvirtual |
Try to find an effect model instance in cache to copy.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |