Orfeo Toolbox  3.16
otbGlWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbGlWidget_h
19 #define __otbGlWidget_h
20 
21 // FLTK includes
22 #include <FL/gl.h>
23 #include <FL/Fl.H>
24 #include "FL/Fl_Gl_Window.H"
25 
26 #include "itkFixedArray.h"
27 #include "itkPoint.h"
28 
30 
31 namespace otb
32 {
46 class GlWidget
47  : public Fl_Gl_Window, public itk::Object
48 {
49 public:
51  typedef GlWidget Self;
55 
57  itkNewMacro(Self);
58 
60  itkTypeMacro(GlWidget, Object);
61 
65 
68 
71 
73  itkSetObjectMacro(Controller, ControllerType);
74  itkGetObjectMacro(Controller, ControllerType);
75 
79  virtual void resize(int x, int y, int w, int h);
80 
82  itkSetMacro(UseGlAcceleration, bool);
83  itkGetMacro(UseGlAcceleration, bool);
84  itkBooleanMacro(UseGlAcceleration);
85 
87  itkSetStringMacro(Identifier);
88  itkGetStringMacro(Identifier);
89 
91  itkSetMacro(BackgroundColor, ColorType);
92  itkGetMacro(BackgroundColor, ColorType);
93 
97 
98 protected:
100  GlWidget();
102  virtual ~GlWidget();
104  virtual void PrintSelf(std::ostream& os, itk::Indent indent) const;
108  virtual void draw(void);
112  virtual int handle(int event);
113 
114 private:
115  GlWidget(const Self&); // purposely not implemented
116  void operator =(const Self&); // purposely not implemented
117 
119  std::string m_Identifier;
120 
123 
126 
129 
130 }; // end class
131 } // end namespace otb
132 
133 #endif

Generated at Sun Feb 3 2013 00:25:08 for Orfeo Toolbox with doxygen 1.8.1.1