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

Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.

Related Examples
Inheritance diagram for makVrf::DtStateDataWrapper:
Inheritance graph
[legend]

Public Member Functions

 DtStateDataWrapper ()
 
 DtStateDataWrapper (const DtStateDataManager *simManager, const DtUUID &uuid)
 
 DtStateDataWrapper (const DtStateDataManager *simManager, const DtEntityIdentifier &id)
 
 DtStateDataWrapper (const DtStateDataManager *simManager, const DtExternalCurrentFrameState *)
 
 DtStateDataWrapper (const DtStateData *sd)
 
virtual ~DtStateDataWrapper ()
 
DtStateDataWrapper & operator= (const DtUUID &)
 
DtStateDataWrapper & operator= (const DtStateDataWrapper &rhs)
 
bool operator== (const DtUUID &rhs) const
 
bool operator== (const DtStateDataWrapper &rhs) const
 
bool operator!= (const DtUUID &rhs) const
 
bool operator!= (const DtStateDataWrapper &rhs) const
 
bool isClutterEntity () const
 
DtVrfObjectGeometry objectGeometry () const
 
virtual Dt3dBoundingVolume boundingVolume () const
 
const DtIffStateComponent * iffStateComponent () const
 
std::vector< const
DtLaserDesignatorStateComponent * > 
laserDesignatorStateComponents () const
 
DtString awaiting () const
 
bool isSpotReport () const
 
bool awaitingTransfer () const
 
bool isModified () const
 
template<typename T_Component >
const T_Component * getStateComponent () const
 
template<typename T_Component >
std::vector< const T_Component * > getStateComponentList () const
 
template<typename T_Component >
bool hasStateComponent () const
 
DtForceType forceType () const
 
const DtEntityIdentifier & entityId () const
 
const DtEntityIdentifier & objectIdentifier () const
 
DtSimulationAddress simEngineAddress () const
 
bool isDestroyed () const
 
int damageState () const
 
const DtString & globalId () const
 
bool isEntityOrUnit () const
 
bool isSimulatedObject () const
 
bool isEntity () const
 
virtual bool checkValidity () const
 
int sessionId () const
 
bool isVrfSimulatedObject () const
 
bool isCurrentlyTasked () const
 
bool isExecutingPlan () const
 
bool hasPlan () const
 
bool independentlyTasked () const
 
bool underFire () const
 
DtString rulesOfEngagement () const
 
DtEchelonId echelonId () const
 
bool isDeleted () const
 
virtual void makeInvalid ()
 
const DtLocalVertexList & localVertices () const
 
std::vector< DtVector > localVertexList () const
 
const DtVertexList & worldVertices () const
 
std::vector< DtVector > worldVertexList () const
 
const DtLocalVertexList & relativeVertices () const
 
std::vector< DtVector > relativeVertexList () const
 
unsigned long long legionGlobalId () const
 
bool advancedFrame () const
 
DtUUID superiorUUID () const
 
bool isTopLevel () const
 
const
DtExternalFrameStateInterface * 
externalCurrentFrameState () const
 
const
DtSimulatedObjectStateComponent * 
currentFrameSimulatedObjectStateComponent () const
 
const DtLocationStateComponent * currentFrameLocationStateComponent () const
 
const
DtStatePropertiesStateComponent * 
currentFrameStatePropertiesStateComponent () const
 
const DtVrfGeometryStateComponent * currentFrameVrfGeometryStateComponent () const
 
const DtEntityStateComponent * currentFrameEntityStateComponent () const
 
const DtVrfStateComponent * currentFrameVrfStateComponent () const
 
std::set< int > currentFrameModifiedStateComponentTypes () const
 
std::set< int > nextFrameModifiedStateComponentTypes () const
 
const DtUUID & uuid () const
 
const DtString & objectName () const
 
DtString label () const
 
DtEntityType entityType () const
 
DtEntityType objectType () const
 
unsigned long long userData () const
 
const DtString & extendedData (const DtString &key) const
 
std::map< DtString, DtString > extendedDataMap () const
 
std::map< std::string,
std::string > 
extendedDataStdStringMap () const
 
bool hasExtendedData (const DtString &key) const
 
DtString overlay () const
 
DtAppearance appearance () const
 
int capabilities () const
 
DtEntityType guise () const
 
const DtRwProperties & stateProperties () const
 
const DtRwProperties & parameterProperties () const
 
const DtString & sidc () const
 
DtRwVrfKinematicState kinematicState () const
 
const DtVector & worldPosition () const
 
const DtVector & localPosition () const
 
const DtVector & parentPosition () const
 
double distSquaredTo (const DtVector &) const
 
bool hasLocationChanged () const
 
bool objectVerticesChanged () const
 
bool worldVerticesChanged () const
 
bool haveVerticesChanged () const
 
virtual void frameAdvanced ()
 
virtual void firstFrameAdvance ()
 
const DtStateData * stateData () const
 
DtUUID hostGlobalId () const
 
DtString parentGlobalId () const
 
