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::DtBoxUpdater Class Reference

DtBoxUpdater is an update makes sure points for a box conform to that of a box and will update them if not. More...

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

Public Member Functions

 DtBoxUpdater (makVrv::DtDe &de, makVrv::DtUniqueID id)
 CTOR.
virtual ~DtBoxUpdater ()
 DTOR.
virtual void update (double simTime)
 If origin or to point have changed, recalc orientation.
virtual void setClamped (bool)
 Sets to clamp. Will recalculate orientations and clamp position on next update.
- Public Member Functions inherited from makVrv::DtSceneObjectUpdater
 DtSceneObjectUpdater (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtSceneObjectUpdater ()
 Virtual DTOR.
virtual void setNextUpdater (DtSceneObjectUpdater *nextUpdater)
 Set the next updater in the updater chain.
virtual void setPrevUpdater (DtSceneObjectUpdater *prevUpdater)
 Set the previous updater in the updater chain.
virtual bool needsUpdate (DtTime tNow)
 The check function called by DtTickableManager to verify if an update is required.
virtual void update (DtTime tNow)
 The update function called by DtTickableManager during update-ticks.
virtual void setVertexToUpdate (unsigned int vertex)
 Specify which vertex in the scene object this updater updates.
virtual void setInputPosition (const DtVector &position)
 Set the position input to this updater.
virtual void setInputOrientation (const DtTaitBryan &orientation)
 Set the orientaiton input to this updater.
virtual void setOutputPosition (const DtVector &position)
 Output the resultant position.
virtual void setOutputOrientation (const DtTaitBryan &orientation)
 Output the resultant orientation.
virtual DtTime lastUpdateTime () const
 Get the time-stamp of the last update.
virtual void setSceneObject (DtSceneObject *sceneObject)
 Set the scene object to be updated.
DtUniqueID uniqueId () const
 Returns the distributed object id of this updater.
DtSceneObjectUpdaterfindNextUpdater () const
 Return the next updater in the updater chain.
DtSceneObjectUpdaterfindPrevUpdater () const
 Return the previous updater in the updater chain.
DtSceneObjectfindSceneObject ()
 Get the current scene object for this updater.
DtSceneObject *const findSceneObject () const
 const correct version
- Public Member Functions inherited from makVrv::DtTickable
virtual ~DtTickable ()
 Virtual DTOR.

Protected Member Functions

virtual bool computeGroundClampingHit (const DtVector &up, const DtVector &unclampedPosition, DtVector &hitLocation, DtVector &hitNormal)
virtual DtTaitBryan computeOrientation (const DtVector &pos, double topoHeading) const
 Computes orientation of the ellipse.
- Protected Member Functions inherited from makVrv::DtSceneObjectUpdater
virtual void slot_sceneObjectToBeDeleted (const DtUniqueID &id)
- Protected Member Functions inherited from makVrv::DtTickable
 DtTickable (DtTickableManagerInterface *manager)
 CTOR.
 DtTickable ()
 Unimplemented default CTOR.

Protected Attributes

DtVector myClampedOrigin
DtTaitBryan myOrientation
bool myClamped
bool myOrientationCalculated
- 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 update()
DtSceneObjectUpdatermyNextUpdater
 The next updater in the chain (or NULL)
DtSceneObjectUpdatermyPrevUpdater
 The previous updater in the chain (or NULL)
unsigned int myVertexToUpdate
 The default scene object vertex to update.
DtVector myInputPosition
 Input position.
DtTaitBryan myInputOrientation
 Input Orientation.
bool myPositionDataOutputted
 Flag to indicate if setOutputPosition has been called this tick.
bool myOrientationDataOutputted
 Flag to indicate if setOutputOrientation has been called this tick.
- Protected Attributes inherited from makVrv::DtTickable
DtTickableManagerInterfacemyManager
 Pointer to manager for removal during destruction.

Additional Inherited Members

- Public Attributes inherited from makVrv::DtSceneObjectUpdater
boost::signal< void(const
DtUniqueID &) > 
signal_updaterToBeDeleted

Detailed Description

DtBoxUpdater is an update makes sure points for a box conform to that of a box and will update them if not.

Constructor & Destructor Documentation

makVrv::DtBoxUpdater::DtBoxUpdater ( makVrv::DtDe de,
makVrv::DtUniqueID  id 
)

CTOR.

virtual makVrv::DtBoxUpdater::~DtBoxUpdater ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtBoxUpdater::update ( double  simTime)
virtual

If origin or to point have changed, recalc orientation.

virtual void makVrv::DtBoxUpdater::setClamped ( bool  )
virtual

Sets to clamp. Will recalculate orientations and clamp position on next update.

virtual bool makVrv::DtBoxUpdater::computeGroundClampingHit ( const DtVector up,
const DtVector unclampedPosition,
DtVector hitLocation,
DtVector hitNormal 
)
protectedvirtual
virtual DtTaitBryan makVrv::DtBoxUpdater::computeOrientation ( const DtVector pos,
double  topoHeading 
) const
protectedvirtual

Computes orientation of the ellipse.

Member Data Documentation

DtVector makVrv::DtBoxUpdater::myClampedOrigin
protected
DtTaitBryan makVrv::DtBoxUpdater::myOrientation
protected
bool makVrv::DtBoxUpdater::myClamped
protected
bool makVrv::DtBoxUpdater::myOrientationCalculated
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)