![]() |
VR-Forces 4.0.4 Class Documentation
|
DtOsgOverlayLineModel extends the DtLineModel interface to include operations only appropriate for 2D lines. More...

Public Member Functions | |
| DtOsgOverlaySegmentedLineModel (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| ~DtOsgOverlaySegmentedLineModel () | |
| 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) |
| Sets the orientation of the line. | |
| 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 | setEventsEnabled (bool) |
| Enable or disable widget events, such as picking and mouse-over. | |
| virtual void | setEventWidth (float width) |
| Set the line width for handling events. | |
| virtual void | update () |
| Connected to the renderer's postUpdate signal; tells the model instance to update. | |
| virtual void | needsUpdate () |
| Called by all mutators to set up a postUpdate signal if not already connected. | |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType) |
| Attaches the model to the scene. | |
| virtual void | removeFromScene () |
| Detaches the model from the scene -- no-op. | |
| virtual void | setModelDefinition (const std::string &str) |
| Sets the model definition on the model instance. | |
| virtual void | setVisible (bool isVisible) |
| Sets if the line is visible. | |
| virtual void | setSolid (bool) |
| Not applicable to overlay objects. | |
Protected Attributes | |
| DtUniqueID | mySceneObjectId |
| bool | myEventsEnabled |
| float | myEventWidth |
| bool | myConnectedToPostUpdate |
DtOsgOverlayLineModel extends the DtLineModel interface to include operations only appropriate for 2D lines.
CTOR.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::setPosition | ( | int | vtx, |
| const DtVector & | position | ||
| ) | [virtual] |
Set the position of (or add) one vertex.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::removePosition | ( | int | vtx | ) | [virtual] |
Remove a vertex.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::setOrientation | ( | int | vtx, |
| const DtTaitBryan & | orientation | ||
| ) | [virtual] |
Sets the orientation of the line.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the line color.
Implements makVrv::DtLineModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::setWidth | ( | float | width | ) | [virtual] |
Set the line width.
Implements makVrv::DtLineModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::setStipplePattern | ( | unsigned int | pattern, |
| int | repeatFactor | ||
| ) | [virtual] |
Set a stipple pattern for the line.
Implements makVrv::DtLineModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::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::DtOsgOverlaySegmentedLineModel::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::DtOsgOverlaySegmentedLineModel::setSegmentLightningStyle | ( | unsigned int | segmentIndex, |
| bool | enableLightningStyle | ||
| ) | [virtual] |
Turn on or off lightning bolt style for a particular segment.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::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::DtOsgOverlaySegmentedLineModel::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::DtOsgOverlaySegmentedLineModel::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::DtOsgOverlaySegmentedLineModel::setSegmentWidth | ( | unsigned int | segmentIndex, |
| double | width | ||
| ) | [virtual] |
Set the width of a line segment.
Implements makVrv::DtSegmentedLineModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::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::DtOsgOverlaySegmentedLineModel::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::DtOsgOverlaySegmentedLineModel::setEventsEnabled | ( | bool | ) | [virtual] |
Enable or disable widget events, such as picking and mouse-over.
Implements makVrv::DtOverlaySegmentedLineModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::setEventWidth | ( | float | width | ) | [virtual] |
Set the line width for handling events.
Implements makVrv::DtOverlaySegmentedLineModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::addToScene | ( | const DtUniqueID & | sceneObjectId, |
| int | modelSet, | ||
| int | visualizerType | ||
| ) | [virtual] |
Attaches the model to the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::removeFromScene | ( | ) | [virtual] |
Detaches the model from the scene -- no-op.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::setModelDefinition | ( | const std::string & | str | ) | [virtual] |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::setVisible | ( | bool | isVisible | ) | [virtual] |
Sets if the line is visible.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::setSolid | ( | bool | ) | [virtual] |
Not applicable to overlay objects.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::update | ( | ) | [virtual] |
Connected to the renderer's postUpdate signal; tells the model instance to update.
| virtual void makVrv::DtOsgOverlaySegmentedLineModel::needsUpdate | ( | ) | [virtual] |
Called by all mutators to set up a postUpdate signal if not already connected.
float makVrv::DtOsgOverlaySegmentedLineModel::myEventWidth [protected] |