const DtTaitBryan & topographicOrientation () const
 
const DtTaitBryan & worldOrientation () const
 
const DtTaitBryan & localOrientation () const
 
const DtTaitBryan & parentOrientation () const
 
const DtTaitBryan & localOrientationWrtDatabase () const
 
const DtDcm & localOrientationMatrix () const
 
const DtDcm & parentOrientationMatrix () const
 
const DtDcm & worldOrientationMatrix () const
 
double heading () const
 
double pitch () const
 
double roll () const
 
bool isUnit () const
 
bool isEmbarked () const
 
DtUUID embarkedOn () const
 
bool isEmbarkedOn (const DtUUID &) const
 

Public Attributes

boost::signals2::signal< void()> signal_objectVerticesChanged
 
boost::signals2::signal< void()> signal_extendedDataUpdated
 
boost::signals2::signal< void()> signal_simObjectDeleted
 
boost::signals2::signal< void(const
DtString &)> 
signal_discoveredReference
 
boost::signals2::signal< void(const
DtUUID &oldUUID, const DtUUID
&newUUID)> 
signal_uuidChanged
 
boost::signals2::signal< void(const
DtSimulationAddress &oldAddr,
const DtSimulationAddress
&newAddr)> 
signal_simEngineAddressChanged
 
boost::signals2::signal< void(const
DtString &oldName, const
DtString &newName)> 
signal_objectRenamed
 
boost::signals2::signal< void(const
DtUUID &oldSuperior, const
DtUUID &newSuperior)> 
signal_superiorChanged
 
boost::signals2::signal< void()> signal_isClutterChanged
 
boost::signals2::signal< void(DtStateComponent *)> signal_stateComponentAdded
 
boost::signals2::signal< void(DtStateComponent *)> signal_stateComponentRemoved
 
boost::signals2::signal< void()> signal_advancedFrame
 
boost::signals2::signal< void()> signal_firstFrameAdvance
 

Protected Member Functions

virtual const DtStateData * stateDataFor (const DtUUID &uuid) const
 
virtual void cacheComponents ()
 
virtual void clearCachedComponents ()
 
virtual void stateDataAdded (DtStateData *)
 
virtual void setUUID (const DtUUID &)
 
bool checkAndConnectForVrfStateComponent ()
 
void uuidChanged (const DtUUID &, const DtUUID &)
 
virtual void objectNameChanged (const DtString &oldText, const DtString &newText)
 
virtual void completeSetup ()
 
virtual void extendedDataUpdated ()
 
virtual void superiorChanged ()
 
virtual void isClutterChanged ()
 
virtual void externalFrameStateToBeDestroyed ()
 
virtual void slot_stateComponentAdded (DtStateComponent *)
 
virtual void slot_stateComponentRemoved (DtStateComponent *)
 
virtual void simEngineAddressChanged (const DtSimulationAddress &oldAddress, const DtSimulationAddress &newAddress)
 

Protected Attributes

const
DtExternalFrameStateInterface * 
myExternalCurrentFrameState
 
boost::signals2::scoped_connection myStateComponentAddedConnection
 
boost::signals2::scoped_connection myStateComponentRemovedConnection
 
boost::signals2::scoped_connection myDeletedConnection
 
boost::signals2::scoped_connection myAddedConnection
 
boost::signals2::scoped_connection myUUIDChangedConnection
 
boost::signals2::scoped_connection myObjectNameChangedConnection
 
boost::signals2::scoped_connection myExtendedDataUpdatedConnection
 
boost::signals2::scoped_connection myFirstFrameAdvancedConnection
 
boost::signals2::scoped_connection mySuperiorChangedConnection
 
boost::signals2::scoped_connection myAdvancedFrameConnection
 
boost::signals2::scoped_connection myIsClutterChangedConnection
 
boost::signals2::scoped_connection mySimEngineAddressChangedConnection
 
DtString myAwaiting
 
DtUUID myUUID
 
unsigned long long myLegionGlobalId
 
bool myIsDeleted
 
DtString myObjectName
 
DtEntityType myEntityType
 
DtUUID mySuperiorUUID
 
bool myAdvancedFrame
 
tbb::spin_rw_mutex myExternalCurrentFrameStateMutex
 
DtUUID myEmbarkedOn
 
const
DtSimulatedObjectStateComponent * 
myCurrentFrameSimulatedObjectStateComponent
 
const DtVrfStateComponent * myCurrentFrameVrfStateComponent
 
const DtEntityStateComponent * myCurrentFrameEntityStateComponent
 
const DtLocationStateComponent * myCurrentFrameLocationStateComponent
 
const DtVrfGeometryStateComponent * myCurrentFrameVrfGeometryStateComponent
 
const
DtStatePropertiesStateComponent * 
myCurrentFrameStatePropertiesStateComponent
 
bool myCachedComponents
 
const DtStateData * myStateData = nullptr
 
const DtStateDataManager * myStateDataManager
 

Private Member Functions

 DtStateDataWrapper (const DtStateDataWrapper &)
 

