![]() |
VR-Forces 4.0.4 Class Documentation
|
OSG implementation of 2D segmented line. More...

Public Member Functions | |
| DtOsgOverlayDirectionLineModel (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtOsgOverlayDirectionLineModel () |
| DTOR. | |
| virtual void | setPosition (int index, const DtVector &position) |
| Sets the position of the point at the specified index. | |
| virtual void | setDirection (int index, const DtVector &direction) |
| Sets the direction of the point at the specified index. | |
| virtual void | setLength (int index, float length) |
| Sets the 2d length of the point at the specified index. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Sets the color of the line. | |
| virtual void | setWidth (float width) |
| Sets the width of the line. | |
| virtual void | setStipplePattern (unsigned int stipple, int repeatFactor) |
| Sets the stipple pattern for the line. | |
| virtual void | setEventsEnabled (bool) |
| Sets whether or not mouse events are signaled for the line. | |
| virtual void | setPositionOffset (const DtVector &) |
| Offsets vertices by given offset. | |
| virtual void | setSolid (bool) |
| No-op - Inherited from DtModel. | |
| virtual void | setVisible (bool isVisible) |
| Make the line visible or invisible. | |
Protected Member Functions | |
| virtual void | needsUpdate () |
| Called by all mutators to set up a postUpdate signal if not already connected. | |
| virtual void | update () |
| Attached to postUpdate signal from the renderer, tell the model instance to update. | |
| 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. | |
Protected Attributes | |
| DtUniqueID | myParentId |
| bool | myConnectedToPostUpdate |
OSG implementation of 2D segmented line.
CTOR.
| virtual makVrv::DtOsgOverlayDirectionLineModel::~DtOsgOverlayDirectionLineModel | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setPosition | ( | int | index, |
| const DtVector & | position | ||
| ) | [virtual] |
Sets the position of the point at the specified index.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setDirection | ( | int | index, |
| const DtVector & | direction | ||
| ) | [virtual] |
Sets the direction of the point at the specified index.
Implements makVrv::DtOverlayDirectionLineModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setLength | ( | int | index, |
| float | length | ||
| ) | [virtual] |
Sets the 2d length of the point at the specified index.
Implements makVrv::DtOverlayDirectionLineModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Sets the color of the line.
Implements makVrv::DtLineModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setWidth | ( | float | width | ) | [virtual] |
Sets the width of the line.
Implements makVrv::DtLineModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setStipplePattern | ( | unsigned int | stipple, |
| int | repeatFactor | ||
| ) | [virtual] |
Sets the stipple pattern for the line.
Implements makVrv::DtLineModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setEventsEnabled | ( | bool | ) | [virtual] |
Sets whether or not mouse events are signaled for the line.
Implements makVrv::DtOverlayLineModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setPositionOffset | ( | const DtVector & | ) | [virtual] |
Offsets vertices by given offset.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setSolid | ( | bool | ) | [virtual] |
No-op - Inherited from DtModel.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setVisible | ( | bool | isVisible | ) | [virtual] |
Make the line visible or invisible.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::addToScene | ( | const DtUniqueID & | sceneObjectId, |
| int | modelSet, | ||
| int | visualizerType | ||
| ) | [protected, virtual] |
Attaches the model to the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::removeFromScene | ( | ) | [protected, virtual] |
Detaches the model from the scene -- no-op.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::setModelDefinition | ( | const std::string & | str | ) | [protected, virtual] |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::needsUpdate | ( | ) | [protected, virtual] |
Called by all mutators to set up a postUpdate signal if not already connected.
| virtual void makVrv::DtOsgOverlayDirectionLineModel::update | ( | ) | [protected, virtual] |
Attached to postUpdate signal from the renderer, tell the model instance to update.