VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtPitchLadder Class Reference

A class for creating a pitch ladder on screen using DtWindowObject. The pitch ladder displays the current pitch angle of the observer, when the observer is pitched up or down the pitch ladder object is translated to represented the current pitch in degrees. Each line on the pitch ladder represents 5 degrees. Dashed lines indicate negative pitch and solid lines positive. Number on either side of the pitch indicate the value, in this example ranging from 5-40 degrees. Additionally, there is a wider horizon line that will stay locked to the horizon as the observer moves. This class creates a DtWindowSurface on screen, at the the location (0.5,0.5), this surface is used to place the DtWindowLines that represent each 5 degree increment in object space of the surface. The surface has an associated clip box that will automatically clip child window objects that go outside of the box. The clip box is made from two 2D coordinates, a minXY and maxXY, these are set to ( 0.35, 0.2 ),( 0.65, 0.8 ) in screen space. The pitch ladder can be created through the init() method. The tick() method updates the heading tape based upon the current orientation of the observer.

Public Member Functions

 DtPitchLadder (DtDe &de, DtObserver &observer)
 
virtual ~DtPitchLadder ()
 
virtual void init ()
 
virtual void tick ()
 

Protected Types

typedef std::vector
< DtWindowObjectAgent * > 
DtWindowObjects
 

Protected Member Functions

virtual void drawHorizon ()
 
virtual void drawPitchLadder ()
 

Protected Attributes

DtDemyDe
 
DtWindowObjects myWindowAgents
 
DtWindowObjectAgent * myPitchLadderRootObject
 
DtWindowSurfaceAgent * mySurface
 
DtWindowObjectAgent * myHorizonRootObject
 
DtObservermyObserver
 
double lastPhi
 
double lastTheta
 
double lastPsi
 

Member Typedef Documentation

typedef std::vector<DtWindowObjectAgent*> makVrv::DtPitchLadder::DtWindowObjects
protected

typedef vector for holding DtWindowObjectAgents

Constructor & Destructor Documentation

makVrv::DtPitchLadder::DtPitchLadder ( DtDe de,
DtObserver observer 
)

CTOR.

virtual makVrv::DtPitchLadder::~DtPitchLadder ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrv::DtPitchLadder::init ( )
virtual

Initialise the pitch ladder & horizon line.

virtual void makVrv::DtPitchLadder::tick ( )
virtual

Update the pitch ladder & horizon line.

virtual void makVrv::DtPitchLadder::drawHorizon ( )
protectedvirtual

Draw the horizon.

virtual void makVrv::DtPitchLadder::drawPitchLadder ( )
protectedvirtual

Draw Pitch Ladder.

Member Data Documentation

DtDe& makVrv::DtPitchLadder::myDe
protected

DtDe reference.

DtWindowObjects makVrv::DtPitchLadder::myWindowAgents
protected

Vector of the window agents.

DtWindowObjectAgent* makVrv::DtPitchLadder::myPitchLadderRootObject
protected

Root object to control the pitch ladder.

DtWindowSurfaceAgent* makVrv::DtPitchLadder::mySurface
protected

Surface that clips the pitch ladder.

DtWindowObjectAgent* makVrv::DtPitchLadder::myHorizonRootObject
protected

Root Object to control the horizon lines.

DtObserver& makVrv::DtPitchLadder::myObserver
protected

Observer 1 Reference.

double makVrv::DtPitchLadder::lastPhi
protected

Orientation values of the observer from the last frame.

double makVrv::DtPitchLadder::lastTheta
protected
double makVrv::DtPitchLadder::lastPsi
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)