Constructor & Destructor Documentation

makVrf::DtStateDataWrapper::DtStateDataWrapper ( const DtStateDataWrapper &  )
private

Creates an empty (invalid) object.

makVrf::DtStateDataWrapper::DtStateDataWrapper ( )

CTOR – Even though this takes a state data it will not keep a reference to that state data. It is only used to keep the pointer to the current frame state.

makVrf::DtStateDataWrapper::DtStateDataWrapper ( const DtStateDataManager *  simManager,
const DtUUID &  uuid 
)
explicit

Constructs a wrapper for the simulation object identified by the given UUID.

Parameters
simManagerThe state data manager used to resolve object state.
uuidThe UUID of the simulation object to wrap.
makVrf::DtStateDataWrapper::DtStateDataWrapper ( const DtStateDataManager *  simManager,
const DtEntityIdentifier &  id 
)
explicit

Constructs a wrapper for the simulation object identified by the given DIS entity identifier.

Parameters
simManagerThe state data manager used to resolve object state.
idThe DIS entity identifier of the simulation object to wrap.
makVrf::DtStateDataWrapper::DtStateDataWrapper ( const DtStateDataManager *  simManager,
const DtExternalCurrentFrameState *   
)
explicit

Constructs a wrapper directly from an existing external frame state.

Parameters
simManagerThe state data manager associated with the frame state.
makVrf::DtStateDataWrapper::DtStateDataWrapper ( const DtStateData *  sd)
explicit

Constructs a wrapper from an existing DtStateData instance.

Parameters
sdThe underlying state data object to wrap.
virtual makVrf::DtStateDataWrapper::~DtStateDataWrapper ( )
virtual

DTOR.

Member Function Documentation

DtStateDataWrapper& makVrf::DtStateDataWrapper::operator= ( const DtUUID &  )

Reassigns this wrapper to refer to the simulation object with the given UUID.

Returns
Reference to this wrapper.
DtStateDataWrapper& makVrf::DtStateDataWrapper::operator= ( const DtStateDataWrapper &  rhs)
inline

Reassigns this wrapper to refer to the same simulation object as rhs.

Returns
Reference to this wrapper.

References operator=(), and uuid().

Referenced by operator=().

bool makVrf::DtStateDataWrapper::operator== ( const DtUUID &  rhs) const

Returns true if this wrapper refers to the simulation object with the given UUID.

bool makVrf::DtStateDataWrapper::operator== ( const DtStateDataWrapper &  rhs) const
inline

Returns true if this wrapper refers to the same simulation object as rhs.

References uuid().

bool makVrf::DtStateDataWrapper::operator!= ( const DtUUID &  rhs) const
inline

Returns true if this wrapper does not refer to the simulation object with the given UUID.

bool makVrf::DtStateDataWrapper::operator!= ( const DtStateDataWrapper &  rhs) const
inline

Returns true if this wrapper does not refer to the same simulation object as rhs.

const DtUUID& makVrf::DtStateDataWrapper::uuid ( ) const

Convenience accessors for various pieces of state data.

Returns
The unique identifier of this simulation object.

Referenced by operator=(), operator==(), and DtSimObject::operator==().

const DtString& makVrf::DtStateDataWrapper::objectName ( ) const
Returns
The internal name of this simulation object.
DtString makVrf::DtStateDataWrapper::label ( ) const
Returns
The display label for this simulation object.
DtEntityType makVrf::DtStateDataWrapper::entityType ( ) const
Returns
The DIS/HLA entity type of this simulation object.
DtEntityType makVrf::DtStateDataWrapper::objectType ( ) const
inline
Returns
The entity type; synonym for entityType().
unsigned long long makVrf::DtStateDataWrapper::userData ( ) const
Returns
An application-defined 64-bit user data value associated with this object.
const DtString& makVrf::DtStateDataWrapper::extendedData ( const DtString &  key) const

Returns the value of a named extended data field attached to this object.

Parameters
keyThe name of the extended data field.
Returns
The field value, or null string if not present.
std::map<DtString, DtString> makVrf::DtStateDataWrapper::extendedDataMap ( ) const
Returns
A map of all extended data key/value pairs as DtString.
std::map<std::string, std::string> makVrf::DtStateDataWrapper::extendedDataStdStringMap ( ) const
Returns
A map of all extended data key/value pairs as std::string.
bool makVrf::DtStateDataWrapper::hasExtendedData ( const DtString &  key) const

Returns true if this object has an extended data field with the given key.

Parameters
keyThe name of the extended data field to check.
DtString makVrf::DtStateDataWrapper::overlay ( ) const
Returns
The overlay (scenario group) this object belongs to, or null string if none.
DtAppearance makVrf::DtStateDataWrapper::appearance ( ) const
Returns
The current DIS appearance record for this object.
int makVrf::DtStateDataWrapper::capabilities ( ) const
Returns
The DIS capabilities flags for this object.
DtEntityType makVrf::DtStateDataWrapper::guise ( ) const
Returns
The guise (alternate entity type) for this object if disguised, else null type.
const DtRwProperties& makVrf::DtStateDataWrapper::stateProperties ( ) const
Returns
The state properties record for this object.
const DtRwProperties& makVrf::DtStateDataWrapper::parameterProperties ( ) const
Returns
The parameter data record for this object.
const DtString& makVrf::DtStateDataWrapper::sidc ( ) const
Returns
Sidc code for visual display. Empty if want to use default
bool makVrf::DtStateDataWrapper::isClutterEntity ( ) const

