VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtMotionModel Class Reference

The base motion model class. More...

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

Public Member Functions

 DtMotionModel ()
virtual ~DtMotionModel ()
virtual void updateMotion (double dtTime)=0
virtual void modelAdded (DtModel *)=0
 Called whenever a model is added.
virtual void modelRemoved (DtModel *)=0
 Called whenever a model is removed.
virtual void setLocation (const DtVector &loc, DtTime curTime)=0
 Set absolute location.
virtual const DtVectorapproxLocation (DtTime curTime) const =0
 Get the approximated (i.e.
virtual void setVelocity (const DtVector32 &vel, DtTime curTime)=0
 Set absolute velocity.
virtual const DtVector32 & approxVelocity (DtTime curTime) const =0
 Get the approximated (i.e.
virtual const DtVector32 & approxUnsmoothedVelocity (DtTime curTime) const =0
 Get the approximated (i.e.
virtual void setOrientation (const DtTaitBryan &ori, DtTime curTime)=0
 Set absolute orientation.
virtual const DtTaitBryan & approxEuler (DtTime curTime) const =0
 Get the approximated (i.e.
virtual void setAcceleration (const DtVector32 &acc, DtTime curTime)=0
 Set/Get absolute acceleration.
virtual const DtVector32 & acceleration (DtTime curTime) const =0
virtual void setRotationalVelocity (const DtVector32 &vel, DtTime curTime)=0
 Set/Get absolute rotational velocity.
virtual const DtVector32 & rotationalVelocity (DtTime curTime) const =0
virtual void setSmoothPeriod (float period)=0
 Set the smoothing period.
virtual void setSmoothingEnabled (bool enabled)=0
 Enable or disable smoothing.
virtual void setAlgorithm (DtDeadReckonTypes alg)=0
 Set/Get the dead reckoning algorithm used for generating the approximated values from the absolute values.
virtual DtDeadReckonTypes algorithm () const =0
virtual DtMotionModelclone (double time)=0
virtual void reset ()=0
 Used to reset the DeadReckoner.
virtual void setFrozen (bool frozen)=0
 Get/Set the frozen state (enable/disable dead reckoning)
virtual bool isFrozen () const =0

Detailed Description

The base motion model class.

Constructor & Destructor Documentation

makVrv::DtMotionModel::DtMotionModel ( )
virtual makVrv::DtMotionModel::~DtMotionModel ( )
virtual

Member Function Documentation

virtual void makVrv::DtMotionModel::updateMotion ( double  dtTime)
pure virtual
virtual void makVrv::DtMotionModel::modelAdded ( DtModel )
pure virtual
virtual void makVrv::DtMotionModel::modelRemoved ( DtModel )
pure virtual
virtual void makVrv::DtMotionModel::setLocation ( const DtVector loc,
DtTime  curTime 
)
pure virtual
virtual const DtVector& makVrv::DtMotionModel::approxLocation ( DtTime  curTime) const
pure virtual

Get the approximated (i.e.

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

Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >, and makVrv::DtDiGuyMotionModel.

virtual void makVrv::DtMotionModel::setVelocity ( const DtVector32 &  vel,
DtTime  curTime 
)
pure virtual
virtual const DtVector32& makVrv::DtMotionModel::approxVelocity ( DtTime  curTime) const
pure virtual

Get the approximated (i.e.

dead-reckoned for base DtDeadReckoner) velocity at the specified time. Note that this velocity has been potentially 'de-smoothed' to provide a smoothed location when used to do smoothing

Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual const DtVector32& makVrv::DtMotionModel::approxUnsmoothedVelocity ( DtTime  curTime) const
pure virtual

Get the approximated (i.e.

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

Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual void makVrv::DtMotionModel::setOrientation ( const DtTaitBryan &  ori,
DtTime  curTime 
)
pure virtual
virtual const DtTaitBryan& makVrv::DtMotionModel::approxEuler ( DtTime  curTime) const
pure virtual

Get the approximated (i.e.

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

Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual void makVrv::DtMotionModel::setAcceleration ( const DtVector32 &  acc,
DtTime  curTime 
)
pure virtual
virtual const DtVector32& makVrv::DtMotionModel::acceleration ( DtTime  curTime) const
pure virtual
virtual void makVrv::DtMotionModel::setRotationalVelocity ( const DtVector32 &  vel,
DtTime  curTime 
)
pure virtual
virtual const DtVector32& makVrv::DtMotionModel::rotationalVelocity ( DtTime  curTime) const
pure virtual
virtual void makVrv::DtMotionModel::setSmoothPeriod ( float  period)
pure virtual
virtual void makVrv::DtMotionModel::setSmoothingEnabled ( bool  enabled)
pure virtual
virtual void makVrv::DtMotionModel::setAlgorithm ( DtDeadReckonTypes  alg)
pure virtual

Set/Get the dead reckoning algorithm used for generating the approximated values from the absolute values.

Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual DtDeadReckonTypes makVrv::DtMotionModel::algorithm ( ) const
pure virtual
virtual DtMotionModel* makVrv::DtMotionModel::clone ( double  time)
pure virtual
virtual void makVrv::DtMotionModel::reset ( )
pure virtual
virtual void makVrv::DtMotionModel::setFrozen ( bool  frozen)
pure virtual

Get/Set the frozen state (enable/disable dead reckoning)

Implemented in makVrv::DtVRLDeadReckonerMotionModel< DeadReckoner >, and makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.

virtual bool makVrv::DtMotionModel::isFrozen ( ) const
pure virtual

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)