![]() |
VR-Forces 4.0.4 Class Documentation
|
DtCircleUpdater is an updater that updates the orientation of circles (2D or 3D) based on the origin and first point in the model. More...

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 |
DtCircleUpdater is an updater that updates the orientation of circles (2D or 3D) based on the origin and first point in the model.
| makVrf::DtCircleUpdater::DtCircleUpdater | ( | makVrv::DtDe & | de, |
| makVrv::DtUniqueID | id, | ||
| bool | doNotAddToMgr = false |
||
| ) |
CTOR.
| virtual makVrf::DtCircleUpdater::~DtCircleUpdater | ( | ) | [virtual] |
DTOR.
| 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.
DtVector makVrf::DtCircleUpdater::myOrigin [protected] |
DtVector makVrf::DtCircleUpdater::myClampedOrigin [protected] |
DtVector makVrf::DtCircleUpdater::myX [protected] |
DtVector makVrf::DtCircleUpdater::myY [protected] |
double makVrf::DtCircleUpdater::myXRadius [protected] |
double makVrf::DtCircleUpdater::myYRadius [protected] |
double makVrf::DtCircleUpdater::myOrientationDelta [protected] |
bool makVrf::DtCircleUpdater::mySceneObjectChanged [protected] |
bool makVrf::DtCircleUpdater::myClamped [protected] |