VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Protected Attributes
makVrv::DtDeadReckonGroundClampUpdater Class Reference

DtDeadReckonGroundClampUpdater is an updater that combines DtDeadReckonUpdater and DtGroundClampingUpdater to provide scene object updates that need to be dead reckoned AND ground clamped. More...

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

Public Member Functions

 DtDeadReckonGroundClampUpdater (DtDe &de, DtUniqueID id, bool suppressTick=false)
 CTOR.
virtual ~DtDeadReckonGroundClampUpdater ()
 DTOR.
virtual void update (DtTime tNow)
 Calls deadReckonAndGroundClamp() followed by updateSceneObject()
virtual void setSceneObject (DtSceneObject *sceneObject)
 Override scene object call to set subcomponent updaters.
virtual void deadReckonAndGroundClamp (DtTime tNow)
 Calculates dead reckoned values using contained DtDeadReckonUpdater, and then ground clamps using the contained DtGroundClampingUpdater.
virtual void setPosition (const DtVector &position)
 Set the object's position.
virtual void setOrientation (const DtTaitBryan &ori)
 Set the object's orientation.
virtual void setVelocity (const DtVector &velocity)
 Set the object's velocity.
virtual void setAcceleration (const DtVector &acceleration)
 Set the object's velocity.
virtual void setAngularVelocity (const DtVector &angularVelocity)
 Set the object's rotational velocity.
virtual void setDeadReckoningSettings (bool deadReckonPosition, bool deadReckonVelocity, bool deadReckonOrientation)
 Set the object's dead reckoning settings.
virtual void setSmoothingEnabled (bool enabled)
 Turn the smoother on or off.
virtual void setSmoothingPeriod (float period)
 Set the period for the smoother.
virtual void updateSpacial (DtTime tNow)
 Update the spacial attributes using the given simulation time.
virtual void setMotionModel (const std::string &modelName)
 Set which motion model the object should use.
virtual DtMotionModelmotionModel ()
 Get the motion model.
virtual void setGroundClamping (bool enabled)
 Set the Simple object's ground clamping Note that this only takes effect when setPosition() is called.
virtual void setGroundClampingMode (DtGroundClampingUpdater::GroundClampingMode mode)
 Set the Simple object's ground clamping Note that this only takes effect when setPosition() is called.
virtual void setGroundClampingRadiusScale (float scale)
 Set the scale factor that the entity bounding radius is multiplied by to get the ground clamping cutoff distance.
virtual void setGroundClampingAlways (bool enabled)
 Set ground clamping cutoff to always clamp (which ignores the cutoff distance)
virtual void setCheckForCulling (bool)
 When enabled check for object culling.
- Public Member Functions inherited from makVrv::DtSceneObjectUpdater
 DtSceneObjectUpdater (DtDe &de, DtUniqueID id, bool suppressTick=false)
 CTOR.
virtual ~DtSceneObjectUpdater ()
 Virtual DTOR.
virtual bool needsUpdate (DtTime tNow)
 The check function called by DtTickableManager to verify if an update is required.
virtual DtTime lastUpdateTime () const
 Get the time-stamp of the last update.
DtSceneObjectfindSceneObject ()
 Get the current scene object for this updater.
DtUniqueID uniqueId () const
 Returns the distributed object id of this updater.
virtual void setUpdaterPosition (int vtx, const DtVector &pos)
 Set the position of a scene object vertex.
virtual const DtVectorupdaterPosition (int vtx) const
 Get the position of a scene object vertex.
virtual void setUpdaterOrientation (int vtx, const DtTaitBryan &ori)
 Set the orientation of a scene object vertex.
virtual const DtTaitBryan & updaterOrientation (int vtx) const
 Get the orientation of a scene object vertex.
void updateSceneObject (DtTime tNow)
 Update the scene object position and orientation at each vertex and set the last updated time-stamp.
virtual void terrainScaleTransformsIfNeeded ()
 Scales the transforms if the terrain scaling flag is set.

Protected Attributes

DtGroundClampingUpdatermyGroundClampingUpdater
DtDeadReckonUpdatermyDeadReckonUpdater
- Protected Attributes inherited from makVrv::DtSceneObjectUpdater
DtDemyDe
 The display engine.
DtUniqueID myUniqueId
 This distributed object's unique identifier.
DtSceneObjectmySceneObject
 A pointer to the current scene object being updated.
