VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtSegmentedLineModelUpdater Class Reference

Base class for updaters updating segmented line models Contains methods and information struct for working with line models. More...

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

List of all members.

Classes

struct  PointInformation

Public Member Functions

 DtSegmentedLineModelUpdater (DtDe &de, DtElementID id, bool doNotAddToMgr=false)
 CTOR.
virtual ~DtSegmentedLineModelUpdater ()
 DTOR.
virtual void setStartPoint (const DtVector &position)
 Sets the origin of the line (absolute)
virtual void attachStartPoint (DtElementID id)
 Sets the origin of the line to be attached to an element.
virtual void setStartPointOffset (const DtVector &offset)
 Sets the offset of the start attach point.
virtual void setEndPoint (const DtVector &position)
 Sets the end of the Intervisibility line (absolute)
virtual void attachEndPoint (DtElementID id)
 Sets the end of the line to be attached to an element.
virtual void setEndPointOffset (const DtVector &offset)
 Sets the offset of the end attach point.
virtual DtVector calculateStartPoint ()
 Accessor for the origin of the line.
virtual DtVector calculateEndPoint ()
 Accessor for the end point of the line.
virtual void setSceneObject (DtSceneObject *sceneObject)
 Override to set model set to use for intersections.
virtual void update (double simTime)
 Updates the scene object Stores the time in myLastUpdateTime and calls updateSceneObject().

Protected Member Functions

virtual void updateSceneObject ()=0
 push the results to the scene object. Called by update()
Utility Methods
virtual void cleanup (PointInformation &pointInfo)
 Cleans up (resets) information for given point.
virtual DtVector offsetPoint (DtVector point, const DtVector &offset, const DtTaitBryan &ori=DtTaitBryan()) const
 Offsets the given point and returns new position Applies the given offset to the input point at the given orientation.
virtual DtVector getAttachedPosition (PointInformation &pointInfo)
 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.
virtual void getSceneInformation (const PointInformation &info, DtUniqueID &sceneId)
 Gets the id of the attached element to use for positioning.
Slots
virtual void slot_attachedSceneObjectToBeDeleted (DtUniqueID, PointInformation *)
 Called when scene object that this item is attached to is to be deleted.
virtual void slot_attachedUpdaterToBeDeleted (DtUniqueID, PointInformation *)
 Called when updater of attached scene object is to be deleted.

Protected Attributes

PointInformation myStartPoint
PointInformation myEndPoint

Detailed Description

Base class for updaters updating segmented line models Contains methods and information struct for working with line models.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtSegmentedLineModelUpdater::setStartPoint ( const DtVector position) [virtual]

Sets the origin of the line (absolute)

Sets the origin of the line to be attached to an element.

The element's first model instance will be used for positioning.

virtual void makVrv::DtSegmentedLineModelUpdater::setStartPointOffset ( const DtVector offset) [virtual]

Sets the offset of the start attach point.

virtual void makVrv::DtSegmentedLineModelUpdater::setEndPoint ( const DtVector position) [virtual]

Sets the end of the Intervisibility line (absolute)

Sets the end of the line to be attached to an element.

The element's first model instance will be used for positioning.

virtual void makVrv::DtSegmentedLineModelUpdater::setEndPointOffset ( const DtVector offset) [virtual]

Sets the offset of the end attach point.

Accessor for the origin of the line.

Accessor for the end point of the line.

virtual void makVrv::DtSegmentedLineModelUpdater::setSceneObject ( DtSceneObject sceneObject) [virtual]

Override to set model set to use for intersections.

Reimplemented from makVrv::DtUpdater.

virtual void makVrv::DtSegmentedLineModelUpdater::update ( double  simTime) [virtual]

Updates the scene object Stores the time in myLastUpdateTime and calls updateSceneObject().

See also:
DtSegmentedLineModelUpdater::updateSceneObject()

Reimplemented from makVrv::DtAttachableUpdater.

virtual void makVrv::DtSegmentedLineModelUpdater::updateSceneObject ( ) [protected, pure virtual]

push the results to the scene object. Called by update()

Reimplemented from makVrv::DtUpdater.

virtual void makVrv::DtSegmentedLineModelUpdater::cleanup ( PointInformation pointInfo) [protected, virtual]

Cleans up (resets) information for given point.

virtual DtVector makVrv::DtSegmentedLineModelUpdater::offsetPoint ( DtVector  point,
const DtVector offset,
const DtTaitBryan &  ori = DtTaitBryan() 
) const [protected, virtual]

Offsets the given point and returns new position Applies the given offset to the input point at the given orientation.

Parameters:
pointthe point to offset from
offsetthe offset to apply
orithe orientation to apply to the offset before offsetting the point

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.

virtual void makVrv::DtSegmentedLineModelUpdater::getSceneInformation ( const PointInformation info,
DtUniqueID sceneId 
) [protected, virtual]

Gets the id of the attached element to use for positioning.

Called when scene object that this item is attached to is to be deleted.

Called when updater of attached scene object is to be deleted.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)