![]() |
VR-Forces 4.0.4 Class Documentation
|
OSG implementation of distributed attachable segmented line model. More...

Public Member Functions | |
| DtOsg3DSegmentedLineModel (DtDe &de, DtUniqueID id) | |
| CTOR takes a de and an id. | |
| virtual | ~DtOsg3DSegmentedLineModel () |
| DTOR. | |
| virtual void | setPosition (int vtx, const DtVector &position) |
| Set the position of (or add) one vertex. | |
| virtual void | removePosition (int vtx) |
| Remove a vertex. | |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| No effect. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the line color. | |
| virtual void | setWidth (float width) |
| Set the line width. | |
| 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 segmentIndex, double width) |
| Set the width of a line 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 | setStopOnTerrainIntersection (bool enabled) |
| Set whether or not the line stops at the first terrain intersection. | |
| virtual void | setOcclusionEnabled (bool enabled) |
| Turn on or off occlusion of the line by other objects; default is true. | |
| virtual void | setPickable (bool pickable) |
| Turn on or off the ability to pick the line. Off by default. | |
| virtual void | setVisible (bool isVisible) |
| Implementation of setVisible for the line model; sets the line visible or invisible while maintaining its state. | |
| virtual void | setSolid (bool isSolid) |
| Set the geometry to be solid. | |
| virtual void | setModelDefinition (const std::string &str) |
| Set the model definition for the line (defines default color and width) | |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType) |
| Add the line to the scene. | |
| virtual void | removeFromScene () |
| Remove the line from the scene. | |
| virtual void | update () |
| Connected to the renderer's postUpdate signal; tells the model instance to update. | |
Protected Member Functions | |
| virtual void | needsUpdate () |
Protected Attributes | |
| DtOsgSceneConnector * | mySceneConnector |
| bool | myConnectedToPostUpdate |
OSG implementation of distributed attachable segmented line model.
CTOR takes a de and an id.
| virtual makVrv::DtOsg3DSegmentedLineModel::~DtOsg3DSegmentedLineModel | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setPosition | ( | int | vtx, |
| const DtVector & | position | ||
| ) | [virtual] |
Set the position of (or add) one vertex.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::removePosition | ( | int | vtx | ) | [virtual] |
Remove a vertex.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setOrientation | ( | int | vtx, |
| const DtTaitBryan & | orientation | ||
| ) | [virtual] |
No effect.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the line color.
Implements makVrv::DtLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setWidth | ( | float | width | ) | [virtual] |
Set the line width.
Implements makVrv::DtLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setStipplePattern | ( | unsigned int | pattern, |
| int | repeatFactor | ||
| ) | [virtual] |
Set a stipple pattern for the line.
Implements makVrv::DtLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setStyleSegments | ( | const std::vector< double > & | segmentPercentages | ) | [virtual] |
Set the style segments to percentages of the total line length The values in segmentPercentages must add up to 1.0.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentColor | ( | unsigned int | segmentIndex, |
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of a particular segment.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentLightningStyle | ( | unsigned int | segmentIndex, |
| bool | enableLightningStyle | ||
| ) | [virtual] |
Turn on or off lightning bolt style for a particular segment.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentStartArrow | ( | unsigned int | segmentIndex, |
| bool | enableArrow | ||
| ) | [virtual] |
Turn on or off the arrow at a segment's start point.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentEndArrow | ( | unsigned int | segmentIndex, |
| bool | enableArrow | ||
| ) | [virtual] |
Turn on or off the arrow at a segment's end point.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentStipplePattern | ( | unsigned int | segmentIndex, |
| unsigned int | stipplePattern, | ||
| int | repeatFactor | ||
| ) | [virtual] |
Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentWidth | ( | unsigned int | segmentIndex, |
| double | width | ||
| ) | [virtual] |
Set the width of a line segment.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentStartColor | ( | unsigned int | segmentIndex, |
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the firt vertex in a segment.
This can be used for color blending between vertices.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setSegmentEndColor | ( | unsigned int | segmentIndex, |
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the end vertex in a segment.
This can be used for color blending between vertices.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setStopOnTerrainIntersection | ( | bool | enabled | ) | [virtual] |
Set whether or not the line stops at the first terrain intersection.
Implements makVrv::Dt3DSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setOcclusionEnabled | ( | bool | enabled | ) | [virtual] |
Turn on or off occlusion of the line by other objects; default is true.
Implements makVrv::Dt3DSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setPickable | ( | bool | pickable | ) | [virtual] |
Turn on or off the ability to pick the line. Off by default.
Implements makVrv::Dt3DSegmentedLineModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setVisible | ( | bool | isVisible | ) | [virtual] |
Implementation of setVisible for the line model; sets the line visible or invisible while maintaining its state.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setSolid | ( | bool | isSolid | ) | [virtual] |
Set the geometry to be solid.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::setModelDefinition | ( | const std::string & | str | ) | [virtual] |
Set the model definition for the line (defines default color and width)
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::addToScene | ( | const DtUniqueID & | sceneObjectId, |
| int | modelSet, | ||
| int | visualizerType | ||
| ) | [virtual] |
Add the line to the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::removeFromScene | ( | ) | [virtual] |
Remove the line from the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsg3DSegmentedLineModel::update | ( | ) | [virtual] |
Connected to the renderer's postUpdate signal; tells the model instance to update.
| virtual void makVrv::DtOsg3DSegmentedLineModel::needsUpdate | ( | ) | [protected, virtual] |
Called by all mutators to set up a postUpdate signal if not already connected