![]() |
VR-Forces 4.0.4 Class Documentation
|
DtIntervisibilityLineVisualizer display an intervisibility line drawn as geometry in the scene without occlusion. More...

Public Member Functions | |
| DtIntervisibilityLineVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| Constructor. | |
| virtual | ~DtIntervisibilityLineVisualizer () |
| Destructor. | |
| virtual void | setVisibleColor (float r, float g, float b, float a) |
| Sets the color for the visible portion of the line (default is green) | |
| virtual void | setBlockedColor (float r, float g, float b, float a) |
| Sets the color for the blocked portion of the line (default is red) | |
| virtual void | setStartPoint (const DtVector &) |
| Sets the start for of the first vertex. | |
| virtual void | setEndPoint (const DtVector &) |
| Sets the end point. | |
| virtual void | setStartAttachPoint (DtElementID) |
| Will set the start attach point. | |
| virtual void | setStartPointOffset (const DtVector &) |
| Sets the offset from the attached start point. | |
| virtual void | setEndAttachPoint (DtElementID) |
| Will set the end attach point. | |
| virtual void | setEndPointOffset (const DtVector &) |
| Sets the offset from the attached end point. | |
| virtual void | setSelected (bool b) |
| Set the line to be selected or not. | |
| virtual void | resetSpatial () |
| Reset spatial parameters of the object. | |
| virtual void | createModelAgents () |
| Create all the model agents needed to implement this visual. | |
Protected Member Functions | |
| virtual void | destroyModelAgents () |
| Destroy all the model agents. | |
| virtual void | setModelDefinitionForAgents () |
| Pass any model definition provided as part of the visual definition to the visualizer. | |
| virtual DtSegmentedLineModelAgent * | createLineAgent ()=0 |
| Create a line agent of the appropriate type. | |
Protected Attributes | |
| DtIntervisibilityLineStateListener & | myLineListener |
| DtSegmentedLineModelAgent * | myLineModelAgent |
| DtAttachableIntervisibilityUpdaterAgent * | myAttachableUpdaterAgent |
DtIntervisibilityLineVisualizer display an intervisibility line drawn as geometry in the scene without occlusion.
| makVrv::DtIntervisibilityLineVisualizer::DtIntervisibilityLineVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
Constructor.
| virtual makVrv::DtIntervisibilityLineVisualizer::~DtIntervisibilityLineVisualizer | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::DtIntervisibilityLineVisualizer::setVisibleColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Sets the color for the visible portion of the line (default is green)
| virtual void makVrv::DtIntervisibilityLineVisualizer::setBlockedColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Sets the color for the blocked portion of the line (default is red)
| virtual void makVrv::DtIntervisibilityLineVisualizer::setStartPoint | ( | const DtVector & | ) | [virtual] |
Sets the start for of the first vertex.
Will delete any updaters if they exist for the start point
| virtual void makVrv::DtIntervisibilityLineVisualizer::setEndPoint | ( | const DtVector & | ) | [virtual] |
Sets the end point.
Will delete any updaters if they exist for the end point
| virtual void makVrv::DtIntervisibilityLineVisualizer::setStartAttachPoint | ( | DtElementID | ) | [virtual] |
Will set the start attach point.
Converts to scene id for current model set
| virtual void makVrv::DtIntervisibilityLineVisualizer::setStartPointOffset | ( | const DtVector & | ) | [virtual] |
Sets the offset from the attached start point.
| virtual void makVrv::DtIntervisibilityLineVisualizer::setEndAttachPoint | ( | DtElementID | ) | [virtual] |
Will set the end attach point.
Converts to scene id for current model set
| virtual void makVrv::DtIntervisibilityLineVisualizer::setEndPointOffset | ( | const DtVector & | ) | [virtual] |
Sets the offset from the attached end point.
| virtual void makVrv::DtIntervisibilityLineVisualizer::setSelected | ( | bool | b | ) | [virtual] |
Set the line to be selected or not.
Reimplemented from makVrv::DtStateVisualizer.
| virtual void makVrv::DtIntervisibilityLineVisualizer::resetSpatial | ( | ) | [virtual] |
Reset spatial parameters of the object.
| virtual void makVrv::DtIntervisibilityLineVisualizer::createModelAgents | ( | ) | [virtual] |
Create all the model agents needed to implement this visual.
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual void makVrv::DtIntervisibilityLineVisualizer::destroyModelAgents | ( | ) | [protected, virtual] |
Destroy all the model agents.
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual void makVrv::DtIntervisibilityLineVisualizer::setModelDefinitionForAgents | ( | ) | [protected, virtual] |
Pass any model definition provided as part of the visual definition to the visualizer.
Reimplemented from makVrv::DtSceneObjectVisualizer.
| virtual DtSegmentedLineModelAgent* makVrv::DtIntervisibilityLineVisualizer::createLineAgent | ( | ) | [protected, pure virtual] |
Create a line agent of the appropriate type.
Implemented in makVrv::Dt2DIntervisibilityLineVisualizer, and makVrv::Dt3DIntervisibilityLineVisualizer.
DtIntervisibilityLineStateListener& makVrv::DtIntervisibilityLineVisualizer::myLineListener [protected] |
DtSegmentedLineModelAgent* makVrv::DtIntervisibilityLineVisualizer::myLineModelAgent [protected] |
DtAttachableIntervisibilityUpdaterAgent* makVrv::DtIntervisibilityLineVisualizer::myAttachableUpdaterAgent [protected] |