![]() |
VR-Forces 4.3.1 Class Documentation
|
Model instance to draw a 3D line with styleable segments. More...

Classes | |
| struct | SegmentAttributes |
Public Member Functions | |
| Dt3DSegmentedLineModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~Dt3DSegmentedLineModelInstance () |
| DTOR. | |
| virtual void | setPosition (int vtx, const DtVector &position) |
| Set the position of one endpoint of the line. | |
| virtual DtVector | removePosition (int vtx) |
| Remove the vertex at position vtx Returns the value of the vertex that replaces it (or 0,0,0 if none) | |
| virtual void | setWidth (float width) |
| Set the width of the line. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the line. | |
| virtual void | setStipplePattern (unsigned int pattern, int repeatFactor) |
| Set a stipple pattern for the line. | |
| virtual void | setStyleSegments (const std::vector< double > &segmentPercentages) |
| Set the style segments to percentages of the total line length The values in segmentPercentages must add up to 1.0. | |
| virtual void | setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| Set the color of a particular segment. | |
| virtual void | setSegmentLightningStyle (unsigned int segmentIndex, bool enableLightningStyle) |
| Turn on or off lightning bolt style for a particular segment. | |
| virtual void | setSegmentStartArrow (unsigned int segmentIndex, bool enableArrow) |
| Turn on or off the arrow at a segment's start point. | |
| virtual void | setSegmentEndArrow (unsigned int segmentIndex, bool enableArrow) |
| Turn on or off the arrow at a segment's end point. | |
| virtual void | setSegmentStipplePattern (unsigned int segmentIndex, unsigned int stipplePattern, int repeatFactor) |
| Set the line stipple pattern for a segment, according to the OpenGL line stippling specification. | |
| virtual void | setSegmentWidth (unsigned int segmentWidth, double width) |
| Set the line width of a segment. | |
| virtual void | setSegmentStartColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| Set the color of the firt vertex in a segment. | |
| virtual void | setSegmentEndColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| Set the color of the end vertex in a segment. | |
| virtual void | setTerrainIntersect (bool enabled) |
| Set terrain intersection mode. | |
| virtual void | setModelSet (int modelSet) |
| Set the model set this model instance uses (needed for doing intersections) | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to add itself to the provided node. | |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to remove itself from the provided node. | |
| virtual void | setDepthTestEnabled (bool enabled) |
| Turn on or off depth testing (occlusion); default is true. | |
| virtual void | setVisible (bool isVisible) |
| Set the line visible or invisible; maintains state. | |
| virtual void | setPickable (bool pickable) |
| Turn on or off the ability to pick the line. Off by default. | |
| bool | pickable () const |
| Get whether the arc is pickable. | |
| virtual void | update () |
| Indicate that its time to prepare actual scene graph data to be rendered. | |
| virtual const std::vector < DtVector > & | points () const |
| Returns the points associated with this line. | |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| 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 |
| 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. | |
Public Member Functions inherited from makVrv::DtModelInstance | |
| 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. | |
Protected Member Functions | |
| virtual Dt3DLineModelInstanceSegmentInterface * | createSegment () |
| Create an appropriate segment type. | |
| Dt3DLineModelInstanceSegment & | lineSegment (int i) |
| Helper method to return properly cast Dt3DLineModelInstanceSegment. | |
| const Dt3DLineModelInstanceSegment & | lineSegment (int i) const |
| Helper method to return properly cast Dt3DLineModelInstanceSegment. | |
| virtual void | updatePickableSegments () |
| Update the pickable segment objects. | |
| virtual void | adjustSegmentVisibility (int vtx, bool visible) |
| Adjust segment visibility. | |
| virtual void | resizeSegments (int size) |
| Resize the segments vector to size. | |
| virtual void | resizeSegmentAttributes (int size) |
| Resize the segment attributes vector to size. | |
| virtual void | updateGeometry () |
| Update the visibility, endpoints, etc. of the segments. | |
| virtual void | updateAllSegmentAttributes () |
| Update the state of the segment attributes. | |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual void | updateColorBlending () |
| calls update color blending with the model root. | |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| DtOsgModelInstance (DtDe &de) | |
| CTOR. | |
| virtual void | setRootNode (osg::Node *node) |
| Set the model instance's root node. | |
Private Member Functions | |
| Dt3DSegmentedLineModelInstance () | |
| Default, unimplemented constructor. | |
| Dt3DSegmentedLineModelInstance (const Dt3DSegmentedLineModelInstance &) | |
| Unimplemented copy constructor. | |
| Dt3DSegmentedLineModelInstance & | operator= (const Dt3DSegmentedLineModelInstance &) |
| Unimplemented assignment operator. | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgModelInstance | |
| typedef boost::unordered_map < std::string, bool > | SensorRegionStateMap |
| Dynamic Sensor Region methods. | |
Static Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| static osg::Vec4 | readVec4 (const std::string ¶mName, const DtModelDefinition &definition) |
| static osg::Vec3 | readVec3 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signal< void(const std::string &) > | signal_dynamicSensorRegionAdded |
| Signal raised when a dynamic sensor region is added. | |
| boost::signal< void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| Signal raised when a dynamic sensor region's state changes. | |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signal< void(DtModelInstance *)> | signal_modelInstanceChanged |
Model instance to draw a 3D line with styleable segments.
| makVrv::Dt3DSegmentedLineModelInstance::Dt3DSegmentedLineModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default, unimplemented constructor.
|
private |
Unimplemented copy constructor.
|
virtual |
Set the position of one endpoint of the line.
Remove the vertex at position vtx Returns the value of the vertex that replaces it (or 0,0,0 if none)
|
virtual |
Set the width of the line.
|
virtual |
Set the color of the line.
|
virtual |
Set a stipple pattern for the line.
|
virtual |
Set the style segments to percentages of the total line length The values in segmentPercentages must add up to 1.0.
|
virtual |
Set the color of a particular segment.
|
virtual |
Turn on or off lightning bolt style for a particular segment.
|
virtual |
Turn on or off the arrow at a segment's start point.
|
virtual |
Turn on or off the arrow at a segment's end point.
|
virtual |
Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
|
virtual |
Set the line width of a segment.
|
virtual |
Set the color of the firt vertex in a segment.
This can be used for color blending between vertices.
|
virtual |
Set the color of the end vertex in a segment.
This can be used for color blending between vertices.
|
virtual |
Set terrain intersection mode.
|
virtual |
Set the model set this model instance uses (needed for doing intersections)
|
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::Dt3DGreatCircleArcModelInstance.
|
virtual |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Turn on or off depth testing (occlusion); default is true.
|
virtual |
Set the line visible or invisible; maintains state.
Implements makVrv::DtModelInstance.
|
virtual |
Turn on or off the ability to pick the line. Off by default.
| bool makVrv::Dt3DSegmentedLineModelInstance::pickable | ( | ) | const |
Get whether the arc is pickable.
|
virtual |
Indicate that its time to prepare actual scene graph data to be rendered.
|
virtual |
Returns the points associated with this line.
|
private |
Unimplemented assignment operator.
|
protectedvirtual |
Create an appropriate segment type.
Reimplemented in makVrv::Dt3DGreatCircleArcModelInstance.
|
protected |
Helper method to return properly cast Dt3DLineModelInstanceSegment.
|
protected |
Helper method to return properly cast Dt3DLineModelInstanceSegment.
|
protectedvirtual |
Update the pickable segment objects.
|
protectedvirtual |
Adjust segment visibility.
also considering the total line visibility
|
protectedvirtual |
Resize the segments vector to size.
|
protectedvirtual |
Resize the segment attributes vector to size.
|
protectedvirtual |
Update the visibility, endpoints, etc. of the segments.
Reimplemented in makVrv::Dt3DGreatCircleArcModelInstance.
|
protectedvirtual |
Update the state of the segment attributes.
Reimplemented in makVrv::Dt3DGreatCircleArcModelInstance.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Structure to contain the line segments' attributes.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |