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 Member Functions | Protected Attributes
makVrv::DtDiGuyMotionModel Class Reference

A Di Gui based motion model for objects which have a DI Guy character. More...

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

Public Member Functions

 DtDiGuyMotionModel (DtDe &igs, DtSceneObject *owner)
 CTOR.
 DtDiGuyMotionModel (const DtDiGuyMotionModel &orig, double time)
 Copy CTOR.
virtual ~DtDiGuyMotionModel ()
 DTOR.
virtual DtMotionModelclone (double simTime)
 Clone the motion model's externally visible state.
virtual bool motionModelHandlesUpdate () const
 Does the Di Guy motion model handle updates.
virtual void updateMotion (double simulationTime)
 Call to update the motion state of the character.
virtual const chargetActionFromDescription (diguyMotionDirection direction, diguyMotionPosture posture, double actualSpeed)
 Get a DI-Guy action for the current character to match the direction/posture/speed.
virtual void modelAdded (DtModel *)
 Called whenever a model is added.
virtual void modelRemoved (DtModel *)
 Called whenever a model is removed.
virtual void setLocation (const DtVector &loc, DtTime t)
 Set absolute location.
virtual const DtVectorapproxLocation (DtTime curTime) const
 Get the approximated (i.e.
virtual void setOrientation (const DtTaitBryan &ori, DtTime curTime)
 Set absolute orientation.
virtual void setVelocity (const DtVector32 &vel, DtTime curTime)
 Set absolute velocity.
virtual void setRotationalVelocity (const DtVector32 &vel, DtTime curTime)
 Set/Get absolute rotational velocity.
- Public Member Functions inherited from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >
 DtVRLDeadReckonerMotionModel ()
 CTOR.
 DtVRLDeadReckonerMotionModel (const DtVRLDeadReckonerMotionModel &orig, double time)
 Copy CTOR.
virtual const DtVector32 & approxVelocity (DtTime curTime) const
 Get the approximated (i.e.
virtual const DtVector32 & approxUnsmoothedVelocity (DtTime curTime) const
 Get the approximated (i.e.
virtual void setSmoothPeriod (float period)
 Set the smoothing period.
virtual void setSmoothingEnabled (bool enabled)
 Enable or disable smoothing.
virtual const DtTaitBryan & approxEuler (DtTime curTime) const
 Get the approximated (i.e.
virtual void setAcceleration (const DtVector32 &acc, DtTime curTime)
 Set/Get absolute acceleration.
virtual const DtVector32 & acceleration (DtTime curTime) const
virtual const DtVector32 & rotationalVelocity (DtTime curTime) const
virtual void setAlgorithm (DtDeadReckonTypes alg)
 Set/Get the dead reckoning algorithm used for generating the approximated values from the absolute values.
virtual DtDeadReckonTypes algorithm () const
virtual void reset ()
 Used to reset the DeadReckoner.
virtual void setFrozen (bool frozen)
 Get/Set the frozen state (enable/disable dead reckoning)
virtual bool isFrozen () const
 Get/Set the frozen state (enable/disable dead reckoning)
- Public Member Functions inherited from makVrv::DtMotionModel
 DtMotionModel ()
virtual ~DtMotionModel ()

Protected Member Functions

int calculateDirectionFBLR (const DtTaitBryan &ori, const DtVector32 &vel)
int calculateDirectionFB (const DtTaitBryan &ori, const DtVector32 &vel)
void setCharacter (DtDiGuyCharacterModel *character)
 Set the character model that this motion model is controlling.

Protected Attributes

DtDemyDe
DtVector myPositionReturn
DtTaitBryan myOrientationReturn
DtVector mApproxLocation
DtVector myLastTopoUpdateLocation
DtVector myAcceleration
DtDiGuyCharacterModelmyCharacter
DtSceneObjectmyObjectToMove
int myLastDirection
int myLastPosture
double myLastSpeed
const charmyLastAction
double myLastActionTime
bool myLastWeaponDeployed
int myNeedsInit
DtVector myLastFirmLocation
DtTaitBryan myLastFirmOrientation
DtVector32 myLastFirmVelocity
DtVector32 myLastFirmRotationalVelocity
DtTime myLastFirmRotationalVelocityTime

Detailed Description

A Di Gui based motion model for objects which have a DI Guy character.

Constructor & Destructor Documentation

makVrv::DtDiGuyMotionModel::DtDiGuyMotionModel ( DtDe igs,
DtSceneObject owner 
)

CTOR.

makVrv::DtDiGuyMotionModel::DtDiGuyMotionModel ( const DtDiGuyMotionModel orig,
double  time 
)

Copy CTOR.

virtual makVrv::DtDiGuyMotionModel::~DtDiGuyMotionModel ( )
virtual

DTOR.

Member Function Documentation

virtual DtMotionModel* makVrv::DtDiGuyMotionModel::clone ( double  simTime)
virtual

Clone the motion model's externally visible state.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual bool makVrv::DtDiGuyMotionModel::motionModelHandlesUpdate ( ) const
virtual

Does the Di Guy motion model handle updates.

Returns
true As characters are moved by the scenario.
virtual void makVrv::DtDiGuyMotionModel::updateMotion ( double  simulationTime)
virtual

Call to update the motion state of the character.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual const char* makVrv::DtDiGuyMotionModel::getActionFromDescription ( diguyMotionDirection  direction,
diguyMotionPosture  posture,
double  actualSpeed 
)
virtual

Get a DI-Guy action for the current character to match the direction/posture/speed.

virtual void makVrv::DtDiGuyMotionModel::modelAdded ( DtModel )
virtual

Called whenever a model is added.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual void makVrv::DtDiGuyMotionModel::modelRemoved ( DtModel )
virtual

Called whenever a model is removed.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual void makVrv::DtDiGuyMotionModel::setLocation ( const DtVector loc,
DtTime  curTime 
)
virtual

Set absolute location.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual const DtVector& makVrv::DtDiGuyMotionModel::approxLocation ( DtTime  curTime) const
virtual

Get the approximated (i.e.

dead-reckoned for base DtDeadReckoner) location at the specified time.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual void makVrv::DtDiGuyMotionModel::setOrientation ( const DtTaitBryan &  ori,
DtTime  curTime 
)
virtual

Set absolute orientation.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual void makVrv::DtDiGuyMotionModel::setVelocity ( const DtVector32 &  vel,
DtTime  curTime 
)
virtual

Set absolute velocity.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual void makVrv::DtDiGuyMotionModel::setRotationalVelocity ( const DtVector32 &  vel,
DtTime  curTime 
)
virtual

Set/Get absolute rotational velocity.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

int makVrv::DtDiGuyMotionModel::calculateDirectionFBLR ( const DtTaitBryan &  ori,
const DtVector32 &  vel 
)
protected
int makVrv::DtDiGuyMotionModel::calculateDirectionFB ( const DtTaitBryan &  ori,
const DtVector32 &  vel 
)
protected
void makVrv::DtDiGuyMotionModel::setCharacter ( DtDiGuyCharacterModel character)
protected

Set the character model that this motion model is controlling.

Member Data Documentation

DtDe& makVrv::DtDiGuyMotionModel::myDe
protected
DtVector makVrv::DtDiGuyMotionModel::myPositionReturn
mutableprotected
DtTaitBryan makVrv::DtDiGuyMotionModel::myOrientationReturn
mutableprotected
DtVector makVrv::DtDiGuyMotionModel::mApproxLocation
mutableprotected
DtVector makVrv::DtDiGuyMotionModel::myLastTopoUpdateLocation
protected
DtVector makVrv::DtDiGuyMotionModel::myAcceleration
protected
DtDiGuyCharacterModel* makVrv::DtDiGuyMotionModel::myCharacter
protected
DtSceneObject* makVrv::DtDiGuyMotionModel::myObjectToMove
protected
int makVrv::DtDiGuyMotionModel::myLastDirection
protected
int makVrv::DtDiGuyMotionModel::myLastPosture
protected
double makVrv::DtDiGuyMotionModel::myLastSpeed
protected
const char* makVrv::DtDiGuyMotionModel::myLastAction
protected
double makVrv::DtDiGuyMotionModel::myLastActionTime
protected
bool makVrv::DtDiGuyMotionModel::myLastWeaponDeployed
protected
int makVrv::DtDiGuyMotionModel::myNeedsInit
protected
DtVector makVrv::DtDiGuyMotionModel::myLastFirmLocation
protected
DtTaitBryan makVrv::DtDiGuyMotionModel::myLastFirmOrientation
protected
DtVector32 makVrv::DtDiGuyMotionModel::myLastFirmVelocity
protected
DtVector32 makVrv::DtDiGuyMotionModel::myLastFirmRotationalVelocity
protected
DtTime makVrv::DtDiGuyMotionModel::myLastFirmRotationalVelocityTime
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)