All Classes Functions Typedefs
Public Member Functions | List of all members
EnjoLib::MFDGoodies::IMFDDrawsHUD Class Reference

Interface for MFD that is supposed to draw on HUD. More...

#include <IMFDDrawsHUD.hpp>

Inheritance diagram for EnjoLib::MFDGoodies::IMFDDrawsHUD:
MyMFDMultipleVessels

Public Member Functions

 IMFDDrawsHUD ()
 Ctor.
virtual ~IMFDDrawsHUD ()
 Dtor.
virtual bool ShouldDrawHUD () const =0
 Should the MFD draw on HUD now?
virtual void DrawHUD (int mode, const HUDPAINTSPEC *hps, oapi::Sketchpad *skp)=0
 Provides drawing context for the MFD.
virtual void DrawHUD (int mode, const HUDPAINTSPEC *hps, HDC hDC)
 Only for backward compatibility (Orbiter 2006), therefore may be left unimplemented.

Detailed Description

Interface for MFD that is supposed to draw on HUD.

Make this a base class of your MFD

Member Function Documentation

void IMFDDrawsHUD::DrawHUD ( int  mode,
const HUDPAINTSPEC *  hps,
HDC  hDC 
)
virtual

Only for backward compatibility (Orbiter 2006), therefore may be left unimplemented.

If you need to provide backward compatibility, the code executed by this method should be equal to the second drawing method.

virtual bool EnjoLib::MFDGoodies::IMFDDrawsHUD::ShouldDrawHUD ( ) const
pure virtual

Should the MFD draw on HUD now?

Could return false, for example when the user switched drawing on HUD through an MFD button

Implemented in MyMFDMultipleVessels.


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