18 #ifndef __otbImageAlternateViewer_h
19 #define __otbImageAlternateViewer_h
21 #include "vcl_deprecated_header.h"
23 #include "FL/Fl_Gl_Window.H"
44 template <
class TPixel>
84 itkSetMacro(RedChannelIndex,
unsigned int);
85 itkGetMacro(RedChannelIndex,
unsigned int);
87 itkSetMacro(GreenChannelIndex,
unsigned int);
88 itkGetMacro(GreenChannelIndex,
unsigned int);
90 itkSetMacro(BlueChannelIndex,
unsigned int);
91 itkGetMacro(BlueChannelIndex,
unsigned int);
99 itkSetMacro(SpacingZoomFactor,
double);
100 itkGetMacro(SpacingZoomFactor,
double);
102 itkSetMacro(OpenGlIsotropicZoom,
double);
103 itkGetMacro(OpenGlIsotropicZoom,
double);
105 void SetViewedRegionCenter(
const IndexType& index);
106 itkGetMacro(ViewedRegionCenter,
IndexType);
111 itkSetObjectMacro(SecondImage,
ImageType);
112 itkGetObjectMacro(SecondImage,
ImageType);
125 void SetViewModelToRGB(
void);
129 void SetViewModelToGrayscale(
void);
134 void SetInsightViewModelToRGB(
void);
139 void SetInsightViewModelToGrayscale(
void);
142 unsigned char Normalize(
PixelType value,
unsigned int channelIndex);
149 virtual void Init(
int x,
int y,
int w,
int h,
const char * l);
152 virtual void resize(
int x,
int y,
int w,
int h);
161 virtual void draw(
void);
164 virtual void Draw(
unsigned char * buffer,
RegionType& region);
167 virtual void ResetOpenGlContext(
void);
170 virtual int handle(
int event);
175 virtual void IncrementalOpenGlBufferUpdate(
void);
177 RegionType GetAdditionalBufferRegion(
unsigned int i);
181 virtual void MergeBuffersAndFreeMemory(std::vector<unsigned char *> bufferList,
182 std::vector<RegionType> bufferRegionList);
184 virtual void AdditionalRedraw(
void);
186 virtual void DecorationRedraw(
void);
188 virtual void DrawRegionBoundary(
RegionType& region);
194 virtual void PrintSelf(std::ostream& os,
itk::Indent indent)
const;
198 void operator =(
const Self&);
277 #ifndef OTB_MANUAL_INSTANTIATION