![]() |
VR-Forces Developer's Guide
|
This class will compute the range from this to the next or previous point and then update the attached text widget with the resul.

Public Member Functions | |
| DtAttachableRangeLineTextUpdater (makVrv::DtDe &de, makVrv::DtUniqueID id) | |
| virtual | ~DtAttachableRangeLineTextUpdater () override |
| virtual void | update (double) override |
| virtual void | setComputeToNextPoint (bool) |
| virtual void | setParentId (makVrv::DtUniqueID) |
Public Member Functions inherited from makVrv::DtAttachableUpdater | |
| DtAttachableUpdater (DtDe &de, DtUniqueID id) | |
| virtual | ~DtAttachableUpdater () |
| virtual bool | needsUpdate (DtTime tNow) |
| virtual void | addAttachedPoint (const DtVector &position, int targetVertexIndex) |
| virtual void | addAttachedPoint (DtUniqueID sceneObjectId, int targetVertexIndex) |
| virtual void | addAttachedPoint (DtElementID elementId, DtModelSetId modelSet, int targetVertexIndex) |
| virtual void | addAttachedPoint (DtUniqueID sceneObjectId, int vtx1, int vtx2, double proportion, int targetVertexIndex) |
| virtual const AttachedPoint & | attachedPoint (int targetVertexIndex) const |
| virtual void | setPositionOffset (const DtVector &offset) |
| virtual void | setWorldPositionOffset (const DtVector &offset) |
| virtual void | setPositionOffset (const DtVector &offset, int vtx) |
| virtual void | setOrientationOffset (const DtTaitBryan &offset) |
| virtual void | setWorldOrientationOffset (const DtTaitBryan &offset) |
| virtual void | setAttachedPointMode (unsigned int mode, int vtx) |
| virtual void | update (DtTime tNow) |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| virtual void | setModel (DtModel *model) |
| virtual void | doAttachment (DtTime tNow) |
| DtTime | lastUpdateTime () const |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual bool | updateIfNeeded (DtTime tNow) |
| virtual | ~DtTickable () |
| virtual void | setTickableEnabled (bool enabled) |
| 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 | adaptiveTickLodEnabled () const |
Protected Member Functions | |
| virtual double | calculateRange () |
Protected Member Functions inherited from makVrv::DtAttachableUpdater | |
| virtual bool | pointLocationAndOrientation (AttachedPoint *point, double simTime, DtVector &location, DtTaitBryan &orientation) |
| virtual void | removeAttachedPoint (int vtx, DtVector *positionOffset=0) |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
| virtual void | slot_modelToBeDeleted (DtModel *model) |
| virtual void | slot_attachedSceneObjectToBeDeleted (const DtUniqueID &) |
| virtual void | slot_attachedUpdaterToBeDeleted (const DtUniqueID &id) |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| DtTickable ()=delete | |
| virtual void | slot_managerAboutToBeDeleted () |
Protected Attributes | |
| bool | myComputeToNextPoint |
| makVrv::DtUniqueID | myParentId |
| double | myLastRange |
| int | mySourceIndex |
| bool | myStopChecking |
| makVrv::DtDisplayUnitsConverter::DistanceUnits | myDistanceUnits |
Protected Attributes inherited from makVrv::DtAttachableUpdater | |
| DtDe & | myDe |
| DtUniqueID | myUniqueId |
| DtSceneObject * | mySceneObject |
| DtModel * | myModel |
| boost::signalslib::connection | mySceneObjectOrModelConnection |
| boost::signalslib::connection | mySceneObjectUpdaterConnection |
| AttachedPointsVector | myAttachedPoints |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| DtVector | myWorldPositionOffset |
| DtTaitBryan | myWorldOrientationOffset |
| DtUniqueID | mySceneObjectId |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
| unsigned int | myTickableIndex |
| DtTime | myLastUpdateTime |
| bool | myIsThreadSafe |
| TickableListState | myTickableListState |
Additional Inherited Members | |
Public Types inherited from makVrv::DtAttachableUpdater | |
| enum | AttachedPointType { AttachedPointTypeVertex, AttachedPointTypeObject, AttachedPointTypeProportional, AttachedPointTypeDeprecatedObject, AttachedPointTypeInvalidObject } |
| enum | AttachedPointMode { AttachedPointModePositionAndOrientation, AttachedPointModePositionOnly, AttachedPointModeOrientationOnly } |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
Protected Types inherited from makVrv::DtAttachableUpdater | |
| typedef std::vector < AttachedPoint * > | AttachedPointsVector |
| DtAttachableRangeLineTextUpdater::DtAttachableRangeLineTextUpdater | ( | makVrv::DtDe & | de, |
| makVrv::DtUniqueID | id | ||
| ) |
CTOR.
|
overridevirtual |
DTOR.
|
overridevirtual |
Called to calculate the range.
|
virtual |
Set whether or not to compute to the next or previous point. Default is false – compute to previous point.
|
virtual |
The ID of the line object we are looking at for range calculations.
|
protectedvirtual |
Given the parent ID and our position, attempt to find out index and calculate the range. If range < 0 then do not display the text.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |