VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtCircleUpdater Class Reference

DtCircleUpdater is an updater that updates the orientation of circles (2D or 3D) based on the origin and first point in the model. More...

Inheritance diagram for makVrf::DtCircleUpdater:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtCircleUpdater (makVrv::DtDe &de, makVrv::DtUniqueID id, bool doNotAddToMgr=false)
 CTOR.
virtual ~DtCircleUpdater ()
 DTOR.
virtual void update (double simTime)
 If origin or to point have changed, recalc orientation followed by updateSceneObject()
virtual void setOrientationDelta (double)
virtual void setPosition (int, const DtVector &)
 Sets positions of circle.
virtual void setClamped (bool)
 Sets to clamp. Will recalculate orientations and clamp position on next update.

Protected Member Functions

virtual bool computeGroundClampingHit (const DtVector &up, const DtVector &unclampedPosition, DtVector &hitLocation, DtVector &hitNormal)
virtual DtTaitBryan computeOrientation (const DtVector &pos, const DtVector &normalVector, double topoHeading) const
 Computes orientation of the ellipse.

Protected Attributes

DtVector myOrigin
DtVector myClampedOrigin
DtVector myX
DtVector myY
double myXRadius
double myYRadius
double myOrientationDelta
bool mySceneObjectChanged
bool myClamped

Detailed Description

DtCircleUpdater is an updater that updates the orientation of circles (2D or 3D) based on the origin and first point in the model.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrf::DtCircleUpdater::update ( double  simTime) [virtual]

If origin or to point have changed, recalc orientation followed by updateSceneObject()

Implements makVrv::DtUpdater.

virtual void makVrf::DtCircleUpdater::setOrientationDelta ( double  ) [virtual]
virtual void makVrf::DtCircleUpdater::setPosition ( int  ,
const DtVector  
) [virtual]

Sets positions of circle.

Will update orientation and radii appropriately. Vector is considered in local coordinates

virtual void makVrf::DtCircleUpdater::setClamped ( bool  ) [virtual]

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

virtual bool makVrf::DtCircleUpdater::computeGroundClampingHit ( const DtVector up,
const DtVector unclampedPosition,
DtVector hitLocation,
DtVector hitNormal 
) [protected, virtual]
virtual DtTaitBryan makVrf::DtCircleUpdater::computeOrientation ( const DtVector pos,
const DtVector normalVector,
double  topoHeading 
) const [protected, virtual]

Computes orientation of the ellipse.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)