![]() |
VR-Forces 5.0.1 Developer's Guide
|
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.
Public Member Functions | |
| DtEnvironmentalIconCenteringUpdater (DtDe &de, DtUniqueID id) | |
| virtual | ~DtEnvironmentalIconCenteringUpdater () |
| virtual bool | needsUpdate (DtTime tNow) |
| virtual void | update (DtTime tNow) |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| virtual void | setEnvironmentalSceneObject (DtSceneObject *sceneObject) |
| virtual void | setOrderGroup (int) |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual bool | updateIfNeeded (DtTime tNow) |
| virtual | ~DtTickable () |
| virtual void | setIsThreadSafe (bool safe) |
| virtual bool | isThreadSafe () const |
| virtual void | setTickableListState (TickableListState safeList) |
| virtual TickableListState | tickableListState () const |
| virtual void | setUpdatePeriod (unsigned int period) |
| virtual unsigned int | updatePeriod () const |
| virtual bool | lodSystemEnabled () const |
Protected Member Functions | |
| virtual void | centerIcon () |
| virtual DtVector | calculateGeometricCenter () const |
| virtual DtVector | calculateLineCenter () const |
| virtual DtVector | centerOnLine (int startIndex, int endIndex, double lengthOnLine) const |
Slots | |
Called when an object is to be deleted | |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
| virtual void | slot_modelAdded (DtModel *) |
| virtual void | slot_modelRemoved (DtModel *) |
| virtual void | slot_coordinateSystemChanged () |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| DtTickable () | |
| virtual void | slot_managerAboutToBeDeleted () |
Protected Attributes | |
| DtDe & | myDe |
| DtUniqueID | myUniqueId |
| DtSceneObject * | mySceneObject |
| DtPolygonModel * | myEnvironmentalPolygonModel |
| DtLineModel * | myEnvironmentalLineModel |
| DtSceneObject * | myEnvironmentalSceneObject |
| std::vector< DtVector > | myPoints |
| int | myOrderGroup |
| bool | myUpdate |
| boost::signalslib::connection | mySceneObjectConnection |
| boost::signalslib::connection | myEnvironmentalSceneObjectConnection |
| boost::signalslib::connection | myModelAddedConnection |
| boost::signalslib::connection | myModelRemovedConnection |
| DtSignalConnectionManager | myConnections |
| DtCoordinateSystem * | myCoordinateSystem = nullptr |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
| DtTime | myLastUpdateTime |
| bool | myIsThreadSafe |
| TickableListState | myTickableListState |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
| 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 |
Called when a model is added to the scene object.
|
protectedvirtual |
Called when a model is added to the scene object.
|
protectedvirtual |
Called when a model is removed from the scene object.
|
protectedvirtual |
slot for when the coordinate system changes
|
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 |
|
protected |
|
protected |