Appearance attribute information.

DtVrfObjectGeometry makVrf::DtStateDataWrapper::objectGeometry ( ) const

Geometry.

virtual Dt3dBoundingVolume makVrf::DtStateDataWrapper::boundingVolume ( ) const
virtual

Reimplemented in DtSimObject.

const DtIffStateComponent* makVrf::DtStateDataWrapper::iffStateComponent ( ) const

Associated components.

std::vector<const DtLaserDesignatorStateComponent*> makVrf::DtStateDataWrapper::laserDesignatorStateComponents ( ) const
DtString makVrf::DtStateDataWrapper::awaiting ( ) const
inline

If awaiting, who awaiting for.

bool makVrf::DtStateDataWrapper::isSpotReport ( ) const
Returns
True if this object is a spot report entity (has a DtSpotReportStateComponent).
bool makVrf::DtStateDataWrapper::awaitingTransfer ( ) const

Returns true if this object is in the process of converting from remote to local.

bool makVrf::DtStateDataWrapper::isModified ( ) const
inline

Returns true if the underlying state data was modified during the current simulation frame.

template<typename T_Component >
const T_Component* makVrf::DtStateDataWrapper::getStateComponent ( ) const
inline

Returns the single state component of the given type, if present. Use this for components that do not have a dedicated accessor method.

Returns
Pointer to the component, or nullptr if not present.
template<typename T_Component >
std::vector<const T_Component*> makVrf::DtStateDataWrapper::getStateComponentList ( ) const
inline

Returns all state components of the given type attached to this object.

Returns
Vector of pointers to all matching components; may be empty.
template<typename T_Component >
bool makVrf::DtStateDataWrapper::hasStateComponent ( ) const
inline
DtRwVrfKinematicState makVrf::DtStateDataWrapper::kinematicState ( ) const

Overall kinematic state.

const DtVector& makVrf::DtStateDataWrapper::worldPosition ( ) const

TSP information Position.

Returns
The world (geocentric) position of this object in meters.
const DtVector& makVrf::DtStateDataWrapper::localPosition ( ) const
Returns
The local (database-relative) position of this object in meters.
const DtVector& makVrf::DtStateDataWrapper::parentPosition ( ) const
Returns
The position of this object relative to its parent in meters.
double makVrf::DtStateDataWrapper::distSquaredTo ( const DtVector &  ) const

Returns the squared Euclidean distance from this object to the given world position.

Parameters
vThe target world position in meters.
Returns
Squared distance in square meters.
bool makVrf::DtStateDataWrapper::hasLocationChanged ( ) const

In the last frame update, did the location of this object change.

bool makVrf::DtStateDataWrapper::objectVerticesChanged ( ) const

Whether or not (if this is a multi point object) the body (object) vertices have changed (meaning has the user edited the vertices)

bool makVrf::DtStateDataWrapper::worldVerticesChanged ( ) const

Whether or not the vertices of the object have changed from their last frame world positions. This can happen if the object is embarked and the host object has moved, or, if the user has edited the vertices.

bool makVrf::DtStateDataWrapper::haveVerticesChanged ( ) const

Returns true if object or world vertices have changed.

virtual void makVrf::DtStateDataWrapper::frameAdvanced ( )
virtual

Called each time the simulation frame advances; updates cached component state.

Reimplemented in DtSimObject.

virtual void makVrf::DtStateDataWrapper::firstFrameAdvance ( )
virtual

Called the first time the simulation frame advances for this object; completes initial setup.

const DtStateData* makVrf::DtStateDataWrapper::stateData ( ) const
inline
Returns
The underlying DtStateData for this object, or nullptr if not holding a direct reference.
DtUUID makVrf::DtStateDataWrapper::hostGlobalId ( ) const
Returns
The UUID of the host object this object is embarked on, or null UUID if not embarked.
DtString makVrf::DtStateDataWrapper::parentGlobalId ( ) const
Returns
The string global ID of the parent object in the hierarchy, or null string if none.
const DtTaitBryan& makVrf::DtStateDataWrapper::topographicOrientation ( ) const

Orientation.

