![]() |
VR-Forces 4.3.1 Class Documentation
|
This class provides an abstract base class for CIGI entities. More...

Public Member Functions | |
| DtCigiBaseEntity (DtCigiConnection &connection, DtAgentManagerInterface &sceneInterface, int entityId, int entityType) | |
| Constructor takes a DtCigiConnection, scene interface, and the CIGI entity ID/type. | |
| virtual | ~DtCigiBaseEntity () |
| Destructor. | |
| virtual DtUniqueID | uniqueId () const |
| Returns the unique ID of the entity's scene object. | |
| virtual int | cigiId () const |
| Returns the ID of the CIGI entity. | |
| virtual void | init () |
| virtual void | setVisible (bool yesNo) |
| Set whether the entity is visible. | |
| virtual void | setDeadReckoningOn (bool onOff) |
| Turns dead-reckoning on/off. | |
| virtual void | setPosition (const DtGeodeticCoord &pos, bool force=false) |
| Set the entity's geodetic position. | |
| virtual const DtGeodeticCoord & | position () const |
| Returns the last position set by a CIGI entity control message. | |
| virtual const DtVector & | localPosition () const |
| Returns the last computed local position set. | |
| virtual void | setOrientation (const DtTaitBryan &orientation, bool force=false) |
| Set the entity's orientation. | |
| virtual const DtTaitBryan & | orientation () const |
| Returns the last orientation set by a CIGI entity control message. | |
| virtual void | setLinearRate (const DtVector &rate, bool useWorldCoordinates=true) |
| Sets the entity's linear rate. | |
| virtual void | setAngularRate (const DtVector &rate, bool useWorldCoordinates=true) |
| Set's the entity's angular rate. | |
| virtual void | setRelativeTo (DtCigiBaseEntity *parent) |
| Attachment control. | |
| virtual void | setRelativePosition (const DtVector &pos) |
| Sets the entity's relative position (if attached). | |
| virtual void | setRelativeOrientation (const DtTaitBryan &orient) |
| Sets the entity's relative orientation (relative to the parent's body coordinates) if attached. | |
| virtual void | slot_deadReckoningAllowed (bool allowed) |
| Called when IG-wide extrapolation is turned on or off. | |
| virtual void | setAlpha (int alpha) |
| Sets the entity's alpha value. | |
| virtual int | alpha () const |
| Returns the entity's alpha value. | |
| virtual void | setInheritAlpha (bool inherit) |
| Set whether the entity should inherit alpha from its parent. | |
| virtual void | slot_alphaChanged (int alpha, DtUniqueID id) |
| Slot so we can check if the parent's alpha has changed. | |
| virtual void | setGroundClampingOn (DtGroundClampingUpdater::GroundClampingMode clampType) |
| Turns ground clamping on/off. | |
Public Attributes | |
| boost::signal< void(int, DtUniqueID)> | signal_alphaChanged |
| Emitted when this entity's alpha has changed. | |
Protected Member Functions | |
| virtual void | startDeadReckoning () |
| Create and set up Dead Reckoning updater. | |
| virtual void | endDeadReckoning () |
| Remove the Dead Reckoning updater. | |
| virtual void | startEmbarked () |
| Create and set up Embarkation updater. | |
| virtual void | endEmbarked () |
| Remove the Embarkation updater. | |
| virtual void | startGroundClamping () |
| Create and set up Ground Clamping updater. | |
| virtual void | endGroundClamping () |
| Remove the Ground Clamping updater. | |
| virtual void | buildGroundClampingUpdater () |
Protected Attributes | |
| DtSceneObjectAgent * | mySceneObject |
| DtModelAgent * | myModel |
| DtDeadReckonUpdaterAgent * | myDeadReckonUpdaterAgent |
| DtGroundClampingUpdaterAgent * | myGroundClampingUpdaterAgent |
| DtEmbarkationUpdaterAgent * | myEmbarkationUpdaterAgent |
| bool | myDeadReckoningOn |
| bool | myEmbarked |
| DtGroundClampingUpdater::GroundClampingMode | myGroundClampingType |
| DtGeodeticCoord | myLastPosition |
| DtVector | myLastLocalPosition |
| DtTaitBryan | myLastOrientation |
| DtTaitBryan | myLastLocalOrientation |
| DtTaitBryan | myLastGeocentricOrientation |
| DtVector | myLastVelocity |
| DtVector | myLastAngularVelocity |
| DtCigiConnection & | myConnection |
| DtAgentManagerInterface & | mySceneInterface |
| int | myEntityId |
| int | myEntityType |
| DtCigiBaseEntity * | myParent |
| DtUniqueID | myEmbarkedParentID |
| bool | myInheritAlpha |
| int | myAlpha |
| bool | myVisiblity |
| DtSignalConnectionManager | mySignalConnections |
This class provides an abstract base class for CIGI entities.
These are created by the DtCigiEntityVisualizer and updated as CIGI messages that pertain to entities are processed.
| makVrv::DtCigiBaseEntity::DtCigiBaseEntity | ( | DtCigiConnection & | connection, |
| DtAgentManagerInterface & | sceneInterface, | ||
| int | entityId, | ||
| int | entityType | ||
| ) |
Constructor takes a DtCigiConnection, scene interface, and the CIGI entity ID/type.
|
virtual |
Destructor.
|
virtual |
Returns the unique ID of the entity's scene object.
|
virtual |
Returns the ID of the CIGI entity.
|
virtual |
|
virtual |
Set whether the entity is visible.
Reimplemented in makVrv::DtCigiWakeEntity.
|
virtual |
Turns dead-reckoning on/off.
|
virtual |
Set the entity's geodetic position.
| [in] | pos | is the position set from the CIGI entity control message. |
| [in] | force | is a flag to force handling even if position has not changed. |
Reimplemented in makVrv::DtCigiCharacterEntity, makVrv::DtCigiWatercraftEntity, and makVrv::DtCigiWakeEntity.
|
virtual |
Returns the last position set by a CIGI entity control message.
|
virtual |
Returns the last computed local position set.
|
virtual |
Set the entity's orientation.
| [in] | orientation | is the orientation set from the CIGI entity control message. |
| [in] | force | is a flag to force handling even if orientation has not changed. |
Reimplemented in makVrv::DtCigiWakeEntity, makVrv::DtCigiCharacterEntity, and makVrv::DtCigiWatercraftEntity.
|
virtual |
Returns the last orientation set by a CIGI entity control message.
|
virtual |
Sets the entity's linear rate.
If useWorldCoordinates is set to true, sets the velocity according to the entity's rate with respect to the tangential reference plane of the entity. Otherwise, sets the velocity with respect to the entity's coordinate system.
Reimplemented in makVrv::DtCigiWakeEntity, and makVrv::DtCigiWatercraftEntity.
|
virtual |
Set's the entity's angular rate.
If useWorldCoordinates is set to true, sets the angular velocity with respect to the tangential reference plane of the entity. Otherwise, sets the velocity with respect to the entity's coordinate system.
|
virtual |
Attachment control.
Reimplemented in makVrv::DtCigiWakeEntity.
|
virtual |
Sets the entity's relative position (if attached).
Reimplemented in makVrv::DtCigiWakeEntity.
|
virtual |
Sets the entity's relative orientation (relative to the parent's body coordinates) if attached.
Reimplemented in makVrv::DtCigiWakeEntity.
|
virtual |
Called when IG-wide extrapolation is turned on or off.
Stops the entity from dead reckoning if it currently is (but remembers if it was) and turns dead reckoning on if the entity has requested dead reckoning and it becomes allowed again
|
virtual |
Sets the entity's alpha value.
|
virtual |
Returns the entity's alpha value.
This needs to be checked if the entity is inheriting its parent's alpha.
|
virtual |
Set whether the entity should inherit alpha from its parent.
|
virtual |
Slot so we can check if the parent's alpha has changed.
|
virtual |
Turns ground clamping on/off.
|
protectedvirtual |
Create and set up Dead Reckoning updater.
Reimplemented in makVrv::DtCigiCharacterEntity, and makVrv::DtCigiWatercraftEntity.
|
protectedvirtual |
Remove the Dead Reckoning updater.
Reimplemented in makVrv::DtCigiCharacterEntity, and makVrv::DtCigiWatercraftEntity.
|
protectedvirtual |
Create and set up Embarkation updater.
Reimplemented in makVrv::DtCigiCharacterEntity.
|
protectedvirtual |
Remove the Embarkation updater.
Reimplemented in makVrv::DtCigiCharacterEntity.
|
protectedvirtual |
Create and set up Ground Clamping updater.
Reimplemented in makVrv::DtCigiCharacterEntity.
|
protectedvirtual |
Remove the Ground Clamping updater.
Reimplemented in makVrv::DtCigiCharacterEntity.
|
protectedvirtual |
| boost::signal<void (int, DtUniqueID)> makVrv::DtCigiBaseEntity::signal_alphaChanged |
Emitted when this entity's alpha has changed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |