VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtIntersectorAttachableUpdater Class Reference

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.

Inheritance diagram for makVrv::DtIntersectorAttachableUpdater:
Inheritance graph
[legend]

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 ()
 

Protected Attributes

DtIntersectorsContainer * myIntersectors
 
bool myIntersectorEnabled
 
DtModelSetId myModelSet
 
DtElementID mySourceElementId
 
std::unordered_map< int, DtVector > myPendingPositions
 
std::unordered_map< int,
DtTaitBryan > 
myPendingOrientations
 
- 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, AttachedPointModePositionAndRotateOffset }
 
- Public Types inherited from makVrv::DtTickable
enum  TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList }
 
- Protected Types inherited from makVrv::DtAttachableUpdater
typedef std::vector
< AttachedPoint * > 
AttachedPointsVector
 

Constructor & Destructor Documentation

makVrv::DtIntersectorAttachableUpdater::DtIntersectorAttachableUpdater ( DtDe &  de,
DtUniqueID  id 
)

CTOR.

virtual makVrv::DtIntersectorAttachableUpdater::~DtIntersectorAttachableUpdater ( )
virtual

DTOR.

makVrv::DtIntersectorAttachableUpdater::DtIntersectorAttachableUpdater ( )
delete

Not allowed.

makVrv::DtIntersectorAttachableUpdater::DtIntersectorAttachableUpdater ( const DtIntersectorAttachableUpdater &  )
delete

Not allowed.

Member Function Documentation

DtIntersectorAttachableUpdater& makVrv::DtIntersectorAttachableUpdater::operator= ( const DtIntersectorAttachableUpdater &  )
delete

Not allowed.

virtual void makVrv::DtIntersectorAttachableUpdater::update ( double  simTime)
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 void makVrv::DtIntersectorAttachableUpdater::setIntersectorEnabled ( bool  enabled)
virtual

Enable or disable the scene intersector. When disabled, vertex positions are applied as computed by the base class without any clipping.

virtual void makVrv::DtIntersectorAttachableUpdater::setModelSet ( DtModelSetId  modelSet)
virtual

Set the model set used when looking up the intersector. Defaults to DtModelSetId::Models3D.

virtual void makVrv::DtIntersectorAttachableUpdater::setSourceElementId ( DtElementID  sourceElementId)
virtual

Set the element ID of the source entity. The source entity's scene object will be excluded from intersection tests.

virtual void makVrv::DtIntersectorAttachableUpdater::setVertexPosition ( int  vtx,
const DtVector &  position 
)
overrideprotectedvirtual

Intercepts setVertexPosition to defer application until after the intersector has had a chance to clip the endpoint.

Reimplemented from makVrv::DtAttachableUpdater.

virtual void makVrv::DtIntersectorAttachableUpdater::setVertexOrientation ( int  vtx,
const DtTaitBryan &  orientation 
)
overrideprotectedvirtual

Intercepts setVertexOrientation to defer application until after the intersector has had a chance to clip the endpoint.

Reimplemented from makVrv::DtAttachableUpdater.

virtual void makVrv::DtIntersectorAttachableUpdater::runIntersectorAndClip ( )
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.

virtual void makVrv::DtIntersectorAttachableUpdater::applyPendingVertices ( )
protectedvirtual

Applies all pending vertex positions and orientations to the scene object or model being updated.

Member Data Documentation

DtIntersectorsContainer* makVrv::DtIntersectorAttachableUpdater::myIntersectors
protected
bool makVrv::DtIntersectorAttachableUpdater::myIntersectorEnabled
protected
DtModelSetId makVrv::DtIntersectorAttachableUpdater::myModelSet
protected
DtElementID makVrv::DtIntersectorAttachableUpdater::mySourceElementId
protected
std::unordered_map<int, DtVector> makVrv::DtIntersectorAttachableUpdater::myPendingPositions
protected
std::unordered_map<int, DtTaitBryan> makVrv::DtIntersectorAttachableUpdater::myPendingOrientations
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)