VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtAttachableFanUpdater Class Reference

Class which will keep track of fan los object (spokes between an origin and the outer rim of the circle). More...

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

List of all members.

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 DtVectorstartPointOffsetFromCenter () 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

Detailed Description

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


Member Typedef Documentation


Constructor & Destructor Documentation

makVrv::DtAttachableFanUpdater::DtAttachableFanUpdater ( DtDe de,
DtElementID  id,
bool  doNotAddToMgr = false 
)

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtAttachableFanUpdater::setFanModeSamplingRate ( double  ) [virtual]

Sets the number of radians to skip between each spoke. Default is 10 * Pi / 180 (10 degrees)

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

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.


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)