Rise
The Vieneo Province
Loading...
Searching...
No Matches
FMA2 Class Reference

#include <Instrument.h>

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

Public Member Functions

 FMA2 (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 * speedModeBarCurrent = nullptr
Sprite * autopilotBarCurrent = nullptr
Sprite * thrustModeBarCurrent = nullptr
Sprite * lateralModeBarCurrent = nullptr
Sprite * lateralModeBarStandby = nullptr
Sprite * glideslopeModeBarStandby = nullptr
Sprite * pitchModeBarCurrent = nullptr
Sprite * altitudeModeBarCurrent = nullptr
Sprite * vsiModeBarCurrent = nullptr
bool speedPitchMode = false
bool autopilotEngaged = false
bool tvmEngaged = false
bool dorEngaged = false
int lateralMode = Bus::Afcs::LateralModes::LateralMode_Off
int pitchMode = Bus::Afcs::VerticalModes::VerticalMode_Off
int altitudeMode = Bus::Afcs::VerticalModes::VerticalMode_Off
bool verticalSpeedMode = false
bool localizerArmed = false
bool glideslopeArmed = false
float speedModeTimer = 0.0f
float autopilotTimer = 0.0f
float thrustModeTimer = 0.0f
float lateralModeTimer = 0.0f
float lateralModeStandbyTimer = 0.0f
float glideslopeModeStandbyTimer = 0.0f
float pitchModeTimer = 0.0f
float altitudeModeTimer = 0.0f
float vsiModeTimer = 0.0f
float lampTest = 0.0f
DWORD speedModeTextColor = 0xFF00FF00
DWORD speedModeBackColor = 0xFF000000
DWORD autopilotTextColor = 0xFF00FF00
DWORD autopilotBackColor = 0xFF000000
DWORD thrustModeTextColor = 0xFF00FF00
DWORD thrustModeBackColor = 0xFF000000
DWORD lateralModeTextColor = 0xFF00FF00
DWORD lateralModeBackColor = 0xFF000000
DWORD lateralModeStandbyTextColor = 0xFF00FF00
DWORD lateralModeStandbyBackColor = 0xFF000000
DWORD glideslopeModeStandbyTextColor = 0xFF00FF00
DWORD glideslopeModeStandbyBackColor = 0xFF000000
DWORD pitchModeTextColor = 0xFF00FF00
DWORD pitchModeBackColor = 0xFF000000
DWORD altitudeModeTextColor = 0xFF00FF00
DWORD altitudeModeBackColor = 0xFF000000
DWORD vsiModeTextColor = 0xFF00FF00
DWORD vsiModeBackColor = 0xFF000000
WCHAR lateralModeText [8] = { 0 }
WCHAR thrustModeText [8] = { 0 }
double dorRcsUntil =-1
WCHAR pitchModeText [8] = { 0 }
WCHAR altitudeModeText [8] = { L"M" }
WCHAR speedStr [8] = { 0 }
WCHAR vsiStr [8] = { 0 }
WCHAR altStr [16] = { 0 }

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 390 of file Instrument.h.

Constructor & Destructor Documentation

◆ FMA2()

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

Definition at line 36 of file FMA2.cpp.

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

Member Function Documentation

◆ FrameMove()

void FMA2::FrameMove ( float fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 140 of file FMA2.cpp.

Here is the call graph for this function:

◆ Render()

void FMA2::Render ( )
overridevirtual

Implements Instrument.

Definition at line 64 of file FMA2.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ altitudeMode

int FMA2::altitudeMode = Bus::Afcs::VerticalModes::VerticalMode_Off
private

Definition at line 407 of file Instrument.h.

◆ altitudeModeBackColor

DWORD FMA2::altitudeModeBackColor = 0xFF000000
private

Definition at line 436 of file Instrument.h.

◆ altitudeModeBarCurrent

Sprite* FMA2::altitudeModeBarCurrent = nullptr
private

Definition at line 399 of file Instrument.h.

◆ altitudeModeText

WCHAR FMA2::altitudeModeText[8] = { L"M" }
private

Definition at line 443 of file Instrument.h.

◆ altitudeModeTextColor

DWORD FMA2::altitudeModeTextColor = 0xFF00FF00
private

Definition at line 435 of file Instrument.h.

◆ altitudeModeTimer

float FMA2::altitudeModeTimer = 0.0f
private

Definition at line 418 of file Instrument.h.

◆ altStr

WCHAR FMA2::altStr[16] = { 0 }
private

Definition at line 446 of file Instrument.h.

◆ autopilotBackColor

DWORD FMA2::autopilotBackColor = 0xFF000000
private

Definition at line 424 of file Instrument.h.

◆ autopilotBarCurrent

Sprite* FMA2::autopilotBarCurrent = nullptr
private

Definition at line 393 of file Instrument.h.

◆ autopilotEngaged

bool FMA2::autopilotEngaged = false
private

Definition at line 402 of file Instrument.h.

◆ autopilotTextColor

DWORD FMA2::autopilotTextColor = 0xFF00FF00
private

Definition at line 423 of file Instrument.h.

◆ autopilotTimer

float FMA2::autopilotTimer = 0.0f
private

Definition at line 412 of file Instrument.h.

◆ dorEngaged

bool FMA2::dorEngaged = false
private

Definition at line 404 of file Instrument.h.

◆ dorRcsUntil

double FMA2::dorRcsUntil =-1
private

Definition at line 441 of file Instrument.h.

◆ glideslopeArmed

bool FMA2::glideslopeArmed = false
private

Definition at line 410 of file Instrument.h.

◆ glideslopeModeBarStandby

Sprite* FMA2::glideslopeModeBarStandby = nullptr
private

Definition at line 397 of file Instrument.h.

◆ glideslopeModeStandbyBackColor

DWORD FMA2::glideslopeModeStandbyBackColor = 0xFF000000
private

Definition at line 432 of file Instrument.h.

◆ glideslopeModeStandbyTextColor

DWORD FMA2::glideslopeModeStandbyTextColor = 0xFF00FF00
private

Definition at line 431 of file Instrument.h.

◆ glideslopeModeStandbyTimer

float FMA2::glideslopeModeStandbyTimer = 0.0f
private

Definition at line 416 of file Instrument.h.

◆ lampTest

float FMA2::lampTest = 0.0f
private

Definition at line 420 of file Instrument.h.

◆ lateralMode

int FMA2::lateralMode = Bus::Afcs::LateralModes::LateralMode_Off
private

Definition at line 405 of file Instrument.h.

◆ lateralModeBackColor

DWORD FMA2::lateralModeBackColor = 0xFF000000
private

Definition at line 428 of file Instrument.h.

◆ lateralModeBarCurrent

Sprite* FMA2::lateralModeBarCurrent = nullptr
private

Definition at line 395 of file Instrument.h.

◆ lateralModeBarStandby

Sprite* FMA2::lateralModeBarStandby = nullptr
private

Definition at line 396 of file Instrument.h.

◆ lateralModeStandbyBackColor

DWORD FMA2::lateralModeStandbyBackColor = 0xFF000000
private

Definition at line 430 of file Instrument.h.

◆ lateralModeStandbyTextColor

DWORD FMA2::lateralModeStandbyTextColor = 0xFF00FF00
private

Definition at line 429 of file Instrument.h.

◆ lateralModeStandbyTimer

float FMA2::lateralModeStandbyTimer = 0.0f
private

Definition at line 415 of file Instrument.h.

◆ lateralModeText

WCHAR FMA2::lateralModeText[8] = { 0 }
private

Definition at line 439 of file Instrument.h.

◆ lateralModeTextColor

DWORD FMA2::lateralModeTextColor = 0xFF00FF00
private

Definition at line 427 of file Instrument.h.

◆ lateralModeTimer

float FMA2::lateralModeTimer = 0.0f
private

Definition at line 414 of file Instrument.h.

◆ localizerArmed

bool FMA2::localizerArmed = false
private

Definition at line 409 of file Instrument.h.

◆ pitchMode

Definition at line 406 of file Instrument.h.

◆ pitchModeBackColor

DWORD FMA2::pitchModeBackColor = 0xFF000000
private

Definition at line 434 of file Instrument.h.

◆ pitchModeBarCurrent

Sprite* FMA2::pitchModeBarCurrent = nullptr
private

Definition at line 398 of file Instrument.h.

◆ pitchModeText

WCHAR FMA2::pitchModeText[8] = { 0 }
private

Definition at line 442 of file Instrument.h.

◆ pitchModeTextColor

DWORD FMA2::pitchModeTextColor = 0xFF00FF00
private

Definition at line 433 of file Instrument.h.

◆ pitchModeTimer

float FMA2::pitchModeTimer = 0.0f
private

Definition at line 417 of file Instrument.h.

◆ speedModeBackColor

DWORD FMA2::speedModeBackColor = 0xFF000000
private

Definition at line 422 of file Instrument.h.

◆ speedModeBarCurrent

Sprite* FMA2::speedModeBarCurrent = nullptr
private

Definition at line 392 of file Instrument.h.

◆ speedModeTextColor

DWORD FMA2::speedModeTextColor = 0xFF00FF00
private

Definition at line 421 of file Instrument.h.

◆ speedModeTimer

float FMA2::speedModeTimer = 0.0f
private

Definition at line 411 of file Instrument.h.

◆ speedPitchMode

bool FMA2::speedPitchMode = false
private

Definition at line 401 of file Instrument.h.

◆ speedStr

WCHAR FMA2::speedStr[8] = { 0 }
private

Definition at line 444 of file Instrument.h.

◆ thrustModeBackColor

DWORD FMA2::thrustModeBackColor = 0xFF000000
private

Definition at line 426 of file Instrument.h.

◆ thrustModeBarCurrent

Sprite* FMA2::thrustModeBarCurrent = nullptr
private

Definition at line 394 of file Instrument.h.

◆ thrustModeText

WCHAR FMA2::thrustModeText[8] = { 0 }
private

Definition at line 440 of file Instrument.h.

◆ thrustModeTextColor

DWORD FMA2::thrustModeTextColor = 0xFF00FF00
private

Definition at line 425 of file Instrument.h.

◆ thrustModeTimer

float FMA2::thrustModeTimer = 0.0f
private

Definition at line 413 of file Instrument.h.

◆ tvmEngaged

bool FMA2::tvmEngaged = false
private

Definition at line 403 of file Instrument.h.

◆ verticalSpeedMode

bool FMA2::verticalSpeedMode = false
private

Definition at line 408 of file Instrument.h.

◆ vsiModeBackColor

DWORD FMA2::vsiModeBackColor = 0xFF000000
private

Definition at line 438 of file Instrument.h.

◆ vsiModeBarCurrent

Sprite* FMA2::vsiModeBarCurrent = nullptr
private

Definition at line 400 of file Instrument.h.

◆ vsiModeTextColor

DWORD FMA2::vsiModeTextColor = 0xFF00FF00
private

Definition at line 437 of file Instrument.h.

◆ vsiModeTimer

float FMA2::vsiModeTimer = 0.0f
private

Definition at line 419 of file Instrument.h.

◆ vsiStr

WCHAR FMA2::vsiStr[8] = { 0 }
private

Definition at line 445 of file Instrument.h.


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