Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ExampleImageCanvasGLBase.hh
1 /* This file is part of the BIAS library (Basic ImageAlgorithmS).
2 
3  Copyright (C) 2003-2009 (see file CONTACT for details)
4  Vision N GmbH
5  Schauenburgerstr. 116
6  24118 Kiel
7 
8  BIAS is free software; you can redistribute it and/or modify
9  it under the terms of the GNU Lesser General Public License as published by
10  the Free Software Foundation; either version 2.1 of the License, or
11  (at your option) any later version.
12 
13  BIAS is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License
19  along with BIAS; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/
21 
22 #include <Gui/ImageCanvasGLBase.hh>
23 #include <wx/wx.h>
24 
25 
26 using namespace BIAS;
27 using namespace std;
28 
29 
30 // --------------------------------------------------------
31 /** \cond HIDDEN_SYMBOLS */
32 class ExampleImageCanvasGLBaseApp : public wxApp {
33  virtual bool OnInit();
34 }; // end of ExampleImageCanvasGLBaseApp -----------------------
35 
36 /** \internal */
37 enum _ExampleImageCanvasGLBaseMyFrameIDs_ {
38  ID_ABOUT=wxID_ABOUT,
39  ID_QUIT,
40  ID_LOADIMAGE,
41  ID_MODECHANGE
42 };
43 
44 
45 // --------------------------------------------------------
46 class MyFrame: public wxFrame {
47 public:
48  MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
49  void OnQuit(wxCommandEvent& event);
50  void OnAbout(wxCommandEvent& event);
51  void OnModeChange(wxCommandEvent& event);
52  void OnLoadImage(wxCommandEvent& );
53 
54  /** laod images and update content
55  on Linux this has to be called after initialzation. JW */
56  void LoadImages();
57 
58 
59  // data member ---
60  BIAS::ImageCanvasGLBase * p_canvas1;
61  BIAS::ImageCanvasGLBase * p_canvas2;
62 
63 
64  DECLARE_EVENT_TABLE()
65 }; // end of MyFrame --------------------------------------
66 /** \endcond */
2D image display canvas using OpenGL rendering internally.