Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Code
Visualization
otbGlComponent.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 __otbGlComponent_h
19
#define __otbGlComponent_h
20
21
#include "
itkObject.h
"
22
#include "
itkImageRegion.h
"
23
#include "
itkAffineTransform.h
"
24
#include "
itkFixedArray.h
"
25
26
// FLTK includes
27
#include <FL/gl.h>
28
#include "FL/Fl_Gl_Window.H"
29
30
namespace
otb
31
{
37
class
GlComponent
38
:
public
itk::Object
39
{
40
public
:
42
typedef
GlComponent
Self
;
43
typedef
itk::Object
Superclass
;
44
typedef
itk::SmartPointer<Self>
Pointer
;
45
typedef
itk::SmartPointer<const Self>
ConstPointer
;
46
typedef
itk::ImageRegion<2>
RegionType
;
47
48
// affine transform
49
typedef
itk::AffineTransform<double, 2>
AffineTransformType
;
50
typedef
AffineTransformType::InputPointType
PointType
;
51
typedef
AffineTransformType::InputVectorType
VectorType
;
52
typedef
itk::FixedArray<double, 4>
ColorType
;
53
55
itkTypeMacro(
GlComponent
,
Object
);
56
58
virtual
void
Render
(
const
RegionType
& extent,
const
AffineTransformType
* space2ScreenTransform) = 0;
59
61
itkSetMacro(Visible,
bool
);
62
itkGetMacro(Visible,
bool
);
63
itkBooleanMacro(Visible);
64
65
protected
:
67
GlComponent
() :
m_Visible
(true)
68
{}
70
virtual
~GlComponent
(){}
72
void
PrintSelf
(std::ostream& os,
itk::Indent
indent)
const
73
{
74
Superclass::PrintSelf
(os, indent);
75
}
76
77
private
:
78
GlComponent
(
const
Self
&);
// purposely not implemented
79
void
operator =
(
const
Self
&);
// purposely not implemented
80
82
bool
m_Visible
;
83
84
};
// end class
85
}
// end namespace otb
86
87
#endif
Generated at Sun Feb 3 2013 00:25:08 for
Orfeo Toolbox
with
doxygen 1.8.1.1