Returns
The topographic (geodetic north-relative) orientation as Tait-Bryan angles (psi, theta, phi).
const DtTaitBryan& makVrf::DtStateDataWrapper::worldOrientation ( ) const
Returns
The world (geocentric) orientation as Tait-Bryan angles.
const DtTaitBryan& makVrf::DtStateDataWrapper::localOrientation ( ) const
Returns
The local (database-relative) orientation as Tait-Bryan angles.
const DtTaitBryan& makVrf::DtStateDataWrapper::parentOrientation ( ) const
Returns
The orientation relative to the parent object as Tait-Bryan angles.
const DtTaitBryan& makVrf::DtStateDataWrapper::localOrientationWrtDatabase ( ) const
Returns
The local orientation with respect to the database origin as Tait-Bryan angles.
const DtDcm& makVrf::DtStateDataWrapper::localOrientationMatrix ( ) const
Returns
The local orientation expressed as a direction cosine matrix.
const DtDcm& makVrf::DtStateDataWrapper::parentOrientationMatrix ( ) const
Returns
The parent-relative orientation expressed as a direction cosine matrix.
const DtDcm& makVrf::DtStateDataWrapper::worldOrientationMatrix ( ) const
Returns
The world orientation expressed as a direction cosine matrix.
double makVrf::DtStateDataWrapper::heading ( ) const
Returns
The heading angle in radians in the topographic frame.
double makVrf::DtStateDataWrapper::pitch ( ) const
Returns
The pitch angle in radians in the topographic frame.
double makVrf::DtStateDataWrapper::roll ( ) const
Returns
The roll angle in radians in the topographic frame.
DtForceType makVrf::DtStateDataWrapper::forceType ( ) const

The force type of this object.

const DtEntityIdentifier& makVrf::DtStateDataWrapper::entityId ( ) const

DIS object identifier.

const DtEntityIdentifier& makVrf::DtStateDataWrapper::objectIdentifier ( ) const
inline
Returns
The DIS entity identifier; synonym for entityId().
DtSimulationAddress makVrf::DtStateDataWrapper::simEngineAddress ( ) const
Returns
The network address of the simulation engine that owns this object.
bool makVrf::DtStateDataWrapper::isDestroyed ( ) const

Convenience method to see if this object is destroyed. Is not applicable to all object types (e.g. tactical graphics)

int makVrf::DtStateDataWrapper::damageState ( ) const
Returns
The current DIS damage state (0=NoDamage, 1=Slight, 2=Moderate, 3=Destroyed).
const DtString& makVrf::DtStateDataWrapper::globalId ( ) const
Returns
The VRF global ID string for this object.
bool makVrf::DtStateDataWrapper::isUnit ( ) const

Unit specific information Returns true if this object has a DtAggregateStateComponent.

bool makVrf::DtStateDataWrapper::isEntityOrUnit ( ) const

Returns true if this object does not have the environmental state component.

bool makVrf::DtStateDataWrapper::isSimulatedObject ( ) const
inline

Returns true if this object is an entity or aggregate unit (not environmental); synonym for isEntityOrUnit().

bool makVrf::DtStateDataWrapper::isEntity ( ) const

Returns true if this object does not have the environmental state or aggregate state component.

bool makVrf::DtStateDataWrapper::isEmbarked ( ) const

Embarkation status.

DtUUID makVrf::DtStateDataWrapper::embarkedOn ( ) const

If embarked, the parent this object is embarked on.

bool makVrf::DtStateDataWrapper::isEmbarkedOn ( const DtUUID &  ) const

Returns true if this object is embarked on the entity with the given UUID.

Parameters
uuidUUID of the potential host entity to check against.
virtual bool makVrf::DtStateDataWrapper::checkValidity ( ) const
virtual

Returns true if myExternalCurrentFrameState is not nullptr. Not virtual on purpose as even though local object subclasses from this, this only wants to check if the read portion is valid.

Reimplemented in DtLocalObject.

Referenced by DtLocalObject::addStateComponent().

int makVrf::DtStateDataWrapper::sessionId ( ) const
Returns
The VRF session ID for this object, or -1 if not a VRF-simulated object.
bool makVrf::DtStateDataWrapper::isVrfSimulatedObject ( ) const
Returns
True if this object is simulated by a VRF simulation engine.
bool makVrf::DtStateDataWrapper::isCurrentlyTasked ( ) const
Returns
True if this object is currently assigned an active task.
bool makVrf::DtStateDataWrapper::isExecutingPlan ( ) const
Returns
True if this object is currently executing a plan.
bool makVrf::DtStateDataWrapper::hasPlan ( ) const
Returns
True if this object has an assigned plan.
bool makVrf::DtStateDataWrapper::independentlyTasked ( ) const
Returns
True if this object acts on tasks independently of its unit.
bool makVrf::DtStateDataWrapper::underFire ( ) const
Returns
True if this object is currently under fire.
DtString makVrf::DtStateDataWrapper::rulesOfEngagement ( ) const
Returns
The rules of engagement identifier string for this object.
DtEchelonId makVrf::DtStateDataWrapper::echelonId ( ) const
Returns
The echelon (organization level) identifier for this object.
bool makVrf::DtStateDataWrapper::isDeleted ( ) const

Returns true if this object was valid and has since been deleted.

virtual void makVrf::DtStateDataWrapper::makeInvalid ( )
virtual

Make this invalid by clearing the myExternalCurrentFrameState. This will also set the myIsDeleted flag to true.

