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
DtAttachableRangeLineTextUpdater Class Reference

This class will compute the range from this to the next or previous point and then update the attached text widget with the resul.

Inheritance diagram for DtAttachableRangeLineTextUpdater:
Inheritance graph
[legend]

Public Member Functions

 DtAttachableRangeLineTextUpdater (makVrv::DtDe &de, makVrv::DtUniqueID id)
 
virtual ~DtAttachableRangeLineTextUpdater ()
 
virtual void update (double)
 
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 AttachedPointattachedPoint (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
DtDemyDe
 
DtUniqueID myUniqueId
 
DtSceneObjectmySceneObject
 
DtModelmyModel
 
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
DtTickableManagerInterfacemyManager
 
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
 

Constructor & Destructor Documentation

DtAttachableRangeLineTextUpdater::DtAttachableRangeLineTextUpdater ( makVrv::DtDe de,
makVrv::DtUniqueID  id 
)

CTOR.

virtual DtAttachableRangeLineTextUpdater::~DtAttachableRangeLineTextUpdater ( )
virtual

DTOR.

Member Function Documentation

virtual void DtAttachableRangeLineTextUpdater::update ( double  )
virtual

Called to calculate the range.

virtual void DtAttachableRangeLineTextUpdater::setComputeToNextPoint ( bool  )
virtual

Set whether or not to compute to the next or previous point. Default is false – compute to previous point.

virtual void DtAttachableRangeLineTextUpdater::setParentId ( makVrv::DtUniqueID  )
virtual

The ID of the line object we are looking at for range calculations.

virtual double DtAttachableRangeLineTextUpdater::calculateRange ( )
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.

Member Data Documentation

bool DtAttachableRangeLineTextUpdater::myComputeToNextPoint
protected
makVrv::DtUniqueID DtAttachableRangeLineTextUpdater::myParentId
protected
double DtAttachableRangeLineTextUpdater::myLastRange
protected
int DtAttachableRangeLineTextUpdater::mySourceIndex
protected
bool DtAttachableRangeLineTextUpdater::myStopChecking
protected
makVrv::DtDisplayUnitsConverter::DistanceUnits DtAttachableRangeLineTextUpdater::myDistanceUnits
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)