#include <Instrument.h>
Inherited by AlertMessageStack, Altimeter, Altimeter2, AttitudeIndicator, AttitudeIndicator2, CarRadio, CargoManagement, Compass, ContactList, Diagnostics, ElevatorTrim, EngineBar, EngineBox, FMA, FMA2, Flaps, HeadlightBox, HeadlightIcon, IndicatedAirSpeed, IndicatedAirSpeed2, 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, RiseMath::Color color, int font=-1, std::string elementName="", int width=0, int height=0) const |
| virtual void | Render ()=0 |
| virtual void | FrameMove (float fElapsed) |
| virtual bool | HandleKeyPress (short key, bool shift) |
| virtual bool | UpdateKeyRepeat (const unsigned char *keys, bool shift, float elapsed) |
| virtual void | OnPageChanged () |
Definition at line 12 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, |
|
|
RiseMath::Color | color, |
|
|
int | font = -1, |
|
|
std::string | elementName = "", |
|
|
int | width = 0, |
|
|
int | height = 0 ) const |
|
inline |
◆ FrameMove()
| virtual void Instrument::FrameMove |
( |
float | fElapsed | ) |
|
|
inlinevirtual |
Reimplemented in Altimeter2, Altimeter, AttitudeIndicator2, AttitudeIndicator, CarRadio, Compass, ContactList, ElevatorTrim, EngineBar, EngineBox, Flaps, FMA2, FMA, IndicatedAirSpeed2, IndicatedAirSpeed, LineInput, MovingMap, Orbit, RadioAltimeter, Scanner, StreetView, TCASOverlay, and Wind.
Definition at line 92 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 AlertMessageStack, Altimeter2, Altimeter, AttitudeIndicator2, AttitudeIndicator, CargoManagement, CarRadio, Compass, ContactList, Diagnostics, ElevatorTrim, EngineBar, EngineBox, Flaps, FMA2, FMA, HeadlightBox, HeadlightIcon, IndicatedAirSpeed2, IndicatedAirSpeed, Intermedia, LandingGear, LandingStrut, LineInput, MovingMap, Orbit, RadioAltimeter, Scanner, StreetView, TCASOverlay, and Wind.
◆ UpdateKeyRepeat()
| virtual bool Instrument::UpdateKeyRepeat |
( |
const unsigned char * | keys, |
|
|
bool | shift, |
|
|
float | elapsed ) |
|
inlinevirtual |
◆ bus
| Bus* Instrument::bus = nullptr |
|
protected |
◆ cacheFixedText
| bool Instrument::cacheFixedText = false |
|
protected |
◆ defaultFont
| UINT Instrument::defaultFont = 0 |
|
protected |
◆ fonts
| std::vector<Font*> Instrument::fonts |
|
private |
◆ logger
| Logger* Instrument::logger = nullptr |
|
protected |
◆ pDevice
◆ profileName
| std::string Instrument::profileName = "Instrument" |
◆ 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 29 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: