![]() |
VR-Forces 4.10 Class Documentation
|
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 | |
| DtDe & | myDe |
| 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... | |
| DtObserver & | myObserver |
| Observer 1 Reference. More... | |
| double | lastPhi |
| Orientation values of the observer from the last frame. More... | |
| double | lastTheta |
| double | lastPsi |
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.
|
protected |
typedef vector for holding DtWindowObjectAgents
| makVrv::DtPitchLadder::DtPitchLadder | ( | DtDe & | de, |
| DtObserver & | observer | ||
| ) |
CTOR.
|
virtual |
Virtual DTOR.
|
virtual |
Initialise the pitch ladder & horizon line.
|
virtual |
Update the pitch ladder & horizon line.
|
protectedvirtual |
Draw the horizon.
|
protectedvirtual |
Draw Pitch Ladder.
|
protected |
Vector of the window agents.
|
protected |
Root object to control the pitch ladder.
|
protected |
Surface that clips the pitch ladder.
|
protected |
Root Object to control the horizon lines.
|
protected |
Observer 1 Reference.
|
protected |
Orientation values of the observer from the last frame.
|
protected |
|
protected |