![]() |
VR-Forces 4.8 Class Documentation
|
A DtEnvironmentalIconCenteringUpdater updates the attached scene object to be centered in the center of mass of a closed area or along the center of the line of an unclosed area. More...
Public Member Functions | |
| DtEnvironmentalIconCenteringUpdater (DtDe &de, DtUniqueID id) | |
| CTOR. More... | |
| virtual | ~DtEnvironmentalIconCenteringUpdater () |
| DTOR. More... | |
| virtual bool | needsUpdate (DtTime tNow) |
| Does this updater need to update? More... | |
| virtual void | update (DtTime tNow) |
| Calls centerIcon() More... | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| Set the scene object to be updated. More... | |
| virtual void | setEnvironmentalSceneObject (DtSceneObject *sceneObject) |
| Set the scene object that contains the original environmental (line or area). More... | |
| virtual void | setOrderGroup (int) |
| Sets the z order on which to place the icons. 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 | ~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 void | centerIcon () |
| Find the actual position and orientation based on the attach points and offsets. More... | |
| virtual DtVector | calculateGeometricCenter () const |
| Calculates the geometric center of the polygonal area. More... | |
| virtual DtVector | calculateLineCenter () const |
| Calculates the point on the center of the line given the line distance. More... | |
| virtual DtVector | centerOnLine (int startIndex, int endIndex, double lengthOnLine) const |
| Centers the point on the given line segment. More... | |
Slots | |
Called when an object is to be deleted | |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
| virtual void | slot_modelAdded (DtModel *) |
| Called when a model is added to the scene object. More... | |
| virtual void | slot_modelRemoved (DtModel *) |
| Called when a model is removed from the scene object. More... | |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| CTOR. More... | |
| DtTickable () | |
| Unimplemented default CTOR. More... | |
| virtual void | slot_managerAboutToBeDeleted () |
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... | |
A DtEnvironmentalIconCenteringUpdater updates the attached scene object to be centered in the center of mass of a closed area or along the center of the line of an unclosed area.
Setting the control points or whether or not an item is closed will cause a recalculation of the center
| makVrv::DtEnvironmentalIconCenteringUpdater::DtEnvironmentalIconCenteringUpdater | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
Does this updater need to update?
Reimplemented from makVrv::DtTickable.
|
virtual |
Calls centerIcon()
Implements makVrv::DtTickable.
|
virtual |
Set the scene object to be updated.
| [in] | sceneObject | is the scene object to receive updates. |
|
virtual |
Set the scene object that contains the original environmental (line or area).
| [in] | sceneObject | is the scene object to look at for positional changes. |
|
virtual |
Sets the z order on which to place the icons.
|
protectedvirtual |
Find the actual position and orientation based on the attach points and offsets.
|
protectedvirtual |
Calculates the geometric center of the polygonal area.
|
protectedvirtual |
Calculates the point on the center of the line given the line distance.
|
protectedvirtual |
Centers the point on the given line segment.
|
protectedvirtual |
|
protectedvirtual |
Called when a model is added to the scene object.
|
protectedvirtual |
Called when a model is removed from the scene object.
|
protected |
The display engine.
|
protected |
This distributed object's unique identifier.
|
protected |
A pointer to the current scene object being updated.
|
protected |
A pointer to the current environmental model object.
Only one may be valid, however, both pointers are around for convenience
|
protected |
|
protected |
A pointer tothe current environmental scene object agent.
|
protected |
Points that were last used for calculation.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |