![]() |
VR-Forces 4.0.4 Class Documentation
|
Class which will keep track of Intervisibility between an origin and an end point. More...

Classes | |
| struct | IntersectionInformation |
Public Member Functions | |
| DtAttachableIntervisibilityUpdater (DtDe &de, DtElementID id, bool doNotAddToMgr=false) | |
| CTOR. | |
| virtual | ~DtAttachableIntervisibilityUpdater () |
| DTOR. | |
| virtual void | setFixedDistance (bool) |
| If true, sets the end point to be a fixed distance (given the current distance) from the start point, if the start points moves and the end point is not attached. | |
Protected Member Functions | |
| virtual void | update (double) |
| Sees if intervisibility needs to be recalculated, and, if so recalculates and sets all associated lines. | |
| virtual bool | doIntersection () |
| Does intersection if points have changed. Returns true if something has changed. | |
| virtual void | updateSceneObject () |
| push the results to the scene object. Called by update() | |
| virtual double | calculateDistance (const DtVector &start, const DtVector &end, DtVector *circleOrigin=0) const |
| Calculates distance based on topo coordinates in 3 dimensions. | |
| virtual void | calculateFixedDistance () |
| Calculates the distance from the start to end point and assigns to myFixedDistance member. | |
| virtual DtVector | fixedDistanceFrom (const DtVector &start, const DtVector &end, double heading, double distance) const |
| Given two points (for an angle), returns a fixed distance from the start point. | |
| virtual double | calculateHeading (const DtVector &start, const DtVector &end) const |
| Calculates topographic heading from start to end point. | |
Protected Attributes | |
| IntersectionInformation | myIntersectionInformation |
| bool | myFixDistance |
| double | myFixedDistance |
| double | myFixedHeading |
Class which will keep track of Intervisibility between an origin and an end point.
Will update all scene objects attached to it with the Intervisibility information.
| makVrv::DtAttachableIntervisibilityUpdater::DtAttachableIntervisibilityUpdater | ( | DtDe & | de, |
| DtElementID | id, | ||
| bool | doNotAddToMgr = false |
||
| ) |
CTOR.
| virtual makVrv::DtAttachableIntervisibilityUpdater::~DtAttachableIntervisibilityUpdater | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtAttachableIntervisibilityUpdater::setFixedDistance | ( | bool | ) | [virtual] |
If true, sets the end point to be a fixed distance (given the current distance) from the start point, if the start points moves and the end point is not attached.
Default is false
| virtual void makVrv::DtAttachableIntervisibilityUpdater::update | ( | double | ) | [protected, virtual] |
Sees if intervisibility needs to be recalculated, and, if so recalculates and sets all associated lines.
Reimplemented from makVrv::DtLineModelUpdater.
Reimplemented in makVrv::DtAttachableEntityFanUpdater.
| virtual bool makVrv::DtAttachableIntervisibilityUpdater::doIntersection | ( | ) | [protected, virtual] |
Does intersection if points have changed. Returns true if something has changed.
Reimplemented in makVrv::DtAttachableEntityFanUpdater, and makVrv::DtAttachableFanUpdater.
| virtual void makVrv::DtAttachableIntervisibilityUpdater::updateSceneObject | ( | ) | [protected, virtual] |
push the results to the scene object. Called by update()
Implements makVrv::DtLineModelUpdater.
Reimplemented in makVrv::DtAttachableEntityFanUpdater, and makVrv::DtAttachableFanUpdater.
| virtual double makVrv::DtAttachableIntervisibilityUpdater::calculateDistance | ( | const DtVector & | start, |
| const DtVector & | end, | ||
| DtVector * | circleOrigin = 0 |
||
| ) | const [protected, virtual] |
Calculates distance based on topo coordinates in 3 dimensions.
| virtual void makVrv::DtAttachableIntervisibilityUpdater::calculateFixedDistance | ( | ) | [protected, virtual] |
Calculates the distance from the start to end point and assigns to myFixedDistance member.
| virtual DtVector makVrv::DtAttachableIntervisibilityUpdater::fixedDistanceFrom | ( | const DtVector & | start, |
| const DtVector & | end, | ||
| double | heading, | ||
| double | distance | ||
| ) | const [protected, virtual] |
Given two points (for an angle), returns a fixed distance from the start point.
| virtual double makVrv::DtAttachableIntervisibilityUpdater::calculateHeading | ( | const DtVector & | start, |
| const DtVector & | end | ||
| ) | const [protected, virtual] |
Calculates topographic heading from start to end point.
IntersectionInformation makVrv::DtAttachableIntervisibilityUpdater::myIntersectionInformation [protected] |
double makVrv::DtAttachableIntervisibilityUpdater::myFixedDistance [protected] |
double makVrv::DtAttachableIntervisibilityUpdater::myFixedHeading [protected] |