Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ExampleOpenGLCanvasBase.hh
1 #include <Gui/OpenGLCanvasBase.hh>
2 #include <wx/wx.h>
3 
4 
5 using namespace BIAS;
6 using namespace std;
7 
8 
9 // --------------------------------------------------------
10 
11 /** \cond HIDDEN_SYMBOLS
12  * @example ExampleOpenGLCanvasBase.cpp
13  * @ingroup g_examples
14  * @brief Implement a simple example for the OpenGLCanvasBase canvas.
15  * Please note the specialized canvases liek the OpenGLCanvas (without Base) or the ImageCanvasGL
16  * which may be a betetr choice for you.
17  * @author Jan Woetzel
18  */
19 class ExampleOpenGLCanvasApp : public wxApp {
20  virtual bool OnInit();
21 }; // end of ExampleOpenGLCanvasApp -----------------------
22 
23 
24 enum _ExampleOpenGLCanvasMyFrameIDs_ {
25  ID_ABOUT=wxID_ABOUT,
26  ID_QUIT
27 };
28 
29 
30 // --------------------------------------------------------
31 
32 class MyFrame: public wxFrame {
33 public:
34  MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
35  void OnQuit(wxCommandEvent& event);
36  void OnAbout(wxCommandEvent& event);
37 
38  // data member ---
39  BIAS::OpenGLCanvasBase * p_canvas;
40 
41  DECLARE_EVENT_TABLE()
42 }; // end of MyFrame --------------------------------------
43 /** \endcond */
base class for OpenGL canvases you could derive from to get base functionality (JW) ...