Avionics
Dropship Simulator
AltitudeTape Class Reference

Altitude. More...

#include <Instrument.h>

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

Public Member Functions

 AltitudeTape (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 alt = 0.0f
 
UINT font = 0
 
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

Altitude.

Definition at line 130 of file Instrument.h.

Constructor & Destructor Documentation

◆ AltitudeTape()

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

Definition at line 3 of file AltitudeTape.cpp.

Member Function Documentation

◆ Initialize()

void AltitudeTape::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 AltitudeTape.cpp.

Here is the call graph for this function:

◆ Render()

void AltitudeTape::Render ( float  fElapsed)
overridevirtual

34.999 (34)
35.000 (35) 35.001 (35)

Implements Instrument.

Definition at line 28 of file AltitudeTape.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ alt

float AltitudeTape::alt = 0.0f
private

Definition at line 137 of file Instrument.h.

◆ font

UINT AltitudeTape::font = 0
private

Definition at line 138 of file Instrument.h.

◆ modulateKm

float AltitudeTape::modulateKm = 0.0f
private

Definition at line 139 of file Instrument.h.

◆ sprite

Sprite AltitudeTape::sprite
private

Definition at line 133 of file Instrument.h.

◆ textureFile

std::string AltitudeTape::textureFile
private

Definition at line 134 of file Instrument.h.

◆ tvpitchscale

float AltitudeTape::tvpitchscale = 0.0f
private

Definition at line 135 of file Instrument.h.

◆ vertoffset

float AltitudeTape::vertoffset = 0.0f
private

Definition at line 136 of file Instrument.h.


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