📄 _adi.h
字号:
///////////////////////////////////////////////////////////////////////////////
// This file is generated by GL Studio from _ADI.gls. DO NOT EDIT.
// To modify, run "glstudio _ADI.gls" edit, and save the file.
// Then select Code/Generate All.
///////////////////////////////////////////////////////////////////////////////
#ifndef __ADI_h_
#define __ADI_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 "gls_light_source.h"
#include "gls_sphere.h"
#include "glpolygon.h"
#include "component_base.h"
//////////////////// Provides support for creating DLLs ////////////////////////
#if (defined(GLSGEN_EXPORT__ADIClass) || \
defined(GLSGEN_IMPORT__ADIClass) || \
defined(GLS_EXPORT_GENERATED) || \
defined(GLS_IMPORT_GENERATED)) \
&& defined(_MSC_VER)
# if defined(GLSGEN_EXPORT__ADIClass) || defined(GLS_EXPORT_GENERATED)
# define GLSGEN__ADIClass_EXPORT __declspec(dllexport)
# else
# define GLSGEN__ADIClass_EXPORT __declspec(dllimport)
# endif
#else
# define GLSGEN__ADIClass_EXPORT
#endif
///////////////////////////////////////////////////////////////////////////////
//////////////////// User Code from section: "file _ADI.h" ////////////
#include "glsutil.h"
///////////////////////////////////////////////////////////////////////////////
namespace disti
{
class _ADIClass : public ComponentBase
{
public:
GLSGEN__ADIClass_EXPORT _ADIClass(const char *name = NULL);
GLSGEN__ADIClass_EXPORT void CreateObjects(void);
typedef CallbackMethodCallerTemplate< _ADIClass > 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:
GlsLightSource *light;
GlsSphere *adiSphere;
GLPolygon *adiPanel;
GLPolygon *horizonLine;
//////////////////// User Code from section: "Class Declaration" //////////////
///////////////////////////////////////////////////////////////////////////////
// Object generated declarations
// Object generated declarations
public:
// Methods
virtual GLSGEN__ADIClass_EXPORT void Initialize ();
virtual GLSGEN__ADIClass_EXPORT void Calculate (double time);
virtual GLSGEN__ADIClass_EXPORT DisplayObject* CloneObject (bool generateNames = false);
virtual GLSGEN__ADIClass_EXPORT void Pitch (const float& );
virtual GLSGEN__ADIClass_EXPORT float Pitch ();
virtual GLSGEN__ADIClass_EXPORT void Roll (const float& );
virtual GLSGEN__ADIClass_EXPORT float Roll ();
virtual GLSGEN__ADIClass_EXPORT void Testing (const bool& );
virtual GLSGEN__ADIClass_EXPORT bool Testing ();
// Variables
float _pitch;
float _roll;
bool _testing;
// Object generated declarations
/** 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__ADIClass_EXPORT InterfaceListType* GetCppInterfaceDescription(InterfaceListType* addToThisList= NULL );
virtual GLSGEN__ADIClass_EXPORT void GetCppInterfaceDescriptionFree(InterfaceListType* array);
};
} //namespace disti
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -