![]() |
VR-Forces Developer's Guide
|
A DtIntersectorAttachableUpdater extends DtAttachableUpdater with scene intersection support. After the base class computes the positions for all attached vertices, an intersector is run between vertex 0 (origin) and vertex 1 (endpoint) to clip the endpoint to the first scene obstruction found along that segment.

Public Member Functions | |
| DtIntersectorAttachableUpdater (DtDe &de, DtUniqueID id) | |
| virtual | ~DtIntersectorAttachableUpdater () |
| virtual void | update (double simTime) override |
| virtual void | setIntersectorEnabled (bool enabled) |
| virtual void | setModelSet (DtModelSetId modelSet) |
| virtual void | setSourceElementId (DtElementID sourceElementId) |
| DtIntersectorAttachableUpdater ()=delete | |
| DtIntersectorAttachableUpdater (const DtIntersectorAttachableUpdater &)=delete | |
| DtIntersectorAttachableUpdater & | operator= (const DtIntersectorAttachableUpdater &)=delete |
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 | setVertexPosition (int vtx, const DtVector &position) override |
| virtual void | setVertexOrientation (int vtx, const DtTaitBryan &orientation) override |
| virtual void | runIntersectorAndClip () |
| virtual void | applyPendingVertices () |
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, AttachedPointModePositionAndRotateOffset } |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
Protected Types inherited from makVrv::DtAttachableUpdater | |
| typedef std::vector < AttachedPoint * > | AttachedPointsVector |
| makVrv::DtIntersectorAttachableUpdater::DtIntersectorAttachableUpdater | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Not allowed.
|
delete |
Not allowed.
|
delete |
Not allowed.
|
overridevirtual |
Extends base update to run the intersector between vtx 0 and vtx 1, clipping vtx 1 to the first scene obstruction if one is found.
|
virtual |
Enable or disable the scene intersector. When disabled, vertex positions are applied as computed by the base class without any clipping.
|
virtual |
Set the model set used when looking up the intersector. Defaults to DtModelSetId::Models3D.
|
virtual |
Set the element ID of the source entity. The source entity's scene object will be excluded from intersection tests.
|
overrideprotectedvirtual |
Intercepts setVertexPosition to defer application until after the intersector has had a chance to clip the endpoint.
Reimplemented from makVrv::DtAttachableUpdater.
|
overrideprotectedvirtual |
Intercepts setVertexOrientation to defer application until after the intersector has had a chance to clip the endpoint.
Reimplemented from makVrv::DtAttachableUpdater.
|
protectedvirtual |
Runs the intersector between the pending vtx 0 and vtx 1 positions. If an obstruction is found the pending vtx 1 position is clipped to the hit point.
|
protectedvirtual |
Applies all pending vertex positions and orientations to the scene object or model being updated.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |