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

Public Member Functions | |
| DtEllipseUpdater (makVrv::DtDe &de, makVrv::DtUniqueID id) | |
| CTOR. More... | |
| virtual | ~DtEllipseUpdater () |
| DTOR. More... | |
| virtual void | update (double simTime) |
| If origin or to point have changed, recalc orientation. More... | |
| virtual void | setOrientationDelta (double) |
| virtual void | setClamped (bool) |
| Sets to clamp. Will recalculate orientations and clamp position on next update. More... | |
| virtual void | setPosition (int, const DtVector &) |
| Sets positions of ellipse. More... | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| Set the scene object to be updated. More... | |
| virtual bool | needsUpdate (DtTime tNow) |
| The check function called by DtTickableManager to verify if an update is required. More... | |
| virtual void | setUpdaterPosition (int vtx, const DtVector &pos) |
| Set the position of a vertex. More... | |
| virtual void | setUpdaterOrientation (int vtx, const DtTaitBryan &ori) |
| Set the orientation of a vertex. More... | |
| virtual void | setDynamicOrigin (bool) |
| Sets whether or origin is set in the updater or retrieved from the scene object. More... | |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual bool | updateIfNeeded (DtTime tNow) |
| Calls needsUpdate(), and then calls update() if needsUpdate() is true. More... | |
| virtual void | update (DtTime tNow)=0 |
| The update function called by DtTickableManager during update-ticks. More... | |
| virtual | ~DtTickable () |
| Virtual DTOR. More... | |
| virtual void | setIsThreadSafe (bool safe) |
| Get/set whether this tickable can be updated in parallel with other tickables. More... | |
| virtual bool | isThreadSafe () const |
| virtual void | setTickableListState (TickableListState safeList) |
| Track which tickable list (if any) this tickable is on Since the tickable constructor puts ALL tickables on the main (unThreadSafe) to start we need a way to check which list a tickable is on (and this way we can request removals from the correct list instead of having to call DtTickableManager::removeTickableObject(), which tries both lists). More... | |
| virtual TickableListState | tickableListState () const |
| virtual void | setUpdatePeriod (unsigned int period) |
| Specify how often (in # of frames) this tickable should call update. More... | |
| virtual unsigned int | updatePeriod () const |
| virtual bool | lodSystemEnabled () const |
| is the update LOD system enabled, overridden by subclasses More... | |
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 as level to terrain. More... | |
Signals | |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| CTOR. More... | |
| DtTickable () | |
| Unimplemented default CTOR. More... | |
| virtual void | slot_managerAboutToBeDeleted () |
Protected Attributes | |
| DtVector | myOrigin |
| DtVector | myClampedOrigin |
| double | myOrientationDelta |
| bool | mySceneObjectChanged |
| bool | myClamped |
| DtDe & | myDe |
| The display engine. More... | |
| DtUniqueID | myUniqueId |
| This distributed object's unique identifier. More... | |
| DtSceneObject * | mySceneObject |
| A pointer to the current scene object. More... | |
| boost::signalslib::connection | mySceneObjectConnection |
| DtSceneObject::TransformList | myTransforms |
| Local copy of the vertex positions and orientations. More... | |
| DtTime | myLastUpdateTime |
| DtTaitBryan | myInitialOrientation |
| bool | myDynamicOrigin |
| DtVector | myLastAnglePosition |
| DtVector | myDynamicOriginPosition |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| Pointer to manager for removal during destruction. More... | |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
| DtTime | myLastUpdateTime |
| bool | myIsThreadSafe |
| TickableListState | myTickableListState |
Private Member Functions | |
| DtSceneObject::ObjectTransform & | getOrCreateTransform (int vtx) |
| Helper function to get the transform at a given vertex. More... | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
| Enumeration used to indicate which DtTickableManager's tickable list the tickable is on, if any. More... | |
DtEllipseUpdater is an updater that updates the orientation of ellipse (2D or 3D) based on the origin and first point in the model.
| makVrv::DtEllipseUpdater::DtEllipseUpdater | ( | makVrv::DtDe & | de, |
| makVrv::DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
If origin or to point have changed, recalc orientation.
|
virtual |
|
virtual |
Sets to clamp. Will recalculate orientations and clamp position on next update.
Sets positions of ellipse.
Will update orientation and radii appropriately. Vector is considered in local coordinates
|
virtual |
Set the scene object to be updated.
| [in] | sceneObject | is the scene object to receive updates. |
The check function called by DtTickableManager to verify if an update is required.
If this function returns true, the DtTickableManager will then call update().
| [in] | tNow | is the current time-stamp. |
| true | if this object needs to be ticked. |
| false | otherwise. |
Reimplemented from makVrv::DtTickable.
Reimplemented in makVrf::DtVrfRangeEllipseUpdater.
Set the position of a vertex.
| [in] | vtx | is the vertex. |
| [in] | pos | is the position to set. |
|
virtual |
Set the orientation of a vertex.
| [in] | vtx | is the vertex. |
| [in] | ori | is the orientation to set. |
|
virtual |
Sets whether or origin is set in the updater or retrieved from the scene object.
Default is false (retrieved from origin)
|
protectedvirtual |
|
protectedvirtual |
Computes orientation of the ellipse as level to terrain.
|
protectedvirtual |
|
private |
Helper function to get the transform at a given vertex.
If the vertex is above range, new transforms are created.
| [in] | vtx | is the vertex of the transform to get. |
| DtCorruptedState | if vtx is less than zero. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The display engine.
|
protected |
This distributed object's unique identifier.
|
protected |
A pointer to the current scene object.
|
protected |
|
protected |
Local copy of the vertex positions and orientations.
These are typically pre-calculated, and then pushed to the scene object at a later time, making the concatenation of updaters simpler.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |