![]() |
VR-Forces 5.0.1 Developer's Guide
|
Base class for updaters updating segmented line models Contains methods and information struct for working with line models.

Classes | |
| struct | PointInformation |
Public Member Functions | |
| DtLineModelUpdater (DtDe &de, DtElementID id) | |
| virtual | ~DtLineModelUpdater () |
| virtual void | setStartPoint (const DtVector &position) |
| virtual void | attachStartPoint (DtElementID id) |
| virtual void | setStartPointOffset (const DtVector &offset) |
| virtual void | setEndPoint (const DtVector &position) |
| virtual void | attachEndPoint (DtElementID id) |
| virtual void | setEndPointOffset (const DtVector &offset) |
| virtual DtVector | calculateStartPoint () |
| virtual DtVector | calculateEndPoint () |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| virtual void | update (DtTime tNow) |
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 uniqueID, int targetVertexIndex) |
| virtual void | addAttachedPoint (DtUniqueID uniqueID, 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 | doAttachment (DtTime tNow) |
| DtTime | lastUpdateTime () const |
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 Attributes | |
| PointInformation | myStartPoint |
| PointInformation | myEndPoint |
Protected Attributes inherited from makVrv::DtAttachableUpdater | |
| DtDe & | myDe |
| DtUniqueID | myUniqueId |
| DtSceneObject * | mySceneObject |
| boost::signalslib::connection | mySceneObjectConnection |
| boost::signalslib::connection | mySceneObjectUpdaterConnection |
| DtTime | myLastUpdateTime |
| 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 |
| 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 |
| makVrv::DtLineModelUpdater::DtLineModelUpdater | ( | DtDe & | de, |
| DtElementID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Sets the origin of the line (absolute)
|
virtual |
Sets the origin of the line to be attached to an element. The element's first model instance will be used for positioning.
|
virtual |
Sets the offset of the start attach point.
|
virtual |
Sets the end of the Intervisibility line (absolute)
|
virtual |
Sets the end of the line to be attached to an element. The element's first model instance will be used for positioning.
|
virtual |
Sets the offset of the end attach point.
|
virtual |
Accessor for the origin of the line.
|
virtual |
Accessor for the end point of the line.
|
virtual |
Override to set model set to use for intersections.
Reimplemented from makVrv::DtAttachableUpdater.
|
virtual |
Updates the scene object Stores the time in myLastUpdateTime and calls updateSceneObject().
Reimplemented from makVrv::DtAttachableUpdater.
Reimplemented in makVrv::DtAttachableEntityFanUpdater, makVrv::DtAttachableIntervisibilityUpdater, and makVrf::DtVrfAttachableEntityFanUpdater.
|
protectedpure virtual |
|
protectedvirtual |
Cleans up (resets) information for given point.
|
protectedvirtual |
Offsets the given point and returns new position Applies the given offset to the input point at the given orientation.
| point | the point to offset from |
| offset | the offset to apply |
| ori | the orientation to apply to the offset before offsetting the point |
|
protectedvirtual |
Gets the attached position of the given point Attempts to get and return the attached position of the given point, and returns pointInfo.position if obtaining the attached scene object or updater failed.
|
protectedvirtual |
Gets the attached orientation of the given point Attempts to get and return the attached orientation of the given point, and returns DtTaitBryan() if obtaining the attached scene object failed.
|
protectedvirtual |
Gets the id of the attached element to use for positioning.
|
protectedvirtual |
Called when scene object that this item is attached to is to be deleted.
|
protectedvirtual |
Called when updater of attached scene object is to be deleted.
|
protected |
|
protected |