?? _altimeter.h
字號:
///////////////////////////////////////////////////////////////////////////////
// This file is generated by GL Studio from _Altimeter.gls. DO NOT EDIT.
// To modify, run "glstudio _Altimeter.gls" edit, and save the file.
// Then select Code/Generate All.
///////////////////////////////////////////////////////////////////////////////
#ifndef __Altimeter_h_
#define __Altimeter_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 "group.h"
#include "glpolygon.h"
#include "gls_knob.h"
#include "gls_switch.h"
#include "component_base.h"
//////////////////// Provides support for creating DLLs ////////////////////////
#if (defined(GLSGEN_EXPORT__AltimeterClass) || \
defined(GLSGEN_IMPORT__AltimeterClass) || \
defined(GLS_EXPORT_GENERATED) || \
defined(GLS_IMPORT_GENERATED)) \
&& defined(_MSC_VER)
# if defined(GLSGEN_EXPORT__AltimeterClass) || defined(GLS_EXPORT_GENERATED)
# define GLSGEN__AltimeterClass_EXPORT __declspec(dllexport)
# else
# define GLSGEN__AltimeterClass_EXPORT __declspec(dllimport)
# endif
#else
# define GLSGEN__AltimeterClass_EXPORT
#endif
///////////////////////////////////////////////////////////////////////////////
//////////////////// User Code from section: "file _Altimeter.h" ////////////
#include "glsutil.h"
#include "glsutil_odometer.h"
///////////////////////////////////////////////////////////////////////////////
namespace disti
{
class _AltimeterClass : public ComponentBase
{
public:
GLSGEN__AltimeterClass_EXPORT _AltimeterClass(const char *name = NULL);
GLSGEN__AltimeterClass_EXPORT void CreateObjects(void);
typedef CallbackMethodCallerTemplate< _AltimeterClass > CallbackMethodCaller;
// Textures
static unsigned char * rgb_data_0[];
static glsInlineImage image_data_0;
// Geometry
private:
protected:
public:
Group *altDigits;
GLPolygon *altDigits_100;
GLPolygon *altDigits_1000;
GLPolygon *altDigits_10000;
Group *barDigits;
GLPolygon *barDigit_Hundredths;
GLPolygon *barDigit_One;
GLPolygon *barDigit_Ten;
GLPolygon *barDigit_Tenths;
GLPolygon *altimeterPanel;
GLPolygon *needle;
Group *altDigitTopShadowGroup;
GLPolygon *altDigitTopShadow;
GLPolygon *D126C117;
GLPolygon *D126E118;
GlsKnob *baroGlsKnob;
GLPolygon *baroKnob;
GlsSwitch *peGlsSwitch;
GLPolygon *elecSwitch;
GLPolygon *pneuSwitch;
Group *peFlag;
GLPolygon *pneuFlag;
GLPolygon *elecFlag;
//////////////////// User Code from section: "Class Declaration" //////////////
///////////////////////////////////////////////////////////////////////////////
// Object generated declarations
private:
// Variables
int NewVariable;
OdometerOperatorClass *barometric_display;
OdometerOperatorClass *altitude_display;
float _altitude;
float _barometer;
bool _testing;
// Object generated declarations
public:
// Methods
virtual GLSGEN__AltimeterClass_EXPORT void Initialize ();
virtual GLSGEN__AltimeterClass_EXPORT void Calculate (double time);
virtual GLSGEN__AltimeterClass_EXPORT DisplayObject* CloneObject (bool generateNames = false);
virtual GLSGEN__AltimeterClass_EXPORT void Altitude (const float& );
virtual GLSGEN__AltimeterClass_EXPORT float Altitude ();
virtual GLSGEN__AltimeterClass_EXPORT void Barometer (const float& );
virtual GLSGEN__AltimeterClass_EXPORT float Barometer ();
virtual GLSGEN__AltimeterClass_EXPORT void Testing (const bool& );
virtual GLSGEN__AltimeterClass_EXPORT bool Testing ();
// Object generated declarations
GLSGEN__AltimeterClass_EXPORT int baroGlsKnob_ObjectCallback(GlsKnob*, DisplayEvent*);
GLSGEN__AltimeterClass_EXPORT int peGlsSwitch_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__AltimeterClass_EXPORT InterfaceListType* GetCppInterfaceDescription(InterfaceListType* addToThisList= NULL );
virtual GLSGEN__AltimeterClass_EXPORT void GetCppInterfaceDescriptionFree(InterfaceListType* array);
};
} //namespace disti
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -