![]() |
VR-Forces 4.7 Class Documentation
|
A DtLineTaskVisualization describes a line graphic to be displayed in the GUI to visualize the behavior of the current task. More...

Classes | |
| class | LineVertex |
Public Member Functions | |
| DtLineTaskVisualization (const DtString &name, const DtString &taskComp, DtVrfObject *taskedObject) | |
| virtual | ~DtLineTaskVisualization () |
| virtual void | setVertex (unsigned index, const DtVector &location) |
| Sets location of vertex to specific geocentric location. | |
| virtual void | setVertices (const std::vector< DtVector > &locations) |
| Sets location of all vertices to specific geocentric locations. | |
| virtual void | setVertex (unsigned index, const DtGlobalObjectDesignator &obj) |
| Attaches a vertex to an object. | |
| virtual void | setVertices (const std::vector< DtGlobalObjectDesignator > &objs) |
| Attaches all vertices to specified objects. | |
| virtual void | setVertices (const std::vector< LineVertex > &locations) |
| Attaches all vertices to specified locations and/or objects. | |
| virtual const std::vector < LineVertex > & | vertices () const |
| Gets the location of all vertices. | |
| virtual const LineVertex & | vertex (unsigned index) const |
| Gets the location of a single vertex. | |
| virtual bool | arrowAtEnd () const |
| Whether the line ends with an arrow. | |
| virtual void | setArrowAtEnd (bool drawArrow) |
| virtual bool | arrowAtStart () const |
| Whether the line starts with an arrow. | |
| virtual void | setArrowAtStart (bool drawArrow) |
| virtual unsigned | thickness () const |
| Thickness of the line. | |
| virtual void | setThickness (unsigned thickness) |
| virtual bool | projected () const |
| Sets if the line should be projected onto the terrain. | |
| virtual void | setProjected (bool projected) |
Public Member Functions inherited from DtTaskVisualization | |
| DtTaskVisualization (const DtString &name, const DtString &taskComp, DtVrfObject *taskedObject) | |
| Constructor. | |
| virtual | ~DtTaskVisualization () |
| Destructor. | |
| virtual const DtString & | name () const |
| Returns the visualization name. | |
| virtual const DtString & | taskComponent () const |
| Returns the task component name. | |
| virtual const DtUUID & | taskedObject () const |
| Returns the UUID of the object being tasked. | |
| virtual void | update (DtBoost::shared_ptr< DtBulkEnvironmentProcessManager > bulkMgr) |
| Updates the visualization object data. | |
| virtual void | stopUpdates () |
| Stops updating the task visualization object data. | |
| virtual unsigned | red () const |
| Color of the visualization object. | |
| virtual unsigned | green () const |
| virtual unsigned | blue () const |
| virtual unsigned | alpha () const |
| virtual void | setColor (unsigned red, unsigned green, unsigned blue, unsigned alpha) |
| virtual const DtVector64 & | locationOffset () const |
| The location offset of the vertex in the visualization. | |
| virtual void | setLocationOffset (const DtVector64 &offset) |
Static Public Member Functions | |
| static void | setMaximumLineSegements (unsigned max) |
| Sets the maximum number of line segments that can be published. | |
| static unsigned | maximumLineSegments () |
| Gets the maximum number of line segments that can be published. | |
Protected Member Functions | |
| virtual bool | isPublished () const |
| Returns true if the visualization is already published. | |
| virtual void | publishDrawControlObjects (DtBoost::shared_ptr< DtBulkEnvironmentProcessManager > bulkMgr) |
| Creates the visualization object for publication to the network. | |
| virtual void | createDrawControlObjects (DtExerciseConn *exConn) |
| Creates the draw control objects that display this task visualization. | |
| virtual void | unpublishDrawControlObjects () |
| Removes the visualization object from the network. | |
| virtual void | updateDrawControlObjects () |
| Updates the visualization object data. Must call publish first. | |
Protected Member Functions inherited from DtTaskVisualization | |
| virtual void | calculateOffsetLocation (const DtVector &location, DtVector &offsetLocation) |
| Offsets the given geocentric location using the current location offset and converts it to a new geocentric location suitable for publishing to VR-Vantage. | |
| virtual unsigned | nextId () |
| Returns an ID number to be used when creating remote draw objects. | |
Protected Attributes | |
| bool | myLocationsDirty |
| std::vector< LineVertex > | myVertices |
| bool | myArrowAtEnd |
| bool | myArrowAtStart |
| unsigned | myThickness |
| bool | myProjected |
| bool | myIsSizeLimited |
| DtBoost::weak_ptr < DtBulkEnvironmentProcessManager > | myBulkManager |
| std::vector < vrvControlToolkit::DtLine3DObject * > | mySegmentObjects |
Protected Attributes inherited from DtTaskVisualization | |
| DtString | myName |
| DtString | myTaskComponent |
| DtVrfObject * | myTaskedObject |
| unsigned | myRed |
| unsigned | myGreen |
| unsigned | myBlue |
| unsigned | myAlpha |
| DtVector64 | myLocationOffset |
| Location offset in forward, right, down entity coordinates. | |
| DtTaskVisualizationPublisherCreator * | myEnvProcPublisherCreator |
Static Protected Attributes | |
| static unsigned | theMaximumLineSegements |
A DtLineTaskVisualization describes a line graphic to be displayed in the GUI to visualize the behavior of the current task.
| DtLineTaskVisualization::DtLineTaskVisualization | ( | const DtString & | name, |
| const DtString & | taskComp, | ||
| DtVrfObject * | taskedObject | ||
| ) |
|
virtual |
|
virtual |
Sets location of vertex to specific geocentric location.
|
virtual |
Sets location of all vertices to specific geocentric locations.
|
virtual |
Attaches a vertex to an object.
|
virtual |
Attaches all vertices to specified objects.
|
virtual |
Attaches all vertices to specified locations and/or objects.
|
virtual |
Gets the location of all vertices.
|
virtual |
Gets the location of a single vertex.
|
virtual |
Whether the line ends with an arrow.
|
virtual |
|
virtual |
Whether the line starts with an arrow.
|
virtual |
|
virtual |
Thickness of the line.
|
virtual |
|
virtual |
Sets if the line should be projected onto the terrain.
|
virtual |
|
static |
Sets the maximum number of line segments that can be published.
Default is 80. If a line has more segments than this, points will be sampled along the line, decreasing its overall detail but hopefully retaining the general shape.
|
static |
Gets the maximum number of line segments that can be published.
|
protectedvirtual |
Returns true if the visualization is already published.
Implements DtTaskVisualization.
|
protectedvirtual |
Creates the visualization object for publication to the network.
Object is added to the given bulk environment process manager.
Reimplemented from DtTaskVisualization.
|
protectedvirtual |
Creates the draw control objects that display this task visualization.
Implements DtTaskVisualization.
|
protectedvirtual |
Removes the visualization object from the network.
Implements DtTaskVisualization.
|
protectedvirtual |
Updates the visualization object data. Must call publish first.
Implements DtTaskVisualization.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |