29 #ifndef vtkTIFFReader_h 30 #define vtkTIFFReader_h 39 void PrintSelf(ostream& os,
vtkIndent indent) override;
44 int CanReadFile(const
char* fname) override;
51 const
char* GetFileExtensions()
override 77 void SetOrientationType(
unsigned int orientationType);
78 vtkGetMacro(OrientationType,
unsigned int)
84 vtkGetMacro(OrientationTypeSpecifiedFlag,
bool)
91 vtkSetMacro(OriginSpecifiedFlag,
bool)
92 vtkGetMacro(OriginSpecifiedFlag,
bool)
93 vtkBooleanMacro(OriginSpecifiedFlag,
bool)
100 vtkSetMacro(SpacingSpecifiedFlag,
bool)
101 vtkGetMacro(SpacingSpecifiedFlag,
bool)
102 vtkBooleanMacro(SpacingSpecifiedFlag,
bool)
109 enum { NOFORMAT,
RGB, GRAYSCALE, PALETTE_RGB, PALETTE_GRAYSCALE, OTHER };
122 int EvaluateImageAt(T* out, T* in);
127 void GetColor(
int index,
128 unsigned short *r,
unsigned short *g,
unsigned short *b);
131 void ReadTwoSamplesPerPixelImage(
void *out,
132 unsigned int vtkNotUsed(width),
135 unsigned int GetFormat();
146 void ReadImageInternal(T* buffer);
152 void ReadVolume(T* buffer);
157 void ReadTiles(
void* buffer);
163 void ReadGenericImage(T* out,
unsigned int width,
unsigned int height);
168 template <
typename T>
169 void Process(T *outPtr,
int outExtent[6],
vtkIdType outIncr[3]);
174 template <
typename T>
175 void Process2(T *outPtr,
int *outExt);
177 class vtkTIFFReaderInternal;
179 unsigned short *ColorRed;
180 unsigned short *ColorGreen;
181 unsigned short *ColorBlue;
183 unsigned int ImageFormat;
184 vtkTIFFReaderInternal *InternalImage;
187 unsigned int OrientationType;
188 bool OrientationTypeSpecifiedFlag;
189 bool OriginSpecifiedFlag;
190 bool SpacingSpecifiedFlag;
static vtkImageReader2 * New()
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
a simple class to control print indentation
virtual void ExecuteInformation()
Superclass of binary file readers.
general representation of visualization data