Avionics
Dropship Simulator
IndicatedAirSpeedTape Class Reference

Forward definitions for the instruments are below. More...

#include <Instrument.h>

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

Public Member Functions

 IndicatedAirSpeedTape (int prmX, int prmY, int prmWidth, int prmHeight, std::string prmTextureFile, float prmModulateKm)
 
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
 
std::string textureFile
 
float tvpitchscale = 0.0f
 
float vertoffset = 0.0f
 
float tvrange = 0.0f
 
float ias = 0.0f
 
UINT font = 1
 
float modulateKm = 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

Forward definitions for the instruments are below.

IAS

Definition at line 89 of file Instrument.h.

Constructor & Destructor Documentation

◆ IndicatedAirSpeedTape()

IndicatedAirSpeedTape::IndicatedAirSpeedTape ( int  prmX,
int  prmY,
int  prmWidth,
int  prmHeight,
std::string  prmTextureFile,
float  prmModulateKm 
)

Definition at line 3 of file IndicatedAirSpeedTape.cpp.

Member Function Documentation

◆ Initialize()

void IndicatedAirSpeedTape::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 11 of file IndicatedAirSpeedTape.cpp.

Here is the call graph for this function:

◆ Render()

void IndicatedAirSpeedTape::Render ( float  fElapsed)
overridevirtual

Implements Instrument.

Definition at line 31 of file IndicatedAirSpeedTape.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ font

UINT IndicatedAirSpeedTape::font = 1
private

Definition at line 98 of file Instrument.h.

◆ ias

float IndicatedAirSpeedTape::ias = 0.0f
private

Definition at line 97 of file Instrument.h.

◆ modulateKm

float IndicatedAirSpeedTape::modulateKm = 0.0f
private

Definition at line 99 of file Instrument.h.

◆ sprite

Sprite IndicatedAirSpeedTape::sprite
private

Definition at line 92 of file Instrument.h.

◆ textureFile

std::string IndicatedAirSpeedTape::textureFile
private

Definition at line 93 of file Instrument.h.

◆ tvpitchscale

float IndicatedAirSpeedTape::tvpitchscale = 0.0f
private

Definition at line 94 of file Instrument.h.

◆ tvrange

float IndicatedAirSpeedTape::tvrange = 0.0f
private

Definition at line 96 of file Instrument.h.

◆ vertoffset

float IndicatedAirSpeedTape::vertoffset = 0.0f
private

Definition at line 95 of file Instrument.h.


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