![]() |
VR-Forces Developer's Guide
|
Holds all state data for a task visualization, including geometry, color, type, and display properties.
Classes | |
| struct | LineVertex |
Public Types | |
| enum | VisualizationType { Unknown = 0, Line, Point, Area, Text } |
Public Member Functions | |
| DtTaskVisualizationStateComponentData () | |
| DtTaskVisualizationStateComponentData (const DtTaskVisualizationStateComponentData &orig) | |
| DtTaskVisualizationStateComponentData & | operator= (const DtTaskVisualizationStateComponentData &rhs) |
| const std::vector< DtVector > & | pointVertices () const |
| void | setVertices (const std::vector< LineVertex > &v) |
| void | setVertices (const std::vector< DtVector > &v) |
| void | setVertices (const std::vector< DtUUID > &v) |
| void | setVertex (int i, const DtVector &v) |
| void | setVertex (int i, const DtUUID &v) |
| const std::vector< LineVertex > & | linVertices () const |
Protected Attributes | |
| DtString | myComponentName |
| DtString | myVisualizationName |
| DtEntityIdentifier | myEntityId |
| DtUUID | myHostId |
| DtTaskVisualizationStateComponentData::VisualizationType | myVisualizationType |
| unsigned int | myRed |
| unsigned int | myGreen |
| unsigned int | myBlue |
| unsigned int | myAlpha |
| bool | myActive |
| bool | myUseDrawControlForTaskVisualizations |
| DtVector | myLocationOffset |
| std::vector< DtVector > | myPointVertices {} |
| double | mySize |
| DtVector | myLocation |
| DtUUID | myAttachedObject |
| std::vector< LineVertex > | myLineVertices {} |
| bool | myArrowAtEnd |
| bool | myArrowAtStart |
| bool | myProjected |
| bool | myIsSizeLimited |
| bool | myNeedsPointVerticesUpdate |
| DtString | myText |
|
inline |
|
inline |
|
inline |
References myActive, myAlpha, myArrowAtEnd, myArrowAtStart, myAttachedObject, myBlue, myComponentName, myEntityId, myGreen, myHostId, myIsSizeLimited, myLineVertices, myLocation, myLocationOffset, myNeedsPointVerticesUpdate, myPointVertices, myProjected, myRed, mySize, myText, myUseDrawControlForTaskVisualizations, myVisualizationName, and myVisualizationType.
|
inline |
Returns a cached vector of vertex positions (locations only, without attachment info). Rebuilds the cache from line vertices if the cache is stale.
|
inline |
Sets all vertices from a list of LineVertex objects, preserving both position and attachment info.
| v | The list of vertices to assign. |
|
inline |
Sets all vertices from a list of geocentric positions; clears any attachment info.
| v | The list of positions to assign. |
|
inline |
Sets all vertex attachments from a list of simulation object UUIDs.
| v | The list of UUIDs to assign as vertex attachment targets. |
|
inline |
Sets the geocentric position of a single vertex; resizes the vertex list if needed.
| i | Zero-based vertex index. |
| v | Geocentric position to assign. |
Sets the attachment object of a single vertex; resizes the vertex list if needed.
| i | Zero-based vertex index. |
| v | UUID of the simulation object to attach the vertex to. |
|
inline |
Returns the raw list of line vertices.
|
protected |
Name of the state component owning this visualization.
Referenced by operator=().
|
protected |
Display name of the visualization.
Referenced by operator=().
|
protected |
Entity identifier of the owning simulation entity.
Referenced by operator=().
|
protected |
UUID of the host entity.
Referenced by operator=().
|
protected |
Shape type of this visualization.
Referenced by operator=().
Red color component (0-255).
Referenced by operator=().
Green color component (0-255).
Referenced by operator=().
Blue color component (0-255).
Referenced by operator=().
Alpha (opacity) component (0-255).
Referenced by operator=().
|
protected |
Whether this visualization is currently active and should be rendered.
Referenced by operator=().
|
protected |
If true, draw control settings govern whether task visualizations are displayed.
Referenced by operator=().
|
protected |
Location offset in forward, right, down entity coordinates.
Referenced by operator=().
|
mutableprotected |
Cached flat list of vertex positions extracted from myLineVertices.
Referenced by operator=().
|
protected |
Not all of these are used by all task visualizations.
Referenced by operator=().
|
protected |
Geocentric position used by point and text visualizations.
Referenced by operator=().
|
protected |
UUID of a simulation object this visualization is anchored to.
Referenced by operator=().
|
protected |
For line objects.
Referenced by operator=().
|
protected |
If true, an arrowhead is drawn at the last vertex.
Referenced by operator=().
|
protected |
If true, an arrowhead is drawn at the first vertex.
Referenced by operator=().
|
protected |
If true, the visualization is projected onto the terrain surface.
Referenced by operator=().
|
protected |
If true, the visualization display size is capped to a maximum value.
Referenced by operator=().
|
mutableprotected |
Dirty flag; if true, myPointVertices must be rebuilt from myLineVertices.
Referenced by operator=().
|
protected |
Text.
Referenced by operator=().