VR-Forces 4.10 Class Documentation
 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. More...

Public Member Functions

 DtPitchLadder (DtDe &de, DtObserver &observer)
 CTOR. More...
 
virtual ~DtPitchLadder ()
 Virtual DTOR. More...
 
virtual void init ()
 Initialise the pitch ladder & horizon line. More...
 
virtual void tick ()
 Update the pitch ladder & horizon line. More...
 

Protected Types

typedef std::vector
< DtWindowObjectAgent * > 
DtWindowObjects
 typedef vector for holding DtWindowObjectAgents More...
 

Protected Member Functions

virtual void drawHorizon ()
 Draw the horizon. More...
 
virtual void drawPitchLadder ()
 Draw Pitch Ladder. More...
 

Protected Attributes

DtDemyDe
 DtDe reference. More...
 
DtWindowObjects myWindowAgents
 Vector of the window agents. More...
 
DtWindowObjectAgent * myPitchLadderRootObject
 Root object to control the pitch ladder. More...
 
DtWindowSurfaceAgent * mySurface
 Surface that clips the pitch ladder. More...
 
DtWindowObjectAgent * myHorizonRootObject
 Root Object to control the horizon lines. More...
 
DtObservermyObserver
 Observer 1 Reference. More...
 
double lastPhi
 Orientation values of the observer from the last frame. More...
 
double lastTheta
 
double lastPsi
 

Detailed Description

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.

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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)