![]() |
VR-Forces 4.0.4 Class Documentation
|
Class which will keep track of fan los object (spokes between an origin and the outer rim of the circle). More...

Public Member Functions | |
| DtAttachableFanUpdater (DtDe &de, DtElementID id, bool doNotAddToMgr=false) | |
| CTOR. | |
| virtual | ~DtAttachableFanUpdater () |
| DTOR. | |
| virtual void | setFanModeSamplingRate (double) |
| Sets the number of radians to skip between each spoke. Default is 10 * Pi / 180 (10 degrees) | |
| virtual void | setStartPointOffsetFromCenter (const DtVector &) |
| Sets the offset from the center to have the start point be displayed after figuring out intersection. | |
| const DtVector & | startPointOffsetFromCenter () const |
Protected Types | |
| typedef std::vector < IntersectionInformation > | Intersections |
Protected Member Functions | |
| virtual void | updateSceneObject () |
| push the results to the scene object. Called by update() | |
| virtual bool | doIntersection () |
| Does intersection if points have changed. Returns true if something has changed. | |
| virtual DtVector | calculateEndPointFromRadian (const DtVector &start, double endZ, double radius, double degree) const |
| Calculates the end point for the degree of arc on the circle and the start point. | |
Protected Attributes | |
| Intersections | myIntersections |
| double | myFanModeSamplingRate |
| DtVector | myStartPointOffsetFromCenter |
| bool | myForceUpdate |
Class which will keep track of fan los object (spokes between an origin and the outer rim of the circle).
Attacher assumes that the parent scene objects have created enough line model agents to support the number of spokes. If not, the updater will only update for as many spokes as the object has
typedef std::vector<IntersectionInformation> makVrv::DtAttachableFanUpdater::Intersections [protected] |
| makVrv::DtAttachableFanUpdater::DtAttachableFanUpdater | ( | DtDe & | de, |
| DtElementID | id, | ||
| bool | doNotAddToMgr = false |
||
| ) |
CTOR.
| virtual makVrv::DtAttachableFanUpdater::~DtAttachableFanUpdater | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtAttachableFanUpdater::setFanModeSamplingRate | ( | double | ) | [virtual] |
Sets the number of radians to skip between each spoke. Default is 10 * Pi / 180 (10 degrees)
| virtual void makVrv::DtAttachableFanUpdater::setStartPointOffsetFromCenter | ( | const DtVector & | ) | [virtual] |
Sets the offset from the center to have the start point be displayed after figuring out intersection.
Will solve problem of center point being hidden under the fan lines. Default is 0
| const DtVector& makVrv::DtAttachableFanUpdater::startPointOffsetFromCenter | ( | ) | const |
| virtual void makVrv::DtAttachableFanUpdater::updateSceneObject | ( | ) | [protected, virtual] |
push the results to the scene object. Called by update()
Reimplemented from makVrv::DtAttachableIntervisibilityUpdater.
| virtual bool makVrv::DtAttachableFanUpdater::doIntersection | ( | ) | [protected, virtual] |
Does intersection if points have changed. Returns true if something has changed.
Reimplemented from makVrv::DtAttachableIntervisibilityUpdater.
| virtual DtVector makVrv::DtAttachableFanUpdater::calculateEndPointFromRadian | ( | const DtVector & | start, |
| double | endZ, | ||
| double | radius, | ||
| double | degree | ||
| ) | const [protected, virtual] |
Calculates the end point for the degree of arc on the circle and the start point.
double makVrv::DtAttachableFanUpdater::myFanModeSamplingRate [protected] |
bool makVrv::DtAttachableFanUpdater::myForceUpdate [protected] |