Avionics
Dropship Simulator
AttitudeIndicator Class Reference

AI. More...

#include <Instrument.h>

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

Public Member Functions

 AttitudeIndicator (int prmX, int prmY, int prmWidth, int prmHeight, std::string prmTextureFile)
 
void Initialize (Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
 
void Render (float fElapsed) override
 
- Public Member Functions inherited from Instrument
 Instrument (int prmX, int prmY, float prmXScale, float prmYScale)
 
void DrawText (const WCHAR *str, int x, int y, int flags, D3DXCOLOR color, int font, std::string elementName)
 
virtual ~Instrument ()
 

Private Attributes

Sprite sprite
 
Sprite commandBars
 
Sprite glideslope
 
Sprite glideslopebug
 
Sprite failflag
 
Sprite localizer
 
std::string textureFile
 
float tvpitchscale = 0.0f
 
float cbpitchscale = 0.0f
 
float tvvertoffset = 0.0f
 
float cbvertoffset = 0.0f
 
float tvrange = 0.0f
 
float pitch = 0.0f
 
float roll = 0.0f
 

Additional Inherited Members

- Protected Attributes inherited from Instrument
Busbus = nullptr
 
Loggerlogger = nullptr
 
int screenWidth = 0
 
int screenHeight = 0
 
DEVICE_OBJECTpDevice = nullptr
 
std::vector< Font > * fonts = nullptr
 
bool flip = false
 
int x
 
int y
 
int width = 0
 
int height = 0
 
float xScale
 
float yScale
 
int standardWidth = 0
 
int standardHeight = 0
 

Detailed Description

AI.

Definition at line 108 of file Instrument.h.

Constructor & Destructor Documentation

◆ AttitudeIndicator()

AttitudeIndicator::AttitudeIndicator ( int  prmX,
int  prmY,
int  prmWidth,
int  prmHeight,
std::string  prmTextureFile 
)

Definition at line 3 of file AttitudeIndicator.cpp.

Member Function Documentation

◆ Initialize()

void AttitudeIndicator::Initialize ( Bus prmBus,
Logger prmLogger,
DEVICE_OBJECT prmDevice,
int  prmScreenWidth,
int  prmScreenHeight,
std::vector< Font > *  prmFonts,
bool  prmFlip 
)
overridevirtual

NEED TO MAKE CONFIGURABLE

Reimplemented from Instrument.

Definition at line 10 of file AttitudeIndicator.cpp.

Here is the call graph for this function:

◆ Render()

void AttitudeIndicator::Render ( float  fElapsed)
overridevirtual

Implements Instrument.

Definition at line 63 of file AttitudeIndicator.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ cbpitchscale

float AttitudeIndicator::cbpitchscale = 0.0f
private

Definition at line 118 of file Instrument.h.

◆ cbvertoffset

float AttitudeIndicator::cbvertoffset = 0.0f
private

Definition at line 119 of file Instrument.h.

◆ commandBars

Sprite AttitudeIndicator::commandBars
private

Definition at line 112 of file Instrument.h.

◆ failflag

Sprite AttitudeIndicator::failflag
private

Definition at line 115 of file Instrument.h.

◆ glideslope

Sprite AttitudeIndicator::glideslope
private

Definition at line 113 of file Instrument.h.

◆ glideslopebug

Sprite AttitudeIndicator::glideslopebug
private

Definition at line 114 of file Instrument.h.

◆ localizer

Sprite AttitudeIndicator::localizer
private

Definition at line 116 of file Instrument.h.

◆ pitch

float AttitudeIndicator::pitch = 0.0f
private

Definition at line 121 of file Instrument.h.

◆ roll

float AttitudeIndicator::roll = 0.0f
private

Definition at line 121 of file Instrument.h.

◆ sprite

Sprite AttitudeIndicator::sprite
private

Definition at line 111 of file Instrument.h.

◆ textureFile

std::string AttitudeIndicator::textureFile
private

Definition at line 117 of file Instrument.h.

◆ tvpitchscale

float AttitudeIndicator::tvpitchscale = 0.0f
private

Definition at line 118 of file Instrument.h.

◆ tvrange

float AttitudeIndicator::tvrange = 0.0f
private

Definition at line 120 of file Instrument.h.

◆ tvvertoffset

float AttitudeIndicator::tvvertoffset = 0.0f
private

Definition at line 119 of file Instrument.h.


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