VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPitchLadder.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2020 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vector>
12 
13 // Use the VR-Vantage namespace.
14 // All classes in VR-Vantage are in this namespace.
15 namespace makVrv
16 {
17  class DtDe;
18  class DtWindowObjectAgent;
19  class DtWindowSurfaceAgent;
20  class DtObserver;
21 
39  {
40  public:
42  DtPitchLadder( DtDe& de, DtObserver& observer );
43 
45  virtual ~DtPitchLadder();
46 
48  virtual void init();
49 
51  virtual void tick();
52  protected:
54  virtual void drawHorizon();
56  virtual void drawPitchLadder();
57  protected:
59  typedef std::vector<DtWindowObjectAgent*> DtWindowObjects;
60  protected:
66  DtWindowObjectAgent* myPitchLadderRootObject;
68 
69  DtWindowSurfaceAgent* mySurface;
71  DtWindowObjectAgent* myHorizonRootObject;
74 
76  double lastPhi;
77  double lastTheta;
78  double lastPsi;
79  };
80 }
DtObserver & myObserver
Observer 1 Reference.
Definition: DtPitchLadder.h:73
double lastPsi
Definition: DtPitchLadder.h:78
DtDe & myDe
DtDe reference.
Definition: DtPitchLadder.h:62
DtWindowObjectAgent * myPitchLadderRootObject
Root object to control the pitch ladder.
Definition: DtPitchLadder.h:66
virtual void drawPitchLadder()
Draw Pitch Ladder.
DtWindowSurfaceAgent * mySurface
Surface that clips the pitch ladder.
Definition: DtPitchLadder.h:69
virtual void drawHorizon()
Draw the horizon.
A facade for a DtObserverObject.
Definition: DtObserver.h:37
DtWindowObjects myWindowAgents
Vector of the window agents.
Definition: DtPitchLadder.h:64
A class for creating a pitch ladder on screen using DtWindowObject. The pitch ladder displays the cur...
Definition: DtPitchLadder.h:38
virtual void init()
Initialise the pitch ladder &amp; horizon line.
virtual ~DtPitchLadder()
Virtual DTOR.
DtWindowObjectAgent * myHorizonRootObject
Root Object to control the horizon lines.
Definition: DtPitchLadder.h:71
virtual void tick()
Update the pitch ladder &amp; horizon line.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
double lastTheta
Definition: DtPitchLadder.h:77
DtPitchLadder(DtDe &de, DtObserver &observer)
CTOR.
std::vector< DtWindowObjectAgent * > DtWindowObjects
typedef vector for holding DtWindowObjectAgents
Definition: DtPitchLadder.h:59
double lastPhi
Orientation values of the observer from the last frame.
Definition: DtPitchLadder.h:76

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)