VR-Forces 4.3 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 const DtVectorapproxLocation (DtTime curTime) const
 Get the approximated (i.e.
- 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 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
virtual void reset ()
 Used to reset the DeadReckoner.
- 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)
 Set the character model that this motion model is controlling.

Protected Attributes

DtDemyDe
DtVector myPositionReturn
DtTaitBryan myOrientationReturn
DtVector mApproxLocation
DtVector myAcceleration
DtDiGuyCharacterModelmyCharacter
DtSceneObjectmyObjectToMove
int myLastDirection
int myLastPosture
double myLastSpeed
const charmyLastAction
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  simulationTime)
virtual

Call to update the motion state of the character.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.

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

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

Called whenever a model is removed.

Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtFixedSmoother >.

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

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::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 Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)