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

DtTrackHistoryUpdater updates a track history model with the current position of the scene object it's attached to each tick. More...

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

Public Member Functions

 DtTrackHistoryUpdater (DtDe &de, DtUniqueID id, bool suppressTick=false)
 CTOR.
virtual ~DtTrackHistoryUpdater ()
 DTOR.
virtual void update (DtTime tNow)
 update the ribbon
virtual void setSceneObject (DtSceneObject *sceneObject)
 sets the scene object to update via the id.
virtual void attachRibbonModel (DtUniqueID id)
 attach a ribbon model to update (referenced by its unique ID)
- 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

DtRibbonModelmyModel
 The model to update.
- 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

DtTrackHistoryUpdater updates a track history model with the current position of the scene object it's attached to each tick.

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtTrackHistoryUpdater::~DtTrackHistoryUpdater ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtTrackHistoryUpdater::update ( DtTime  tNow)
virtual

update the ribbon

Implements makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtTrackHistoryUpdater::setSceneObject ( DtSceneObject sceneObject)
virtual

sets the scene object to update via the id.

Reimplemented from makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtTrackHistoryUpdater::attachRibbonModel ( DtUniqueID  id)
virtual

attach a ribbon model to update (referenced by its unique ID)

Member Data Documentation

DtRibbonModel* makVrv::DtTrackHistoryUpdater::myModel
protected

The model to update.


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)