All Classes Functions
Public Member Functions | Static Public Member Functions | List of all members
LaunchMFD Class Reference

Main MFD class. More...

#include <LaunchMFD.h>

Public Member Functions

 LaunchMFD (DWORD w, DWORD h, VESSEL *vessel, PluginLaunchMFD *plugin)
 Default constructor.
 ~LaunchMFD ()
 Destructor.
char * ButtonLabel (int bt)
int ButtonMenu (const MFDBUTTONMENU **menu) const
MFD_RETURN_TYPE Update (MyDC myDC)
bool ConsumeKeyBuffered (DWORD key)
bool ConsumeKeyImmediate (char *kstate)
bool ConsumeButton (int bt, int event)
EnjoLib::MFDGoodies::Sound & GetSound ()
 Returns Sound class.
MFDDataLaunchMFDGetData ()
 Returns MFDData class.
const MFDDataLaunchMFDGetData () const
void WriteStatus (FILEHANDLE scn) const
void ReadStatus (FILEHANDLE scn)
bool ShouldDrawHUD () const
void DrawHUD (int mode, const HUDPAINTSPEC *hps, MyDC hDC)
void SwitchButtonsPage ()
void SwitchMode ()
void SwitchAutopilot ()
void SwitchPitchGuidance ()
void SwitchOffplaneCorrection ()
void SwitchAzimuth ()
void SwitchGreatCircleUse ()
void SwitchGreatCircleTrack ()
void SwitchGreatCircleLines ()
void SwitchHUD ()
void SwitchSound ()
void GreatCircleZoomIn ()
void GreatCircleZoomOut ()
void GreatCircleIncreasePlotPrecision ()
void GreatCircleDecreasePlotPrecision ()
void IncreaseInclination ()
void DecreaseInclination ()
void IncreaseInclinationFactor ()
void DecreaseInclinationFactor ()
void DefaultAction ()
void OpenDialogTarget ()
void OpenDialogAltitude ()
void OpenDialogPIDXY ()
void OpenDialogPIDBank ()
void DoNothing ()

Static Public Member Functions

static int MsgProc (UINT msg, UINT mfd, WPARAM wparam, LPARAM lparam)

Detailed Description

Main MFD class.

Main MFD class. Constructed each time the MFD is opened or vessel is changed. Therefore, if you need to store the values of this and other vessels, you need to use and external data structure, that stores these values. Here, it's called MFDData.

Constructor & Destructor Documentation

LaunchMFD::LaunchMFD ( DWORD  w,
DWORD  h,
VESSEL *  vessel,
PluginLaunchMFD plugin 
)

Default constructor.

Constructs the MFD.

Parameters
w- MFD's width
h- MFD's height
vesselfor which the MFD has been opened
plugincontains configuration and other data neede by the MFD

Member Function Documentation

MFDDataLaunchMFD * LaunchMFD::GetData ( )

Returns MFDData class.

Returns a reference to the MFDData class, needed outside the MFD's context

  • for example, in callbacks.
EnjoLib::MFDGoodies::Sound & LaunchMFD::GetSound ( )

Returns Sound class.

Returns a reference to the Sound class, needed outside the MFD's context
  • for example, in callbacks.

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