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

Public Member Functions | |
| 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) |
Protected Member Functions | |
| 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 bool | isPublished () const =0 |
| 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)=0 |
| Creates the draw control objects for this task visualization. | |
| virtual void | unpublishDrawControlObjects ()=0 |
| Removes the visualization object from the network. | |
| virtual void | updateDrawControlObjects ()=0 |
| Updates the visualization object data. Must call publish first. | |
| virtual unsigned | nextId () |
| Returns an ID number to be used when creating remote draw objects. | |
Protected Attributes | |
| 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 |
Friends | |
| class | DtTaskVisualizationSet |
A DtTaskVisualization describes a graphic to be displayed in the GUI to visualize the behavior of the current task.
For instance, it could be a point showing the location where the entity is moving or an arrow indicating the path the entity will take.
| DtTaskVisualization::DtTaskVisualization | ( | const DtString & | name, |
| const DtString & | taskComp, | ||
| DtVrfObject * | taskedObject | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
inlinevirtual |
Returns the visualization name.
|
inlinevirtual |
Returns the task component name.
|
inlinevirtual |
Returns the UUID of the object being tasked.
References DtUUID::uuid().
|
virtual |
Color of the visualization object.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
The location offset of the vertex in the visualization.
Offsets are relative to either the simulation object to which the vertex is attached or, for fixed location vertices, the tasked entity.
|
virtual |
|
virtual |
Updates the visualization object data.
Reimplemented in DtTaskVisualizationSet.
|
virtual |
Stops updating the task visualization object data.
Reimplemented in DtTaskVisualizationSet.
|
protectedvirtual |
Offsets the given geocentric location using the current location offset and converts it to a new geocentric location suitable for publishing to VR-Vantage.
|
protectedpure virtual |
Returns true if the visualization is already published.
Implemented in DtLineTaskVisualization, DtTaskVisualizationSet, DtPointTaskVisualization, DtTextTaskVisualization, and DtAreaTaskVisualization.
|
protectedvirtual |
Creates the visualization object for publication to the network.
Object is added to the given bulk environment process manager.
Reimplemented in DtLineTaskVisualization, and DtTaskVisualizationSet.
|
protectedpure virtual |
Creates the draw control objects for this task visualization.
Implemented in DtLineTaskVisualization, DtTaskVisualizationSet, DtPointTaskVisualization, DtTextTaskVisualization, and DtAreaTaskVisualization.
|
protectedpure virtual |
Removes the visualization object from the network.
Implemented in DtLineTaskVisualization, DtTaskVisualizationSet, DtPointTaskVisualization, DtTextTaskVisualization, and DtAreaTaskVisualization.
|
protectedpure virtual |
Updates the visualization object data. Must call publish first.
Implemented in DtLineTaskVisualization, DtTaskVisualizationSet, DtPointTaskVisualization, DtTextTaskVisualization, and DtAreaTaskVisualization.
|
protectedvirtual |
Returns an ID number to be used when creating remote draw objects.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Location offset in forward, right, down entity coordinates.
|
protected |