VR-Forces 4.1 Class Documentation
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)
 Update the motion parameters at the specified time.
virtual void modelAdded (DtModel *)
 Called whenever a model is added.
virtual void modelRemoved (DtModel *)
 Called whenever a model is removed.
- Public Member Functions inherited from makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >
 DtVRLDeadReckonerMotionModel ()
 CTOR.
 DtVRLDeadReckonerMotionModel (const DtVRLDeadReckonerMotionModel &orig, double time)
 Copy CTOR.
virtual void setLocation (const DtVector &loc, DtTime curTime)
 Set absolute location.
virtual const DtVectorapproxLocation (DtTime curTime) const
 Get the approximated (i.e.
virtual void setVelocity (const DtVector &vel, DtTime curTime)
 Set absolute velocity.
virtual const DtVectorapproxVelocity (DtTime curTime) const
 Get the approximated (i.e.
virtual void setOrientation (const DtTaitBryan &ori, DtTime curTime)
 Set absolute orientation.
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 DtVector &acc, DtTime curTime)
 Set/Get absolute acceleration.
virtual const DtVectoracceleration (DtTime curTime) const
virtual void setRotationalVelocity (const DtVector &vel, DtTime curTime)
 Set/Get absolute rotational velocity.
virtual const DtVectorrotationalVelocity (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
- Public Member Functions inherited from makVrv::DtMotionModel
 DtMotionModel ()
virtual ~DtMotionModel ()

Protected Member Functions

int calculateDirectionFBLR (const DtTaitBryan &ori, const DtVector &vel)
int calculateDirectionFB (const DtTaitBryan &ori, const DtVector &vel)
void setCharacter (DtDiGuyCharacterModel *character)

Protected Attributes

DtDemyDe
DtVector myPositionReturn
DtTaitBryan myOrientationReturn
DtVector myAcceleration
DtDiGuyCharacterModelmyCharacter
DtSceneObjectmyObjectToMove
int myLastDirection
int myLastPosture
double myLastSpeed
const char * myLastAction
double myLastActionTime
bool myLastWeaponDeployed

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< DtFixedSmoother >.

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  dtTime)
virtual

Update the motion parameters at the specified time.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.

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

Called whenever a model is added.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.

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

Called whenever a model is removed.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.

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

Member Data Documentation

DtDe& makVrv::DtDiGuyMotionModel::myDe
protected
DtVector makVrv::DtDiGuyMotionModel::myPositionReturn
mutableprotected
DtTaitBryan makVrv::DtDiGuyMotionModel::myOrientationReturn
mutableprotected
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

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)