![]() |
VR-Forces Developer's Guide
|
DtEnvironmentalKinematicState Controls kinematic state of a scene object. This class has no accessors to kinematic data due to updaters being in the render thread. Do not add accessors for kin state info. This class does not support ground clamping, VRF sends positions to VRV that are already ground clamped. Some TGs require that their orienation be "levelled" to the terrain. This is achieved by making calling to the network listener that can correctly calculate the leveled orientation. This class applies the levelled orientation on the scene object if myOrientationLevelling is set. This can be enabled using setOrientationLevelling, or by setting the bool visualizer definition field "enablelevelling". Default is false.

Static Public Member Functions | |
| static const std::string & | theClassName () |
Protected Member Functions | |
| virtual void | connectToListenerSignals () override |
| virtual void | connectToSettingsSignals () override |
| virtual void | createUpdaters () override |
| virtual void | destroyUpdaters () override |
| virtual void | addSceneObjectToUpdaters (DtModelSetId modelSet, DtSceneObjectAgent *sceneObjectAgent) override |
| virtual void | removeSceneObjectFromUpdaters (DtModelSetId modelSet, DtSceneObjectAgent *sceneObjectAgent) override |
| virtual void | resetSpatial () |
| virtual void | slot_embarkationModeChanged (DtEmbarkationMode mode) |
Protected Member Functions inherited from makVrv::DtKinematicState | |
| virtual void | setEmbarked (const DtUniqueID &id) |
Protected Attributes | |
| DtTacticalGraphicStateListener & | myTacticalGraphicListener |
| DtEnvironmentalEmbarkationUpdaterAgent * | myEmbarkationUpdaterAgent |
| bool | myOrientationLevelling |
| DtVector | myLocalLocation |
| DtVector | myRelativeLocation |
Protected Attributes inherited from makVrv::DtKinematicState | |
| SceneObjectMap | mySceneObjectMap |
| DtStateListener & | myStateListener |
| DtAgentManagerInterface & | mySceneInterface |
| DtSharedSettingsManager & | mySettingsManager |
| DtSignalConnectionManager | myConnections |
| DtUniqueID | myEmbarkedParentSceneObjectID |
| bool | myEmbarkedFlag |
| bool | myInitialized |
| bool | myDistributeFlag |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtKinematicState | |
| using | SceneObjectMap = std::unordered_map< DtModelSetId, DtSceneObjectAgent * > |
| makVrv::DtEnvironmentalKinematicState::DtEnvironmentalKinematicState | ( | DtStateListener & | listener, |
| DtAgentManagerInterface & | sceneInterface, | ||
| DtSharedSettingsManager & | settingsManager | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
delete |
not allowed - equals operator
|
overridevirtual |
Initialize the Kinematic State Object.
Reimplemented from makVrv::DtKinematicState.
Reimplemented in makVrv::DtShapeEnvironmentalKinematicState, and makVrv::DtVertexEnvironmentalKinematicState.
|
virtual |
Call to scene object to set location without changing the offset.
|
virtual |
If attached, the location offset from the origin of the entity.
Reimplemented in makVrv::DtShapeEnvironmentalKinematicState.
|
overridevirtual |
Needs to be public for the Vertex Visualizer / Element.
Implements makVrv::DtKinematicState.
Reimplemented in makVrv::DtShapeEnvironmentalKinematicState, and makVrv::DtVertexEnvironmentalKinematicState.
|
overridevirtual |
Embarkation / ParentingAttempts to find a valid scene object id from the parent element calls setEmbarked if one is found. Uses the 3D Models ( ModelSet3dModels ) scene object if it is available, if not it will then try the Icons2D scene object and finally the ModelsColorized scene object.
Implements makVrv::DtKinematicState.
Reimplemented in makVrv::DtShapeEnvironmentalKinematicState, and makVrv::DtVertexEnvironmentalKinematicState.
|
virtual |
Level.
|
virtual |
Level.
|
virtual |
Given the current coordinate system, return that Tait-Bryans that will keep the waypoint upright in any coordinate system Makes call to listener so it can use a network location Adds myHeadingOrientationDelta if set.
|
static |
Returns "DtEnvironmentalKinematicState", this is used by the DtKinematicStateCreatorTemplate to find and register the correct creator instance e.g. findInstance( KinematicState::theClassName() + "Creator" ));.
|
virtual |
Return a pointer to the embarkation updater Vertex kinematic states also use this updater Owned by shape kinematic states.
|
overrideprotectedvirtual |
No-op.
Reimplemented from makVrv::DtKinematicState.
Reimplemented in makVrv::DtShapeEnvironmentalKinematicState, and makVrv::DtVertexEnvironmentalKinematicState.
|
overrideprotectedvirtual |
Not implemented - derived kin states do.
Implements makVrv::DtKinematicState.
|
overrideprotectedvirtual |
Called by initialize.
Implements makVrv::DtKinematicState.
|
overrideprotectedvirtual |
Not implemented.
Implements makVrv::DtKinematicState.
Reimplemented in makVrv::DtVertexEnvironmentalKinematicState.
|
overrideprotectedvirtual |
Not implemented.
Implements makVrv::DtKinematicState.
Reimplemented in makVrv::DtShapeEnvironmentalKinematicState, and makVrv::DtVertexEnvironmentalKinematicState.
|
overrideprotectedvirtual |
Not implemented.
Implements makVrv::DtKinematicState.
Reimplemented in makVrv::DtShapeEnvironmentalKinematicState, and makVrv::DtVertexEnvironmentalKinematicState.
|
protectedvirtual |
Reimplemented in makVrv::DtShapeEnvironmentalKinematicState, and makVrv::DtVertexEnvironmentalKinematicState.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |