VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes

A DtCigiAnimationEntity is a CIGI entity that loads an articulated model. More...

Inheritance diagram for makVrv::DtCigiEntity:
Inheritance graph
[legend]

Public Member Functions

 DtCigiEntity (DtCigiConnection &connection, DtAgentManagerInterface &mySceneInterface, int entityId, int entityType)
 Constructor.
virtual ~DtCigiEntity ()
 Destructor.
virtual void setState (int stateId, int stateValue)
 Set the state of a model to a value.
virtual void setArtPartTranslation (int partId, float xOffset, float yOffset, float zOffset, bool xEnable, bool yEnable, bool zEnable)
 Set the relative position of an articulated part.
virtual void setArtPartOrientation (int partId, float yaw, float pitch, float roll, bool yawEnable, bool pitchEnable, bool rollEnable)
 Set the orientation of an articulated part.
virtual void setArtPartLinearRate (int partId, float xRate, float yRate, float zRate)
 Set the linear rate of an articulated part.
virtual void setArtPartAngularRate (int partId, float yawRate, float pitchRate, float rollRate)
 Set the angular rate of an articulated part.
virtual void setArtPartEnable (int partId, bool trueFalse)
 Enable/disable an articulated part.
virtual void setAnimationSpeed (const std::string &animationName, double speed)
 Set the speed of an animation within the model.
virtual void setAnimationFrame (const std::string &animationName, int frame)
 Set the frame of an animation within the model.
virtual void setActiveRegionState (const std::string &regionName, bool state)
 Set the state of an active sensor region.
virtual void setAnimationRange (const std::string &animationName, int firstFrameIndex, int lastFrameIndex)
 Set the range of an animation within the model.
- Public Member Functions inherited from makVrv::DtCigiBaseEntity
 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 element ID of the entity's scene object.
virtual DtUniqueID elementId () const
 Returns the element ID of the entity's scene object.
virtual int cigiId () const
 Returns the CIGI Id of the CIGI entity.
virtual void init ()
virtual int entityType () const
 Get the entity type the entity was created with.
virtual void setVisible (bool yesNo)
 Set whether the entity is visible.
virtual bool isVisible () const
 Get the current visibility.
virtual void setDeadReckoningOn (bool onOff)
 Turns dead-reckoning on/off.
virtual bool isDeadReckoning () const
 Determine if the entity is dead reckoning.
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 DtVectorlocalPosition () 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 const DtTaitBryan & localOrientation () const
 Returns the computed last local orientation.
virtual const DtTaitBryan & geocentricOrientation () const
 Get the last computed geocentric orientation.
virtual void setLinearRate (const DtVector &rate, bool useWorldCoordinates, bool force=false)
 Sets the entity's linear rate.
virtual const DtVectorlinearRate () const
 Get the last set linear rate.
virtual void setAngularRate (const DtVector &rate, bool useWorldCoordinates, bool force=false)
 Set's the entity's angular rate.
virtual const DtVectorangularRate () const
 Get the last set angular rate.
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 bool isInheritingAlpha () const
 Determine if the entity is inheriting alpha.
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.
virtual
DtGroundClampingUpdater::GroundClampingMode 
groundClampingType () const
 Get the current ground clamping type.
virtual bool getArtPartTranslation (int partId, int &mappedPartId, DtVector &translation)
 Get the art part translation from a specified CIGI part id.
virtual bool getArtPartOrientation (int partId, int &mappedPartId, DtTaitBryan &orientation)
 Returns false if the part id is not found.
virtual bool getArtPartLinearRate (int partId, int &mappedPartId, DtVector &rate)
 Get the art part translation rate from a specified CIGI part id.
virtual bool getArtPartTranslationAndRate (int partId, int &mappedPartId, DtVector &translation, DtVector &rate)
 Get the art part translation and rate from a specified CIGI part id.
virtual bool getArtPartAngularRate (int partId, int &mappedPartId, DtVector &rate)
 Returns false if the part id is not found.
