![]() |
VR-Forces 4.0.4 Class Documentation
|
Dt3DLineStateVisualizer objects are responsible for displaying 3D line objects. More...

Public Member Functions | |
| Dt3DLineStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| Constructor. | |
| virtual | ~Dt3DLineStateVisualizer () |
| Destructor. | |
| virtual void | setStartLocation (const DtVector &pos) |
| Sets the start location (in database coordinates). | |
| virtual void | setEndLocation (const DtVector &endpoint) |
| Sets the end location (in database coordinates). | |
| virtual void | setFlashing (bool flashing) |
| Sets whether the line is flashing. | |
| virtual void | setStyleSegments (const std::vector< double > &segmentPercentages) |
| Sets the percentages of line segments. | |
| virtual void | setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| Sets the color of a particular segment. | |
| virtual void | setSegmentLightningStyle (unsigned int segmentIndex, bool enableLightningStyle) |
| Sets the lightning style of a particular segment. | |
| virtual void | setSegmentStartArrow (unsigned int segmentIndex, bool enableArrow) |
| Sets whether a particular segment has a start arrowhead. | |
| virtual void | setSegmentEndArrow (unsigned int segmentIndex, bool enableArrow) |
| Sets whether a particular segment has an end arrowhead. | |
| virtual void | setSegmentStipplePattern (unsigned int segmentIndex, unsigned int stipplePattern) |
| Sets the stipple pattern of a particular segment. | |
| virtual void | setSegmentWidth (unsigned int segmentIndex, double width) |
| Set the line width of a segment. | |
| virtual void | setStopOnTerrainIntersection (bool enabled) |
| Set whether or not to stop drawing the line at the first terrain intersection. | |
| virtual void | setAttached (DtUniqueID id, int vtx, double percentage) |
| Attaches the cuboid to the unique ID specified. | |
| virtual void | setHostId (const std::string &id, int vtx, double percentage) |
| Sets the host ID attached to. Overridden by child classes. | |
| virtual void | setOffset (const DtVector &offset) |
| Sets the offset (in body coordinates) of an attached line. | |
| virtual void | setProjected (bool projected) |
| Sets whether the line is projected above the terrain. | |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| The instance's type info. | |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
| This class's type info. | |
Protected Member Functions | |
| virtual void | setVisible (bool yesNo) |
| Set the visuals visible or invisible. | |
| virtual void | createModelAgents () |
| Create the visual models, or do nothing if they already exist. | |
| virtual void | destroyModelAgents () |
| Destroy the visual models. | |
| virtual void | setModelDefinitionForAgents () |
| Not implemented. | |
Protected Attributes | |
| Dt3DSegmentedLineModelAgent * | myLineModelAgent |
| DtAttachableUpdaterAgent * | myUpdaterAgent |
| DtVisibilityAdapter < Dt3DSegmentedLineModelAgent > * | myVisibilityAdapter |
| bool | myVertex0Attached |
| bool | myVertex1Attached |
Dt3DLineStateVisualizer objects are responsible for displaying 3D line objects.
| makVrv::Dt3DLineStateVisualizer::Dt3DLineStateVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
Constructor.
| virtual makVrv::Dt3DLineStateVisualizer::~Dt3DLineStateVisualizer | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::Dt3DLineStateVisualizer::setStartLocation | ( | const DtVector & | pos | ) | [virtual] |
Sets the start location (in database coordinates).
| virtual void makVrv::Dt3DLineStateVisualizer::setEndLocation | ( | const DtVector & | endpoint | ) | [virtual] |
Sets the end location (in database coordinates).
| virtual void makVrv::Dt3DLineStateVisualizer::setFlashing | ( | bool | flashing | ) | [virtual] |
Sets whether the line is flashing.
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
| virtual void makVrv::Dt3DLineStateVisualizer::setStyleSegments | ( | const std::vector< double > & | segmentPercentages | ) | [virtual] |
Sets the percentages of line segments.
| virtual void makVrv::Dt3DLineStateVisualizer::setSegmentColor | ( | unsigned int | segmentIndex, |
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Sets the color of a particular segment.
| virtual void makVrv::Dt3DLineStateVisualizer::setSegmentLightningStyle | ( | unsigned int | segmentIndex, |
| bool | enableLightningStyle | ||
| ) | [virtual] |
Sets the lightning style of a particular segment.
| virtual void makVrv::Dt3DLineStateVisualizer::setSegmentStartArrow | ( | unsigned int | segmentIndex, |
| bool | enableArrow | ||
| ) | [virtual] |
Sets whether a particular segment has a start arrowhead.
| virtual void makVrv::Dt3DLineStateVisualizer::setSegmentEndArrow | ( | unsigned int | segmentIndex, |
| bool | enableArrow | ||
| ) | [virtual] |
Sets whether a particular segment has an end arrowhead.
| virtual void makVrv::Dt3DLineStateVisualizer::setSegmentStipplePattern | ( | unsigned int | segmentIndex, |
| unsigned int | stipplePattern | ||
| ) | [virtual] |
Sets the stipple pattern of a particular segment.
| virtual void makVrv::Dt3DLineStateVisualizer::setSegmentWidth | ( | unsigned int | segmentIndex, |
| double | width | ||
| ) | [virtual] |
Set the line width of a segment.
| virtual void makVrv::Dt3DLineStateVisualizer::setStopOnTerrainIntersection | ( | bool | enabled | ) | [virtual] |
Set whether or not to stop drawing the line at the first terrain intersection.
| virtual void makVrv::Dt3DLineStateVisualizer::setAttached | ( | DtUniqueID | id, |
| int | vtx, | ||
| double | percentage | ||
| ) | [virtual] |
Attaches the cuboid to the unique ID specified.
| id | Unique ID of the object attached to, if 0, detaches |
| vtx | Vertex of the line (0 or 1) to attach |
| percentage | Specifies the percentage between 2 vertices if attached to a line or cylinder |
| virtual void makVrv::Dt3DLineStateVisualizer::setHostId | ( | const std::string & | id, |
| int | vtx, | ||
| double | percentage | ||
| ) | [virtual] |
Sets the host ID attached to. Overridden by child classes.
| virtual void makVrv::Dt3DLineStateVisualizer::setOffset | ( | const DtVector & | offset | ) | [virtual] |
Sets the offset (in body coordinates) of an attached line.
| virtual void makVrv::Dt3DLineStateVisualizer::setProjected | ( | bool | projected | ) | [virtual] |
Sets whether the line is projected above the terrain.
| virtual const DtStateVisualizer::TypeInfo& makVrv::Dt3DLineStateVisualizer::typeInfo | ( | ) | const [virtual] |
The instance's type info.
Implements makVrv::DtStateVisualizer.
| static const DtStateVisualizer::TypeInfo& makVrv::Dt3DLineStateVisualizer::theTypeInfo | ( | ) | [static] |
This class's type info.
| virtual void makVrv::Dt3DLineStateVisualizer::setVisible | ( | bool | yesNo | ) | [protected, virtual] |
Set the visuals visible or invisible.
This maintains the state of the visual objects, and calling setVisible(false) should not be expected to provide any performance benefit.
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
| virtual void makVrv::Dt3DLineStateVisualizer::createModelAgents | ( | ) | [protected, virtual] |
Create the visual models, or do nothing if they already exist.
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual void makVrv::Dt3DLineStateVisualizer::destroyModelAgents | ( | ) | [protected, virtual] |
Destroy the visual models.
This does not maintain their state; for example, calling setFlashing(true); destroyModelAgents(); createModelAgents(); will result in models with the default value of flashing, which is false.
Destroying models generally provides some performance benefit, as compared to calling setVisible(false).
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual void makVrv::Dt3DLineStateVisualizer::setModelDefinitionForAgents | ( | ) | [protected, virtual] |
Not implemented.
Reimplemented from makVrv::DtSceneObjectVisualizer.
Dt3DSegmentedLineModelAgent* makVrv::Dt3DLineStateVisualizer::myLineModelAgent [protected] |
DtAttachableUpdaterAgent* makVrv::Dt3DLineStateVisualizer::myUpdaterAgent [protected] |
DtVisibilityAdapter<Dt3DSegmentedLineModelAgent>* makVrv::Dt3DLineStateVisualizer::myVisibilityAdapter [protected] |