Avionics
Dropship Simulator
ITTIndicator Class Reference

ITT. More...

#include <Instrument.h>

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

Public Member Functions

 ITTIndicator (int prmX, int prmY, float prmXScale, float prmYScale, std::string prmGuid1, std::string prmGuid2, int prmOrdinal)
 
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 needle
 
Text digital
 
Text ignition
 
float itt = 2.0f
 
float * ignitorAGetFloatPtr = nullptr
 
float * ittGetFloatPtr = nullptr
 
int engineOrdinal = -1
 
std::string guid1
 
std::string guid2
 

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

ITT.

Definition at line 228 of file Instrument.h.

Constructor & Destructor Documentation

◆ ITTIndicator()

ITTIndicator::ITTIndicator ( int  prmX,
int  prmY,
float  prmXScale,
float  prmYScale,
std::string  prmGuid1,
std::string  prmGuid2,
int  prmOrdinal 
)

Definition at line 3 of file ITTIndicator.cpp.

Member Function Documentation

◆ Initialize()

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

Reimplemented from Instrument.

Definition at line 10 of file ITTIndicator.cpp.

Here is the call graph for this function:

◆ Render()

void ITTIndicator::Render ( float  fElapsed)
overridevirtual

need to implement

Implements Instrument.

Definition at line 61 of file ITTIndicator.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ digital

Text ITTIndicator::digital
private

Definition at line 233 of file Instrument.h.

◆ engineOrdinal

int ITTIndicator::engineOrdinal = -1
private

Definition at line 240 of file Instrument.h.

◆ guid1

std::string ITTIndicator::guid1
private

Definition at line 241 of file Instrument.h.

◆ guid2

std::string ITTIndicator::guid2
private

Definition at line 242 of file Instrument.h.

◆ ignition

Text ITTIndicator::ignition
private

Definition at line 234 of file Instrument.h.

◆ ignitorAGetFloatPtr

float* ITTIndicator::ignitorAGetFloatPtr = nullptr
private

Definition at line 237 of file Instrument.h.

◆ itt

float ITTIndicator::itt = 2.0f
private

Definition at line 235 of file Instrument.h.

◆ ittGetFloatPtr

float* ITTIndicator::ittGetFloatPtr = nullptr
private

Definition at line 239 of file Instrument.h.

◆ needle

Sprite ITTIndicator::needle
private

Definition at line 231 of file Instrument.h.


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