Rise
The Vieneo Province
Loading...
Searching...
No Matches
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, RiseMath::Color color, int font=-1, std::string elementName="", int width=0, int height=0) const
virtual bool HandleKeyPress (short key, bool shift)
virtual bool UpdateKeyRepeat (const unsigned char *keys, bool shift, float elapsed)
virtual void OnPageChanged ()

Private Attributes

Sprite * artificialHorizon = nullptr
Sprite * commandBars = nullptr
Sprite * failFlagLocalizer = nullptr
Sprite * failFlagGlideslope = nullptr
Sprite * glideslopeBox = nullptr
Sprite * glideslopeBug = nullptr
Sprite * localizerBox = nullptr
Sprite * localizerBug = nullptr
Sprite * aoaHigh = nullptr
Sprite * aoa = nullptr
Sprite * aoaLow = nullptr
Sprite * reticle = nullptr
Sprite * vector = 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
RiseMath::Vector3 reticleVec
RiseMath::Vector3 velocityVec
bool localizerAlive = false
bool glideslopeAlive = false

Additional Inherited Members

Public Attributes inherited from Instrument
std::string profileName = "Instrument"
Protected Attributes inherited from Instrument
int x = 0
int y = 0
float xScale = 1.0f
float yScale = 1.0f
DeviceObject * pDevice = nullptr
Bus * bus = nullptr
Logger * logger = nullptr
UINT defaultFont = 0
bool cacheFixedText = false
int uiRow = 0
bool showMenu = false
int uiMenuColumn = -1

Detailed Description

Definition at line 498 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 4 of file AttitudeIndicator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ FrameMove()

void AttitudeIndicator::FrameMove ( float fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 136 of file AttitudeIndicator.cpp.

Here is the call graph for this function:

◆ Render()

void AttitudeIndicator::Render ( )
overridevirtual

Implements Instrument.

Definition at line 48 of file AttitudeIndicator.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ aoa

Sprite* AttitudeIndicator::aoa = nullptr
private

Definition at line 509 of file Instrument.h.

◆ aoaHigh

Sprite* AttitudeIndicator::aoaHigh = nullptr
private

Definition at line 508 of file Instrument.h.

◆ aoaLow

Sprite* AttitudeIndicator::aoaLow = nullptr
private

Definition at line 510 of file Instrument.h.

◆ artificialHorizon

Sprite* AttitudeIndicator::artificialHorizon = nullptr
private

Definition at line 500 of file Instrument.h.

◆ cbpitchscale

float AttitudeIndicator::cbpitchscale = 0.0f
private

Definition at line 519 of file Instrument.h.

◆ cbvertoffset

float AttitudeIndicator::cbvertoffset = 0.0f
private

Definition at line 520 of file Instrument.h.

◆ commandBars

Sprite* AttitudeIndicator::commandBars = nullptr
private

Definition at line 501 of file Instrument.h.

◆ failFlagGlideslope

Sprite* AttitudeIndicator::failFlagGlideslope = nullptr
private

Definition at line 503 of file Instrument.h.

◆ failFlagLocalizer

Sprite* AttitudeIndicator::failFlagLocalizer = nullptr
private

Definition at line 502 of file Instrument.h.

◆ glideslopeAlive

bool AttitudeIndicator::glideslopeAlive = false
private

Definition at line 529 of file Instrument.h.

◆ glideslopeBox

Sprite* AttitudeIndicator::glideslopeBox = nullptr
private

Definition at line 504 of file Instrument.h.

◆ glideslopeBug

Sprite* AttitudeIndicator::glideslopeBug = nullptr
private

Definition at line 505 of file Instrument.h.

◆ halftvrange

float AttitudeIndicator::halftvrange = 0.0f
private

Definition at line 522 of file Instrument.h.

◆ height

const float AttitudeIndicator::height = 344
private

Definition at line 516 of file Instrument.h.

◆ lastAOA

char AttitudeIndicator::lastAOA = 0
private

Definition at line 525 of file Instrument.h.

◆ localizerAlive

bool AttitudeIndicator::localizerAlive = false
private

Definition at line 528 of file Instrument.h.

◆ localizerBox

Sprite* AttitudeIndicator::localizerBox = nullptr
private

Definition at line 506 of file Instrument.h.

◆ localizerBug

Sprite* AttitudeIndicator::localizerBug = nullptr
private

Definition at line 507 of file Instrument.h.

◆ pitch

float AttitudeIndicator::pitch = 0.0f
private

Definition at line 514 of file Instrument.h.

◆ reticle

Sprite* AttitudeIndicator::reticle = nullptr
private

Definition at line 511 of file Instrument.h.

◆ reticleVec

RiseMath::Vector3 AttitudeIndicator::reticleVec
private

Definition at line 526 of file Instrument.h.

◆ roll

float AttitudeIndicator::roll = 0.0f
private

Definition at line 513 of file Instrument.h.

◆ scissor_rect

RECT AttitudeIndicator::scissor_rect = {}
private

Definition at line 524 of file Instrument.h.

◆ tvpitch

float AttitudeIndicator::tvpitch = 0.0f
private

Definition at line 523 of file Instrument.h.

◆ tvpitchscale

float AttitudeIndicator::tvpitchscale = 0.0f
private

Definition at line 517 of file Instrument.h.

◆ tvvertoffset

float AttitudeIndicator::tvvertoffset = 0.0f
private

Definition at line 518 of file Instrument.h.

◆ vector

Sprite* AttitudeIndicator::vector = nullptr
private

Definition at line 512 of file Instrument.h.

◆ velocityVec

RiseMath::Vector3 AttitudeIndicator::velocityVec
private

Definition at line 527 of file Instrument.h.

◆ width

const float AttitudeIndicator::width = 348
private

Definition at line 515 of file Instrument.h.

◆ xMargins

int AttitudeIndicator::xMargins = 0
private

Definition at line 521 of file Instrument.h.

◆ yMargins

int AttitudeIndicator::yMargins = 0
private

Definition at line 521 of file Instrument.h.


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