qtopengl_render.h
Go to the documentation of this file.
1 
7 #ifndef QT_OPENGL_RENDER_H
8 #define QT_OPENGL_RENDER_H
9 
10 namespace argos {
11  class CQTOpenGLRender;
12  class CQTOpenGLApplication;
13 }
14 
15 #include <argos3/core/simulator/visualization/visualization.h>
16 #include <argos3/plugins/simulator/visualizations/qt-opengl/qtopengl_main_window.h>
17 
18 #ifdef ARGOS_WITH_LUA
19 #include <argos3/plugins/simulator/visualizations/qt-opengl/qtopengl_lua_main_window.h>
20 #endif
21 
22 namespace argos {
23 
25 
26  public:
27 
29  m_pcApplication(NULL),
30  m_pcMainWindow(NULL),
31  m_ppcOptions(NULL),
32  m_nOptionNum(0)
33 #ifdef ARGOS_WITH_LUA
34  , m_pcQTOpenGLLuaMainWindow(NULL),
35  m_bLuaEditor(false)
36 #endif
37  {}
38 
39  virtual ~CQTOpenGLRender() {}
40 
41  virtual void Init(TConfigurationNode& t_tree);
42 
43  virtual void Execute();
44 
45  virtual void Reset() {}
46 
47  virtual void Destroy();
48 
50 
51 #ifdef ARGOS_WITH_LUA
52  CQTOpenGLLuaMainWindow& GetLuaMainWindow();
53 #endif
54 
55  private:
56 
57  CQTOpenGLApplication* m_pcApplication;
58  CQTOpenGLMainWindow* m_pcMainWindow;
59  char** m_ppcOptions;
60  SInt32 m_nOptionNum;
61  TConfigurationNode m_tConfTree;
62 #ifdef ARGOS_WITH_LUA
63  CQTOpenGLLuaMainWindow* m_pcQTOpenGLLuaMainWindow;
64  bool m_bLuaEditor;
65 #endif
66 
67  };
68 
69 }
70 
71 #endif
signed int SInt32
32-bit signed integer.
Definition: datatypes.h:93
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
virtual void Init(TConfigurationNode &t_tree)
Initializes the resource.
CQTOpenGLMainWindow & GetMainWindow()
virtual void Reset()
Resets the resource.
virtual void Destroy()
Undoes whatever was done by Init().