26 #ifndef vtkTIFFReader_h
27 #define vtkTIFFReader_h
36 void PrintSelf(ostream& os,
vtkIndent indent) VTK_OVERRIDE;
41 int CanReadFile(const
char* fname) VTK_OVERRIDE;
48 const
char* GetFileExtensions() VTK_OVERRIDE
74 void SetOrientationType(
unsigned int orientationType);
75 vtkGetMacro(OrientationType,
unsigned int)
81 vtkGetMacro(OrientationTypeSpecifiedFlag,
bool)
89 vtkGetMacro(OriginSpecifiedFlag,
bool)
98 vtkGetMacro(SpacingSpecifiedFlag,
bool)
104 ~vtkTIFFReader() VTK_OVERRIDE;
106 enum { NOFORMAT,
RGB, GRAYSCALE, PALETTE_RGB, PALETTE_GRAYSCALE, OTHER };
119 int EvaluateImageAt(T* out, T* in);
124 void GetColor(
int index,
125 unsigned short *r,
unsigned short *g,
unsigned short *b);
128 void ReadTwoSamplesPerPixelImage(
void *out,
129 unsigned int vtkNotUsed(width),
132 unsigned int GetFormat();
143 void ReadImageInternal(T* buffer);
149 void ReadVolume(T* buffer);
154 void ReadTiles(
void* buffer);
160 void ReadGenericImage(T* out,
unsigned int width,
unsigned int height);
165 template <typename T>
166 void Process(T *outPtr,
int outExtent[6],
vtkIdType outIncr[3]);
171 template <typename T>
172 void Process2(T *outPtr,
int *outExt);
174 class vtkTIFFReaderInternal;
176 unsigned short *ColorRed;
177 unsigned short *ColorGreen;
178 unsigned short *ColorBlue;
180 unsigned int ImageFormat;
181 vtkTIFFReaderInternal *InternalImage;
184 unsigned int OrientationType;
185 bool OrientationTypeSpecifiedFlag;
186 bool OriginSpecifiedFlag;
187 bool SpacingSpecifiedFlag;
static vtkImageReader2 * New()
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
a simple class to control print indentation
virtual void ExecuteInformation()
Superclass of binary file readers.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
general representation of visualization data