![]() |
VR-Forces Developer's Guide
|
A DtAttachableHatTextUpdater is used to update a HAT text object that can be positioned in the scene by (possibly) attaching it to another object. This updater extends the usual updater paradigm in that it not only positions the object, but also calculates and sets the actual HAT text. To do so, the scene object must have a model of type DtWidgetLabel in its model list.

Public Member Functions | |
| DtAttachableHatTextUpdater (DtDe &de, DtUniqueID id) | |
| virtual | ~DtAttachableHatTextUpdater () |
| DtAttachableHatTextUpdater ()=delete | |
| DtAttachableHatTextUpdater (const DtAttachableHatTextUpdater &other)=delete | |
| DtAttachableHatTextUpdater & | operator= (const DtAttachableHatTextUpdater &other)=delete |
| virtual void | update (double simTime) |
| virtual void | setUseHighestTerrainLod (bool useHighest) |
| virtual bool | useHighestTerrainLod () const |
| virtual void | setTextProportion (double proportion) |
| virtual void | setDisplayUnitCollectionName (const std::string &displayUnitCollectionName) |
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 void | updateWidgetLabelText (double heightInMeters) |
| virtual void | computeWidgetLabelText (double distanceInMeters, DtUnicode &label) |
| virtual DtVector | findIntersect (const DtVector &start, const DtVector &up) |
| virtual void | on_displayUnitChanged () |
| virtual void | slot_coordinateSystemChanged () |
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 () |
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 |
| makVrv::DtAttachableHatTextUpdater::DtAttachableHatTextUpdater | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Update the scene object.
|
virtual |
Set whether the line is to currently visible terrain LOD or to highest available terrain LOD.
|
virtual |
Get whether line is to currently visible terrain LOD or to highest available terrain LOD.
|
virtual |
The location along the HAT line, from 0 (top) to 1 (bottom)
|
virtual |
Set the display unit collection that this updater will use.
| displayUnitCollectionName | The name of the collection the updater will look for display units in This updater class makes use of the following display units:
|
|
protectedvirtual |
Iterates over scene object models to find the widget label and updates it with the given information.
|
protectedvirtual |
updateWidgetLabelText helper to compute the text for widget labels.
|
protectedvirtual |
Attempt a terrain intersection. Note that isect will always be filled in. If start is below sea level, the point at sea level will be returned. If above sea level, an intersection will be attempted. If it fails, isect will be filled in with start. If it succeeds, doIntersect will check for a dynamic ocean layer. If one exists and the intersection is below it, the point at sea level is returned.
|
protectedvirtual |
Called when signals indicating display units settings has changed are emitted.
|
protectedvirtual |
slot for when the coordinate system changes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the current system wide coordinate system converter. for thread safety.
|
protected |