virtual bool getArtPartOrientationAndRate (int partId, int &mappedPartId, DtTaitBryan &orientation, DtVector &rate)
 Returns false if the part id is not found.
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 bool isEmbarked () const
 Determine if the entity is attached to a parent entity.
virtual DtUniqueID embarkedParentId () const
 Get the element ID of the entity to which we are attached.

Protected Attributes

DtArticulatedModelAgent * myArticulatedModel
- Protected Attributes inherited from makVrv::DtCigiBaseEntity
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
DtCigiConnectionmyConnection
DtAgentManagerInterfacemySceneInterface
int myEntityId
int myEntityType
DtCigiBaseEntitymyParent
DtUniqueID myEmbarkedParentID
bool myInheritAlpha
int myAlpha
bool myVisiblity
std::map< int, DtTaitBryan > myLastArtPartOrientation
std::map< int, DtVectormyLastArtPartTranslation
std::map< int, DtVectormyArtPartAngularRate
std::map< int, DtVectormyArtPartLinearRate
DtSignalConnectionManager mySignalConnections

Additional Inherited Members

- Public Attributes inherited from makVrv::DtCigiBaseEntity
boost::signal< void(int,
DtUniqueID)> 
signal_alphaChanged
 Emitted when this entity's alpha has changed.
- Protected Member Functions inherited from makVrv::DtCigiBaseEntity
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 ()

Detailed Description

A DtCigiAnimationEntity is a CIGI entity that loads an articulated model.

Constructor & Destructor Documentation

makVrv::DtCigiEntity::DtCigiEntity ( DtCigiConnection connection,
DtAgentManagerInterface mySceneInterface,
int  entityId,
int  entityType 
)

Constructor.

virtual makVrv::DtCigiEntity::~DtCigiEntity ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrv::DtCigiEntity::setState ( int  stateId,
int  stateValue 
)
virtual

Set the state of a model to a value.

virtual void makVrv::DtCigiEntity::setArtPartTranslation ( int  partId,
float  xOffset,
float  yOffset,
float  zOffset,
bool  xEnable,
bool  yEnable,
bool  zEnable 
)
virtual

Set the relative position of an articulated part.

Reimplemented from makVrv::DtCigiBaseEntity.

virtual void makVrv::DtCigiEntity::setArtPartOrientation ( int  partId,
float  yaw,
float  pitch,
float  roll,
bool  yawEnable,
bool  pitchEnable,
bool  rollEnable 
)
virtual

Set the orientation of an articulated part.

Reimplemented from makVrv::DtCigiBaseEntity.

virtual void makVrv::DtCigiEntity::setArtPartLinearRate ( int  partId,
float  xRate,
float  yRate,
float  zRate 
)
virtual

Set the linear rate of an articulated part.

Reimplemented from makVrv::DtCigiBaseEntity.

virtual void makVrv::DtCigiEntity::setArtPartAngularRate ( int  partId,
float  yawRate,
float  pitchRate,
float  rollRate 
)
virtual

Set the angular rate of an articulated part.

Reimplemented from makVrv::DtCigiBaseEntity.

virtual void makVrv::DtCigiEntity::setArtPartEnable ( int  partId,
bool  trueFalse 
)
virtual

Enable/disable an articulated part.

Reimplemented from makVrv::DtCigiBaseEntity.

virtual void makVrv::DtCigiEntity::setAnimationSpeed ( const std::string &  animationName,
double  speed 
)
virtual

Set the speed of an animation within the model.

virtual void makVrv::DtCigiEntity::setAnimationFrame ( const std::string &  animationName,
int  frame 
)
virtual

Set the frame of an animation within the model.

virtual void makVrv::DtCigiEntity::setActiveRegionState ( const std::string &  regionName,
bool  state 
)
virtual

Set the state of an active sensor region.

virtual void makVrv::DtCigiEntity::setAnimationRange ( const std::string &  animationName,
int  firstFrameIndex,
int  lastFrameIndex 
)
virtual

Set the range of an animation within the model.

Member Data Documentation

DtArticulatedModelAgent* makVrv::DtCigiEntity::myArticulatedModel
protected

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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)