#include <Instrument.h>
Inherited by AlertMessageStack, Altimeter, AttitudeIndicator, CargoManagement, CarRadio, Compass, Diagnostics, ElevatorTrim, EngineBar, EngineBox, Flaps, FMA, HeadlightBox, HeadlightIcon, IndicatedAirSpeed, Intermedia, LandingGear, LandingStrut, LineInput, MovingMap, Orbit, RadioAltimeter, Scanner, StreetView, TCASOverlay, and Wind.
|
| 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, D3DXCOLOR color, int font=-1, std::string elementName="", int width=0, int height=0) |
|
virtual void | Render ()=0 |
|
virtual void | FrameMove (float fElapsed) |
|
virtual bool | HandleKeyPress (short key, bool shift) |
|
virtual void | OnPageChanged () |
|
Definition at line 8 of file Instrument.h.
◆ Instrument()
Instrument::Instrument |
( |
int |
prmX, |
|
|
int |
prmY, |
|
|
float |
prmXScale, |
|
|
float |
prmYScale, |
|
|
Bus * |
prmBus, |
|
|
Logger * |
prmLogger, |
|
|
DeviceObject * |
prmDevice, |
|
|
std::vector< Font *> |
prmFonts |
|
) |
| |
|
inline |
◆ DrawText()
void Instrument::DrawText |
( |
const WCHAR * |
str, |
|
|
int |
relativeX, |
|
|
int |
relativeY, |
|
|
float |
prmZ, |
|
|
int |
flags, |
|
|
D3DXCOLOR |
color, |
|
|
int |
font = -1 , |
|
|
std::string |
elementName = "" , |
|
|
int |
width = 0 , |
|
|
int |
height = 0 |
|
) |
| |
|
inline |
◆ FrameMove()
virtual void Instrument::FrameMove |
( |
float |
fElapsed | ) |
|
|
inlinevirtual |
Reimplemented in TCASOverlay, Compass, Altimeter, RadioAltimeter, IndicatedAirSpeed, StreetView, AttitudeIndicator, CarRadio, Orbit, FMA, Wind, MovingMap, Flaps, ElevatorTrim, EngineBar, EngineBox, and LineInput.
Definition at line 81 of file Instrument.h.
◆ HandleKeyPress()
virtual bool Instrument::HandleKeyPress |
( |
short |
key, |
|
|
bool |
shift |
|
) |
| |
|
inlinevirtual |
◆ OnPageChanged()
virtual void Instrument::OnPageChanged |
( |
| ) |
|
|
inlinevirtual |
◆ Render()
virtual void Instrument::Render |
( |
| ) |
|
|
pure virtual |
Implemented in TCASOverlay, Compass, Altimeter, RadioAltimeter, IndicatedAirSpeed, StreetView, AttitudeIndicator, CarRadio, Orbit, FMA, Wind, MovingMap, AlertMessageStack, Flaps, ElevatorTrim, HeadlightIcon, HeadlightBox, EngineBar, EngineBox, LandingGear, LandingStrut, Scanner, Diagnostics, LineInput, Intermedia, and CargoManagement.
◆ bus
Bus* Instrument::bus = nullptr |
|
protected |
◆ defaultFont
UINT Instrument::defaultFont = 0 |
|
protected |
◆ fonts
std::vector<Font*> Instrument::fonts |
|
private |
◆ logger
Logger* Instrument::logger = nullptr |
|
protected |
◆ pDevice
◆ showMenu
bool Instrument::showMenu = false |
|
protected |
◆ uiMenuColumn
int Instrument::uiMenuColumn = -1 |
|
protected |
◆ uiRow
int Instrument::uiRow = 0 |
|
protected |
- Todo:
- I think these are only used in the cargo manifest so far!?
Definition at line 23 of file Instrument.h.
◆ xScale
float Instrument::xScale = 1.0f |
|
protected |
◆ yScale
float Instrument::yScale = 1.0f |
|
protected |
The documentation for this class was generated from the following file: