![]() |
VR-Forces 4.0.4 Class Documentation
|
Base class for updaters updating segmented line models Contains methods and information struct for working with line models. More...

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 |
Base class for updaters updating segmented line models Contains methods and information struct for working with line models.
| makVrv::DtSegmentedLineModelUpdater::DtSegmentedLineModelUpdater | ( | DtDe & | de, |
| DtElementID | id, | ||
| bool | doNotAddToMgr = false |
||
| ) |
CTOR.
| virtual makVrv::DtSegmentedLineModelUpdater::~DtSegmentedLineModelUpdater | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtSegmentedLineModelUpdater::setStartPoint | ( | const DtVector & | position | ) | [virtual] |
Sets the origin of the line (absolute)
| virtual void makVrv::DtSegmentedLineModelUpdater::attachStartPoint | ( | DtElementID | id | ) | [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 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)
| virtual void makVrv::DtSegmentedLineModelUpdater::attachEndPoint | ( | DtElementID | id | ) | [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 void makVrv::DtSegmentedLineModelUpdater::setEndPointOffset | ( | const DtVector & | offset | ) | [virtual] |
Sets the offset of the end attach point.
| virtual DtVector makVrv::DtSegmentedLineModelUpdater::calculateStartPoint | ( | ) | [virtual] |
Accessor for the origin of the line.
| virtual DtVector makVrv::DtSegmentedLineModelUpdater::calculateEndPoint | ( | ) | [virtual] |
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().
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.
| point | the point to offset from |
| offset | the offset to apply |
| ori | the orientation to apply to the offset before offsetting the point |
| virtual DtVector makVrv::DtSegmentedLineModelUpdater::getAttachedPosition | ( | PointInformation & | pointInfo | ) | [protected, virtual] |
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.
| virtual void makVrv::DtSegmentedLineModelUpdater::slot_attachedSceneObjectToBeDeleted | ( | DtUniqueID | , |
| PointInformation * | |||
| ) | [protected, virtual] |
Called when scene object that this item is attached to is to be deleted.
| virtual void makVrv::DtSegmentedLineModelUpdater::slot_attachedUpdaterToBeDeleted | ( | DtUniqueID | , |
| PointInformation * | |||
| ) | [protected, virtual] |
Called when updater of attached scene object is to be deleted.