Reimplemented in DtLocalObject, and DtSimObject.

const DtLocalVertexList& makVrf::DtStateDataWrapper::localVertices ( ) const
Returns
The list of local (database-relative) vertex positions for multi-point objects.
std::vector<DtVector> makVrf::DtStateDataWrapper::localVertexList ( ) const
Returns
The local vertex positions as a plain vector of DtVector.
const DtVertexList& makVrf::DtStateDataWrapper::worldVertices ( ) const
Returns
The list of world (geocentric) vertex positions for multi-point objects.
std::vector<DtVector> makVrf::DtStateDataWrapper::worldVertexList ( ) const
Returns
The world vertex positions as a plain vector of DtVector.
const DtLocalVertexList& makVrf::DtStateDataWrapper::relativeVertices ( ) const
Returns
The vertex positions relative to the object's own reference point.
std::vector<DtVector> makVrf::DtStateDataWrapper::relativeVertexList ( ) const
Returns
The relative vertex positions as a plain vector of DtVector.
unsigned long long makVrf::DtStateDataWrapper::legionGlobalId ( ) const

The internal legion global id that this object represents.

bool makVrf::DtStateDataWrapper::advancedFrame ( ) const
inline

Will be true if this object has advanced at least one frame.

DtUUID makVrf::DtStateDataWrapper::superiorUUID ( ) const
Returns
The UUID of this object's superior (commanding) unit, or null UUID if none.
bool makVrf::DtStateDataWrapper::isTopLevel ( ) const

Convenience method to see if this is a top level object. It is if it is local and the entity type is DtTopLevelEntityType.

const DtExternalFrameStateInterface* makVrf::DtStateDataWrapper::externalCurrentFrameState ( ) const
inline
Returns
The raw external frame state interface providing read-only current-frame data.
const DtSimulatedObjectStateComponent* makVrf::DtStateDataWrapper::currentFrameSimulatedObjectStateComponent ( ) const
inline
Returns
Cached pointer to the simulated object state component for the current frame, or nullptr if absent.
const DtLocationStateComponent* makVrf::DtStateDataWrapper::currentFrameLocationStateComponent ( ) const
inline
Returns
Cached pointer to the location state component for the current frame, or nullptr if absent.
const DtStatePropertiesStateComponent* makVrf::DtStateDataWrapper::currentFrameStatePropertiesStateComponent ( ) const
inline
Returns
Cached pointer to the state properties component for the current frame, or nullptr if absent.

Referenced by makVrf::DtSetStatePropertyDialog::setupProperties().

const DtVrfGeometryStateComponent* makVrf::DtStateDataWrapper::currentFrameVrfGeometryStateComponent ( ) const
inline
Returns
Cached pointer to the VRF geometry state component for the current frame, or nullptr if absent.
const DtEntityStateComponent* makVrf::DtStateDataWrapper::currentFrameEntityStateComponent ( ) const
inline
Returns
Cached pointer to the entity state component for the current frame, or nullptr if absent.
const DtVrfStateComponent* makVrf::DtStateDataWrapper::currentFrameVrfStateComponent ( ) const
inline
Returns
Cached pointer to the VRF state component for the current frame, or nullptr if absent.
std::set<int> makVrf::DtStateDataWrapper::currentFrameModifiedStateComponentTypes ( ) const
Returns
The set of state component type IDs that were modified in the current simulation frame.
std::set<int> makVrf::DtStateDataWrapper::nextFrameModifiedStateComponentTypes ( ) const
Returns
The set of state component type IDs queued for modification in the next simulation frame.
virtual const DtStateData* makVrf::DtStateDataWrapper::stateDataFor ( const DtUUID &  uuid) const
protectedvirtual

Returns the DtStateData for the given UUID via the state data manager.

Parameters
uuidThe UUID to look up.
Returns
The corresponding DtStateData, or nullptr if not found.

Reimplemented in makVrf::DtGuiLocalObject.

virtual void makVrf::DtStateDataWrapper::cacheComponents ( )
protectedvirtual

Populates the cached state component pointers from the current frame state.

Reimplemented in makVrf::DtGuiLocalObject, and makVrf::DtGuiSimObject.

virtual void makVrf::DtStateDataWrapper::clearCachedComponents ( )
protectedvirtual

Clears all cached state component pointers back to nullptr.

Reimplemented in makVrf::DtGuiLocalObject, and makVrf::DtGuiSimObject.

virtual void makVrf::DtStateDataWrapper::stateDataAdded ( DtStateData *  )
protectedvirtual

Slot called when a new DtStateData is added; resolves a pending awaiting-reference.

Parameters
sdThe newly added state data.

Reimplemented in DtSimObject.

virtual void makVrf::DtStateDataWrapper::setUUID ( const DtUUID &  )
protectedvirtual

Reassigns this wrapper to track the simulation object with the given UUID.

Parameters
uuidThe UUID of the object to track.

Reimplemented in DtLocalObject, makVrf::DtGuiLocalObject, and DtSimObject.

