VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Attributes
makVrf::DtTaskVisualizationStateComponentData Struct Reference

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
 

Member Enumeration Documentation

Enumerates the supported visualization shape types.

Enumerator
Unknown 

Visualization type has not been set.

Line 

A multi-vertex line or polyline visualization.

Point 

A single-point visualization.

Area 

A closed polygon or area visualization.

Text 

A text label visualization.

Constructor & Destructor Documentation

makVrf::DtTaskVisualizationStateComponentData::DtTaskVisualizationStateComponentData ( )
inline
makVrf::DtTaskVisualizationStateComponentData::DtTaskVisualizationStateComponentData ( const DtTaskVisualizationStateComponentData &  orig)
inline

Member Function Documentation

DtTaskVisualizationStateComponentData& makVrf::DtTaskVisualizationStateComponentData::operator= ( const DtTaskVisualizationStateComponentData &  rhs)
inline
const std::vector<DtVector>& makVrf::DtTaskVisualizationStateComponentData::pointVertices ( ) const
inline

Returns a cached vector of vertex positions (locations only, without attachment info). Rebuilds the cache from line vertices if the cache is stale.

Returns
Const reference to the vector of geocentric vertex positions.
void makVrf::DtTaskVisualizationStateComponentData::setVertices ( const std::vector< LineVertex > &  v)
inline

Sets all vertices from a list of LineVertex objects, preserving both position and attachment info.

Parameters
vThe list of vertices to assign.
void makVrf::DtTaskVisualizationStateComponentData::setVertices ( const std::vector< DtVector > &  v)
inline

Sets all vertices from a list of geocentric positions; clears any attachment info.

Parameters
vThe list of positions to assign.
void makVrf::DtTaskVisualizationStateComponentData::setVertices ( const std::vector< DtUUID > &  v)
inline

Sets all vertex attachments from a list of simulation object UUIDs.

Parameters
vThe list of UUIDs to assign as vertex attachment targets.
void makVrf::DtTaskVisualizationStateComponentData::setVertex ( int  i,
const DtVector &  v 
)
inline

Sets the geocentric position of a single vertex; resizes the vertex list if needed.

Parameters
iZero-based vertex index.
vGeocentric position to assign.
void makVrf::DtTaskVisualizationStateComponentData::setVertex ( int  i,
const DtUUID &  v 
)
inline

Sets the attachment object of a single vertex; resizes the vertex list if needed.

Parameters
iZero-based vertex index.
vUUID of the simulation object to attach the vertex to.
const std::vector<LineVertex>& makVrf::DtTaskVisualizationStateComponentData::linVertices ( ) const
inline

Returns the raw list of line vertices.

Returns
Const reference to the list of LineVertex objects.

Member Data Documentation

DtString makVrf::DtTaskVisualizationStateComponentData::myComponentName
protected

Name of the state component owning this visualization.

Referenced by operator=().

DtString makVrf::DtTaskVisualizationStateComponentData::myVisualizationName
protected

Display name of the visualization.

Referenced by operator=().

DtEntityIdentifier makVrf::DtTaskVisualizationStateComponentData::myEntityId
protected

Entity identifier of the owning simulation entity.

Referenced by operator=().

DtUUID makVrf::DtTaskVisualizationStateComponentData::myHostId
protected

UUID of the host entity.

Referenced by operator=().

DtTaskVisualizationStateComponentData::VisualizationType makVrf::DtTaskVisualizationStateComponentData::myVisualizationType
protected

Shape type of this visualization.

Referenced by operator=().

unsigned int makVrf::DtTaskVisualizationStateComponentData::myRed
protected

Red color component (0-255).

Referenced by operator=().

unsigned int makVrf::DtTaskVisualizationStateComponentData::myGreen
protected

Green color component (0-255).

Referenced by operator=().

unsigned int makVrf::DtTaskVisualizationStateComponentData::myBlue
protected

Blue color component (0-255).

Referenced by operator=().

unsigned int makVrf::DtTaskVisualizationStateComponentData::myAlpha
protected

Alpha (opacity) component (0-255).

Referenced by operator=().

bool makVrf::DtTaskVisualizationStateComponentData::myActive
protected

Whether this visualization is currently active and should be rendered.

Referenced by operator=().

bool makVrf::DtTaskVisualizationStateComponentData::myUseDrawControlForTaskVisualizations
protected

If true, draw control settings govern whether task visualizations are displayed.

Referenced by operator=().

DtVector makVrf::DtTaskVisualizationStateComponentData::myLocationOffset
protected

Location offset in forward, right, down entity coordinates.

Referenced by operator=().

std::vector<DtVector> makVrf::DtTaskVisualizationStateComponentData::myPointVertices {}
mutableprotected

Cached flat list of vertex positions extracted from myLineVertices.

Referenced by operator=().

double makVrf::DtTaskVisualizationStateComponentData::mySize
protected

Not all of these are used by all task visualizations.

Referenced by operator=().

DtVector makVrf::DtTaskVisualizationStateComponentData::myLocation
protected

Geocentric position used by point and text visualizations.

Referenced by operator=().

DtUUID makVrf::DtTaskVisualizationStateComponentData::myAttachedObject
protected

UUID of a simulation object this visualization is anchored to.

Referenced by operator=().

std::vector<LineVertex> makVrf::DtTaskVisualizationStateComponentData::myLineVertices {}
protected

For line objects.

Referenced by operator=().

bool makVrf::DtTaskVisualizationStateComponentData::myArrowAtEnd
protected

If true, an arrowhead is drawn at the last vertex.

Referenced by operator=().

bool makVrf::DtTaskVisualizationStateComponentData::myArrowAtStart
protected

If true, an arrowhead is drawn at the first vertex.

Referenced by operator=().

bool makVrf::DtTaskVisualizationStateComponentData::myProjected
protected

If true, the visualization is projected onto the terrain surface.

Referenced by operator=().

bool makVrf::DtTaskVisualizationStateComponentData::myIsSizeLimited
protected

If true, the visualization display size is capped to a maximum value.

Referenced by operator=().

bool makVrf::DtTaskVisualizationStateComponentData::myNeedsPointVerticesUpdate
mutableprotected

Dirty flag; if true, myPointVertices must be rebuilt from myLineVertices.

Referenced by operator=().

DtString makVrf::DtTaskVisualizationStateComponentData::myText
protected

Text.

Referenced by operator=().


The documentation for this struct was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)