DtTime myLastUpdateTime
 The last time stamp when the updateSceneObject() was called.
DtSceneObject::TransformList myTransforms
 Local copy of the vertex positions and orientations.
const DtDeSharedStatemyDeSharedState
 This is kept to make terrain scale updating cheaper ( by one virtual function call ).
bool myInManager
 If tick was suppressed, then this updater is not on the tickableManager.

Additional Inherited Members

- Public Attributes inherited from makVrv::DtSceneObjectUpdater
boost::signal< void(const
DtUniqueID &) > 
signal_updaterToBeDeleted
 Signal that this updater is being destroyed.
- Protected Member Functions inherited from makVrv::DtSceneObjectUpdater
virtual void slot_sceneObjectToBeDeleted (const DtUniqueID &id)
 Signal that this updater is being destroyed.
- Protected Member Functions inherited from makVrv::DtTickable
 DtTickable (DtTickableManagerInterface *manager=NULL)
 CTOR.
virtual ~DtTickable ()
 Virtual DTOR.

Detailed Description

DtDeadReckonGroundClampUpdater is an updater that combines DtDeadReckonUpdater and DtGroundClampingUpdater to provide scene object updates that need to be dead reckoned AND ground clamped.

Constructor & Destructor Documentation

makVrv::DtDeadReckonGroundClampUpdater::DtDeadReckonGroundClampUpdater ( DtDe de,
DtUniqueID  id,
bool  suppressTick = false 
)

CTOR.

virtual makVrv::DtDeadReckonGroundClampUpdater::~DtDeadReckonGroundClampUpdater ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtDeadReckonGroundClampUpdater::update ( DtTime  tNow)
virtual
virtual void makVrv::DtDeadReckonGroundClampUpdater::setSceneObject ( DtSceneObject sceneObject)
virtual

Override scene object call to set subcomponent updaters.

Reimplemented from makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtDeadReckonGroundClampUpdater::deadReckonAndGroundClamp ( DtTime  tNow)
virtual

Calculates dead reckoned values using contained DtDeadReckonUpdater, and then ground clamps using the contained DtGroundClampingUpdater.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setPosition ( const DtVector position)
virtual

Set the object's position.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setOrientation ( const DtTaitBryan &  ori)
virtual

Set the object's orientation.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setVelocity ( const DtVector velocity)
virtual

Set the object's velocity.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setAcceleration ( const DtVector acceleration)
virtual

Set the object's velocity.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setAngularVelocity ( const DtVector angularVelocity)
virtual

Set the object's rotational velocity.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setDeadReckoningSettings ( bool  deadReckonPosition,
bool  deadReckonVelocity,
bool  deadReckonOrientation 
)
virtual

Set the object's dead reckoning settings.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setSmoothingEnabled ( bool  enabled)
virtual

Turn the smoother on or off.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setSmoothingPeriod ( float  period)
virtual

Set the period for the smoother.

virtual void makVrv::DtDeadReckonGroundClampUpdater::updateSpacial ( DtTime  tNow)
virtual

Update the spacial attributes using the given simulation time.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setMotionModel ( const std::string &  modelName)
virtual

Set which motion model the object should use.

virtual DtMotionModel* makVrv::DtDeadReckonGroundClampUpdater::motionModel ( )
virtual

Get the motion model.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setGroundClamping ( bool  enabled)
virtual

Set the Simple object's ground clamping Note that this only takes effect when setPosition() is called.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setGroundClampingMode ( DtGroundClampingUpdater::GroundClampingMode  mode)
virtual

Set the Simple object's ground clamping Note that this only takes effect when setPosition() is called.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setGroundClampingRadiusScale ( float  scale)
virtual

Set the scale factor that the entity bounding radius is multiplied by to get the ground clamping cutoff distance.

virtual void makVrv::DtDeadReckonGroundClampUpdater::setGroundClampingAlways ( bool  enabled)
virtual

Set ground clamping cutoff to always clamp (which ignores the cutoff distance)

virtual void makVrv::DtDeadReckonGroundClampUpdater::setCheckForCulling ( bool  )
virtual

When enabled check for object culling.

Member Data Documentation

DtGroundClampingUpdater* makVrv::DtDeadReckonGroundClampUpdater::myGroundClampingUpdater
protected
DtDeadReckonUpdater* makVrv::DtDeadReckonGroundClampUpdater::myDeadReckonUpdater
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)