bool makVrf::DtStateDataWrapper::checkAndConnectForVrfStateComponent ( )
protected

Checks whether a VRF state component is present and registers the necessary signal connections.

Returns
True if a VRF state component was found and connected.
void makVrf::DtStateDataWrapper::uuidChanged ( const DtUUID &  ,
const DtUUID &   
)
protected

Slot called when the UUID of the tracked object changes.

Parameters
oldUUIDThe previous UUID.
newUUIDThe replacement UUID.
virtual void makVrf::DtStateDataWrapper::objectNameChanged ( const DtString &  oldText,
const DtString &  newText 
)
protectedvirtual

Slot called when the display name of the tracked object changes.

Parameters
oldTextThe previous name.
newTextThe new name.
virtual void makVrf::DtStateDataWrapper::completeSetup ( )
protectedvirtual

Completes initialization once the underlying state data has become available.

Reimplemented in DtLocalObject, DtSimObject, and makVrf::DtGuiSimObject.

virtual void makVrf::DtStateDataWrapper::extendedDataUpdated ( )
protectedvirtual

Slot called when the extended data on the tracked object is updated.

virtual void makVrf::DtStateDataWrapper::superiorChanged ( )
protectedvirtual

Slot called when the superior unit of this object changes.

Reimplemented in DtSimObject.

virtual void makVrf::DtStateDataWrapper::isClutterChanged ( )
protectedvirtual

Slot called when the is-clutter flag on this object changes.

Reimplemented in DtLocalObject.

virtual void makVrf::DtStateDataWrapper::externalFrameStateToBeDestroyed ( )
protectedvirtual

Called when the parameter is set up, this is the source it is using.

virtual void makVrf::DtStateDataWrapper::slot_stateComponentAdded ( DtStateComponent *  )
protectedvirtual

Slot called when a state component is added to the underlying state data.

Parameters
componentThe newly added state component.
virtual void makVrf::DtStateDataWrapper::slot_stateComponentRemoved ( DtStateComponent *  )
protectedvirtual

Slot called when a state component is removed from the underlying state data.

Parameters
componentThe removed state component.
virtual void makVrf::DtStateDataWrapper::simEngineAddressChanged ( const DtSimulationAddress &  oldAddress,
const DtSimulationAddress &  newAddress 
)
protectedvirtual

Slot called when the simulation engine address hosting this object changes.

Parameters
oldAddressThe previous simulation engine address.
newAddressThe new simulation engine address.

Member Data Documentation

boost::signals2::signal<void ()> makVrf::DtStateDataWrapper::signal_objectVerticesChanged

Signal sent when the user changes the vertices via a set command. If this is a remote object, this signal may be sent any time the vertices change if the object is embarked on a host. This signal is only send for multiple vertex objects (routes/areas).

boost::signals2::signal<void ()> makVrf::DtStateDataWrapper::signal_extendedDataUpdated
mutable

Signal sent out (during advance frame) when the extended data has been updated.

boost::signals2::signal<void ()> makVrf::DtStateDataWrapper::signal_simObjectDeleted
mutable

Signal sent when this simulation object has been deleted from the exercise.

boost::signals2::signal<void (const DtString&)> makVrf::DtStateDataWrapper::signal_discoveredReference
mutable

Signal sent if this was awaiting for the base data to show up, and, it has.

boost::signals2::signal<void (const DtUUID& oldUUID, const DtUUID& newUUID)> makVrf::DtStateDataWrapper::signal_uuidChanged
mutable

Signal sent when the uuid of this object has changed. Sent during a frame advance.

boost::signals2::signal<void (const DtSimulationAddress& oldAddr, const DtSimulationAddress& newAddr)> makVrf::DtStateDataWrapper::signal_simEngineAddressChanged
mutable

Signal sent when the backend hosting this object has changed. Sent during a frame advance.

boost::signals2::signal<void (const DtString& oldName, const DtString& newName)> makVrf::DtStateDataWrapper::signal_objectRenamed
mutable

Signal sent when the uuid of this object has changed. Sent during a frame advance.

boost::signals2::signal<void (const DtUUID& oldSuperior, const DtUUID& newSuperior)> makVrf::DtStateDataWrapper::signal_superiorChanged
mutable

Signal sent when superior has changed.

boost::signals2::signal<void()> makVrf::DtStateDataWrapper::signal_isClutterChanged
mutable

Signal sent out (during advance frame) when the is-clutter flag has been updated.

boost::signals2::signal<void (DtStateComponent*)> makVrf::DtStateDataWrapper::signal_stateComponentAdded
mutable

Signal sent when a state component is added to this object.

boost::signals2::signal<void (DtStateComponent*)> makVrf::DtStateDataWrapper::signal_stateComponentRemoved
mutable

Signal sent when a state component is removed from this object.

boost::signals2::signal<void ()> makVrf::DtStateDataWrapper::signal_advancedFrame
mutable

