?? simpleinstrumentpanelapp.h
字號:
///////////////////////////////////////////////////////////////////////////////
// This file is generated by GL Studio from SimpleInstrumentPanel.gls. DO NOT EDIT.
// To modify, run "glstudio SimpleInstrumentPanel.gls" edit, and save the file.
// Then select Code/Generate All.
///////////////////////////////////////////////////////////////////////////////
#ifndef _SimpleInstrumentPanelApp_h_
#define _SimpleInstrumentPanelApp_h_
#include <FL/gl.h>
#include <FL/Fl.H>
#include "gls_include.h"
#include "display.h"
#include "display_frame.h"
#include "truetype.h"
#include "initialize_library.h"
#include "callback_caller.h"
// Additional Run-time Fonts
// Fonts referenced by design
#include "glpolygon.h"
#include "gls_knob.h"
#include "gls_switch.h"
#include "component_base.h"
#include "_ADI.h"
#include "_Altimeter.h"
#include "gls_display_frame.h"
//////////////////// Provides support for creating DLLs ////////////////////////
#if (defined(GLSGEN_EXPORT_SimpleInstrumentPanelClass) || \
defined(GLSGEN_IMPORT_SimpleInstrumentPanelClass) || \
defined(GLS_EXPORT_GENERATED) || \
defined(GLS_IMPORT_GENERATED)) \
&& defined(_MSC_VER)
# if defined(GLSGEN_EXPORT_SimpleInstrumentPanelClass) || defined(GLS_EXPORT_GENERATED)
# define GLSGEN_SimpleInstrumentPanelClass_EXPORT __declspec(dllexport)
# else
# define GLSGEN_SimpleInstrumentPanelClass_EXPORT __declspec(dllimport)
# endif
#else
# define GLSGEN_SimpleInstrumentPanelClass_EXPORT
#endif
///////////////////////////////////////////////////////////////////////////////
//////////////////// User Code from section: "file SimpleInstrumentPanelApp.h" ////////////
///////////////////////////////////////////////////////////////////////////////
namespace disti
{
class SimpleInstrumentPanelClass : public glsDisplayFrame
{
public:
SimpleInstrumentPanelClass(const char *name,int width,int height);
GLSGEN_SimpleInstrumentPanelClass_EXPORT void CreateObjects(void);
void Create(void);
typedef CallbackMethodCallerTemplate< SimpleInstrumentPanelClass > CallbackMethodCaller;
// Textures
static unsigned char * rgb_data_0[];
static glsInlineImage image_data_0;
static unsigned char * rgb_data_1[];
static glsInlineImage image_data_1;
// Geometry
private:
protected:
public:
GLPolygon *panel;
GlsKnob *rollGlsKnob;
GLPolygon *roll;
GlsKnob *pitchGlsKnob;
GLPolygon *pitch;
GlsKnob *altitudeGlsKnob;
GLPolygon *altitude;
GlsSwitch *testValuesOnGlsSwitch;
GLPolygon *testValuesOn;
GLPolygon *testValuesOff;
GlsSwitch *mfdModeGlsSwitch;
GLPolygon *mfdModeHSI;
GLPolygon *mfdModeHVR;
GLPolygon *mfdModeTest;
ComponentBase *mfdDevice;
_ADIClass *adiDevice;
_AltimeterClass *altimeterDevice;
//////////////////// User Code from section: "Class Declaration" //////////////
///////////////////////////////////////////////////////////////////////////////
// Object generated declarations
private:
// Variables
float _newRoll;
float _newPitch;
float _newAltitude;
std::string _newMFDMode;
bool _testing;
// Object generated declarations
public:
// Methods
virtual GLSGEN_SimpleInstrumentPanelClass_EXPORT void Initialize ();
virtual GLSGEN_SimpleInstrumentPanelClass_EXPORT void Calculate (double time);
virtual GLSGEN_SimpleInstrumentPanelClass_EXPORT void Testing (const bool& );
virtual GLSGEN_SimpleInstrumentPanelClass_EXPORT bool Testing ();
// Object generated declarations
GLSGEN_SimpleInstrumentPanelClass_EXPORT int rollGlsKnob_ObjectCallback(GlsKnob*, DisplayEvent*);
GLSGEN_SimpleInstrumentPanelClass_EXPORT int pitchGlsKnob_ObjectCallback(GlsKnob*, DisplayEvent*);
GLSGEN_SimpleInstrumentPanelClass_EXPORT int altitudeGlsKnob_ObjectCallback(GlsKnob*, DisplayEvent*);
GLSGEN_SimpleInstrumentPanelClass_EXPORT int testValuesOnGlsSwitch_ObjectCallback(GlsSwitch*, DisplayEvent*);
GLSGEN_SimpleInstrumentPanelClass_EXPORT int mfdModeGlsSwitch_ObjectCallback(GlsSwitch*, DisplayEvent*);
/** Get the details of the Cpp Interface
* The actual interface is exposed in compiled code.
* \param addToThisList A list to add to and then return. Creates a new one if NULL.
* \return A templated list.
* The caller must call the corresponding free method to
* safely free the memory.
*/
virtual GLSGEN_SimpleInstrumentPanelClass_EXPORT InterfaceListType* GetCppInterfaceDescription(InterfaceListType* addToThisList= NULL );
virtual GLSGEN_SimpleInstrumentPanelClass_EXPORT void GetCppInterfaceDescriptionFree(InterfaceListType* array);
};
} //namespace disti
extern disti::SimpleInstrumentPanelClass *simpleInstrumentPanel;
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -