Rise
The Vieneo Province
AttitudeIndicator Class Reference

#include <Instrument.h>

Inheritance diagram for AttitudeIndicator:
[legend]
Collaboration diagram for AttitudeIndicator:
[legend]

Public Member Functions

 AttitudeIndicator (int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts)
 
void Render () override
 
void FrameMove (float fElapsed) override
 
- Public Member Functions inherited from Instrument
 Instrument (int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts)
 
void DrawText (const WCHAR *str, int relativeX, int relativeY, float prmZ, int flags, D3DXCOLOR color, int font=-1, std::string elementName="", int width=0, int height=0)
 
virtual bool HandleKeyPress (short key, bool shift)
 
virtual void OnPageChanged ()
 

Private Attributes

SpriteartificialHorizon = nullptr
 
SpritecommandBars = nullptr
 
SpritefailFlagLocalizer = nullptr
 
SpritefailFlagGlideslope = nullptr
 
SpriteglideslopeBox = nullptr
 
SpriteglideslopeBug = nullptr
 
SpritelocalizerBox = nullptr
 
SpritelocalizerBug = nullptr
 
SpriteaoaHigh = nullptr
 
Spriteaoa = nullptr
 
SpriteaoaLow = nullptr
 
Spriterecticle = nullptr
 
Spritevector = nullptr
 
float roll = 0.0f
 
float pitch = 0.0f
 
const float width = 348
 
const float height = 344
 
float tvpitchscale = 0.0f
 
float tvvertoffset = 0.0f
 
float cbpitchscale = 0.0f
 
float cbvertoffset = 0.0f
 
int xMargins = 0
 
int yMargins = 0
 
float halftvrange = 0.0f
 
float tvpitch = 0.0f
 
RECT scissor_rect = {}
 
char lastAOA = 0
 
D3DXVECTOR3 recticleVec
 
D3DXVECTOR3 velocityVec
 

Additional Inherited Members

- Protected Attributes inherited from Instrument
int x = 0
 
int y = 0
 
float xScale = 1.0f
 
float yScale = 1.0f
 
DeviceObjectpDevice = nullptr
 
Busbus = nullptr
 
Loggerlogger = nullptr
 
UINT defaultFont = 0
 
int uiRow = 0
 
bool showMenu = false
 
int uiMenuColumn = -1
 

Detailed Description

Definition at line 361 of file Instrument.h.

Constructor & Destructor Documentation

◆ AttitudeIndicator()

AttitudeIndicator::AttitudeIndicator ( int  prmX,
int  prmY,
float  prmXScale,
float  prmYScale,
Bus prmBus,
Logger prmLogger,
DeviceObject prmDevice,
std::vector< Font *>  prmFonts 
)

Definition at line 3 of file AttitudeIndicator.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ FrameMove()

void AttitudeIndicator::FrameMove ( float  fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 134 of file AttitudeIndicator.cpp.

Here is the call graph for this function:

◆ Render()

void AttitudeIndicator::Render ( )
overridevirtual

Implements Instrument.

Definition at line 46 of file AttitudeIndicator.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ aoa

Sprite* AttitudeIndicator::aoa = nullptr
private

Definition at line 372 of file Instrument.h.

◆ aoaHigh

Sprite* AttitudeIndicator::aoaHigh = nullptr
private

Definition at line 371 of file Instrument.h.

◆ aoaLow

Sprite* AttitudeIndicator::aoaLow = nullptr
private

Definition at line 373 of file Instrument.h.

◆ artificialHorizon

Sprite* AttitudeIndicator::artificialHorizon = nullptr
private

Definition at line 363 of file Instrument.h.

◆ cbpitchscale

float AttitudeIndicator::cbpitchscale = 0.0f
private

Definition at line 382 of file Instrument.h.

◆ cbvertoffset

float AttitudeIndicator::cbvertoffset = 0.0f
private

Definition at line 383 of file Instrument.h.

◆ commandBars

Sprite* AttitudeIndicator::commandBars = nullptr
private

Definition at line 364 of file Instrument.h.

◆ failFlagGlideslope

Sprite* AttitudeIndicator::failFlagGlideslope = nullptr
private

Definition at line 366 of file Instrument.h.

◆ failFlagLocalizer

Sprite* AttitudeIndicator::failFlagLocalizer = nullptr
private

Definition at line 365 of file Instrument.h.

◆ glideslopeBox

Sprite* AttitudeIndicator::glideslopeBox = nullptr
private

Definition at line 367 of file Instrument.h.

◆ glideslopeBug

Sprite* AttitudeIndicator::glideslopeBug = nullptr
private

Definition at line 368 of file Instrument.h.

◆ halftvrange

float AttitudeIndicator::halftvrange = 0.0f
private

Definition at line 385 of file Instrument.h.

◆ height

const float AttitudeIndicator::height = 344
private

Definition at line 379 of file Instrument.h.

◆ lastAOA

char AttitudeIndicator::lastAOA = 0
private

Definition at line 388 of file Instrument.h.

◆ localizerBox

Sprite* AttitudeIndicator::localizerBox = nullptr
private

Definition at line 369 of file Instrument.h.

◆ localizerBug

Sprite* AttitudeIndicator::localizerBug = nullptr
private

Definition at line 370 of file Instrument.h.

◆ pitch

float AttitudeIndicator::pitch = 0.0f
private

Definition at line 377 of file Instrument.h.

◆ recticle

Sprite* AttitudeIndicator::recticle = nullptr
private

Definition at line 374 of file Instrument.h.

◆ recticleVec

D3DXVECTOR3 AttitudeIndicator::recticleVec
private

Definition at line 389 of file Instrument.h.

◆ roll

float AttitudeIndicator::roll = 0.0f
private

Definition at line 376 of file Instrument.h.

◆ scissor_rect

RECT AttitudeIndicator::scissor_rect = {}
private

Definition at line 387 of file Instrument.h.

◆ tvpitch

float AttitudeIndicator::tvpitch = 0.0f
private

Definition at line 386 of file Instrument.h.

◆ tvpitchscale

float AttitudeIndicator::tvpitchscale = 0.0f
private

Definition at line 380 of file Instrument.h.

◆ tvvertoffset

float AttitudeIndicator::tvvertoffset = 0.0f
private

Definition at line 381 of file Instrument.h.

◆ vector

Sprite* AttitudeIndicator::vector = nullptr
private

Definition at line 375 of file Instrument.h.

◆ velocityVec

D3DXVECTOR3 AttitudeIndicator::velocityVec
private

Definition at line 390 of file Instrument.h.

◆ width

const float AttitudeIndicator::width = 348
private

Definition at line 378 of file Instrument.h.

◆ xMargins

int AttitudeIndicator::xMargins = 0
private

Definition at line 384 of file Instrument.h.

◆ yMargins

int AttitudeIndicator::yMargins = 0
private

Definition at line 384 of file Instrument.h.


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