Signal sent when the state data signals that the frame has been advanced WARNING: This signal will be called from within the overall AdvanceFrame section while other entities are advancing frames in parallel threads. It is unsafe to inspect any other object's at this time, and unsafe to make changes to this object's public state.

boost::signals2::signal<void ()> makVrf::DtStateDataWrapper::signal_firstFrameAdvance

Signal when the frame is advanced for the first time.

const DtExternalFrameStateInterface* makVrf::DtStateDataWrapper::myExternalCurrentFrameState
protected

Pointer to the current-frame read-only state interface; null if this object is invalid.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myStateComponentAddedConnection
protected

Connection to signal_stateComponentAdded on the tracked state data.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myStateComponentRemovedConnection
protected

Connection to signal_stateComponentRemoved on the tracked state data.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myDeletedConnection
protected

Connection to signal_externalFrameStateToBeDestroyed on the current frame state.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myAddedConnection
protected

Connection to signal_stateDataAdded on the state data manager (used while awaiting).

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myUUIDChangedConnection
protected

Connection to signal_uuidChanged on the tracked state data.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myObjectNameChangedConnection
protected

Connection to signal_objectNameChanged on the tracked state data.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myExtendedDataUpdatedConnection
protected

Connection to signal_extendedDataUpdated on the tracked state data.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myFirstFrameAdvancedConnection
protected

Connection to signal_firstFrameAdvance on the tracked state data.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::mySuperiorChangedConnection
protected

Connection to signal_superiorChanged on the tracked state data.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myAdvancedFrameConnection
protected

Connection to signal_frameAdvanced on the tracked state data.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::myIsClutterChangedConnection
protected

Connection to signal_isClutterChanged on the tracked state data.

boost::signals2::scoped_connection makVrf::DtStateDataWrapper::mySimEngineAddressChangedConnection
protected

Connection to signal_simEngineAddressChanged on the tracked state data.

DtString makVrf::DtStateDataWrapper::myAwaiting
protected

If this object is awaiting for its reference to show up, this will be either a UUID or an entity id string.

DtUUID makVrf::DtStateDataWrapper::myUUID
protected

Once assigned, the UUID of this object. This will be valid even after the object is deleted.

unsigned long long makVrf::DtStateDataWrapper::myLegionGlobalId
protected

Internal 64-bit legion global handle; initialized to 0xFFFFFFFFFFFFFFFF until resolved.

bool makVrf::DtStateDataWrapper::myIsDeleted
protected

True if this object has been removed from the exercise.

DtString makVrf::DtStateDataWrapper::myObjectName
mutableprotected

This is for debug purposes only. It will get set when the bounding volume is checked (and locked) and this value is empty.

DtEntityType makVrf::DtStateDataWrapper::myEntityType
mutableprotected

Cached entity type used for debug and logging; updated when the object is resolved.

DtUUID makVrf::DtStateDataWrapper::mySuperiorUUID
protected

UUID of this object's superior unit, or null UUID if it has no superior.

bool makVrf::DtStateDataWrapper::myAdvancedFrame
protected

True once this object has advanced at least one simulation frame.

tbb::spin_rw_mutex makVrf::DtStateDataWrapper::myExternalCurrentFrameStateMutex
mutableprotected

Reader-writer spin mutex protecting myExternalCurrentFrameState for thread-safe access.

DtUUID makVrf::DtStateDataWrapper::myEmbarkedOn
protected

UUID of the host object this object is embarked on, or null UUID if not embarked.

const DtSimulatedObjectStateComponent* makVrf::DtStateDataWrapper::myCurrentFrameSimulatedObjectStateComponent
protected

Cached simulated object state component pointer for the current frame; nullptr if absent.

const DtVrfStateComponent* makVrf::DtStateDataWrapper::myCurrentFrameVrfStateComponent
protected

Cached VRF state component pointer for the current frame; nullptr if absent.

const DtEntityStateComponent* makVrf::DtStateDataWrapper::myCurrentFrameEntityStateComponent
protected

Cached entity state component pointer for the current frame; nullptr if absent.

const DtLocationStateComponent* makVrf::DtStateDataWrapper::myCurrentFrameLocationStateComponent
protected

Cached location state component pointer for the current frame; nullptr if absent.

const DtVrfGeometryStateComponent* makVrf::DtStateDataWrapper::myCurrentFrameVrfGeometryStateComponent
protected

Cached VRF geometry state component pointer for the current frame; nullptr if absent.

const DtStatePropertiesStateComponent* makVrf::DtStateDataWrapper::myCurrentFrameStatePropertiesStateComponent
protected

Cached state properties component pointer for the current frame; nullptr if absent.

bool makVrf::DtStateDataWrapper::myCachedComponents
protected

True once component pointers have been populated by cacheComponents().

const DtStateData* makVrf::DtStateDataWrapper::myStateData = nullptr
protected

Optional direct reference to the underlying DtStateData, if available.

const DtStateDataManager* makVrf::DtStateDataWrapper::myStateDataManager
protected

The state data manager used to resolve UUID and entity identifier lookups.


The documentation for this class 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)