Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SimpleGLApp.hh
1 #ifndef SimpleGLApp_hh_51120937298_
2 #define SimpleGLApp_hh_51120937298_
3 
4 #include <Gui/OpenGLCanvas.hh>
5 #include <Utils/DrawTextGL.hh>
6 #include "SimpleGLFrame.hh"
7 #include "SceneGL.hh"
8 
9 namespace BIAS {
10 
11  /** @brief Simple GL application
12 
13  The idea of this class is taht you want an application around your (existing) display function.
14  Use SceneGL to wrap your GL calls function and plug it into *scene of constructor.
15  @author Jan Woetzel
16  */
17  class BIASSimpleGLApp_EXPORT SimpleGLApp:public /*wxApp */ wxGLApp {
18  public:
19  SimpleGLApp();
20 
21  /// main equivalent
22  virtual bool OnInit();
23 
24  virtual void SetScene();
25  virtual void SetCanvas(BIAS::OpenGLCanvas * arg_pc);
26 
28  BIAS::SceneGL *scene; //< plug your scene into thsi pointer, typically inside constructor
29  };
30 } // namespace
31 #endif
BIAS::SceneGL * scene
Definition: SimpleGLApp.hh:28
Simple interface for GL calls.
Definition: SceneGL.hh:14
OpenGL canvases with additinal event handling (JW)
Definition: OpenGLCanvas.hh:68
SimpleGLFrame * frame
Definition: SimpleGLApp.hh:27
Simple GL application.
Definition: SimpleGLApp.hh:17
Helper frame for SimplaGLApp.