64 #ifndef VTKGDCMIMAGEREADER_H
65 #define VTKGDCMIMAGEREADER_H
67 #include "vtkMedicalImageReader2.h"
68 #include "vtkImageData.h"
70 #if (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )
72 class vtkMedicalImageProperties;
74 #if (VTK_MAJOR_VERSION > 5) || ( VTK_MAJOR_VERSION == 5 && VTK_MINOR_VERSION > 0 )
85 #ifndef VTK_INVERSE_LUMINANCE
86 #define VTK_INVERSE_LUMINANCE 5
88 #ifndef VTK_LOOKUP_TABLE
89 #define VTK_LOOKUP_TABLE 6
99 namespace gdcm {
class ImageReader; }
107 virtual void PrintSelf(ostream& os, vtkIndent indent);
110 virtual int CanReadFile(
const char* fname);
130 vtkGetObjectMacro(DirectionCosines, vtkMatrix4x4);
132 #if (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )
136 vtkGetObjectMacro(MedicalImageProperties, vtkMedicalImageProperties);
138 virtual void SetMedicalImageProperties(vtkMedicalImageProperties *pd);
140 #if (VTK_MAJOR_VERSION > 5) || ( VTK_MAJOR_VERSION == 5 && VTK_MINOR_VERSION > 0 )
142 virtual void SetFileNames(vtkStringArray*);
143 vtkGetObjectMacro(FileNames, vtkStringArray);
149 vtkGetMacro(LoadOverlays,
int);
150 vtkSetMacro(LoadOverlays,
int);
151 vtkBooleanMacro(LoadOverlays,
int);
155 vtkGetMacro(LoadIconImage,
int);
156 vtkSetMacro(LoadIconImage,
int);
157 vtkBooleanMacro(LoadIconImage,
int);
161 vtkGetMacro(LossyFlag,
int);
162 vtkSetMacro(LossyFlag,
int);
163 vtkBooleanMacro(LossyFlag,
int);
168 vtkGetMacro(NumberOfOverlays,
int);
173 vtkGetMacro(NumberOfIconImages,
int);
179 #if (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )
182 vtkAlgorithmOutput* GetOverlayPort(
int index);
183 vtkAlgorithmOutput* GetIconImagePort();
186 vtkImageData* GetOverlay(
int i);
187 vtkImageData* GetIconImage();
191 vtkGetMacro(ApplyLookupTable,
int);
192 vtkSetMacro(ApplyLookupTable,
int);
193 vtkBooleanMacro(ApplyLookupTable,
int);
197 vtkGetMacro(ApplyYBRToRGB,
int)
198 vtkSetMacro(ApplyYBRToRGB,
int)
199 vtkBooleanMacro(ApplyYBRToRGB,
int);
205 vtkGetMacro(ImageFormat,
int);
211 vtkGetMacro(PlanarConfiguration,
int);
220 vtkGetVector3Macro(ImagePositionPatient,
double);
221 vtkGetVector6Macro(ImageOrientationPatient,
double);
225 vtkGetObjectMacro(Curve,vtkPolyData);
226 virtual
void SetCurve(vtkPolyData *pd);
234 vtkGetMacro(Shift,
double);
235 vtkGetMacro(Scale,
double);
239 ~vtkGDCMImageReader();
241 vtkSetVector6Macro(ImageOrientationPatient,
double);
244 void FillMedicalImageInformation(const
gdcm::ImageReader &reader);
246 int RequestInformationCompat();
247 int RequestDataCompat();
249 #if (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )
250 int ProcessRequest(vtkInformation* request,
251 vtkInformationVector** inputVector,
252 vtkInformationVector* outputVector);
253 int RequestInformation(vtkInformation *request,
254 vtkInformationVector **inputVector,
255 vtkInformationVector *outputVector);
256 int RequestData(vtkInformation *request,
257 vtkInformationVector **inputVector,
258 vtkInformationVector *outputVector);
260 void ExecuteInformation();
261 void ExecuteData(vtkDataObject *out);
265 #if (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )
271 #if (VTK_MAJOR_VERSION > 5) || ( VTK_MAJOR_VERSION == 5 && VTK_MINOR_VERSION > 0 )
281 int IconImageDataExtent[6];
282 double ImagePositionPatient[3];
283 double ImageOrientationPatient[6];
295 int LoadSingleFile(
const char *filename,
char *pointer,
unsigned long &outlen);
308 vtkGetStringMacro(FilePrefix);
310 vtkGetStringMacro(FilePattern);
313 vtkGDCMImageReader(
const vtkGDCMImageReader&);
314 void operator=(
const vtkGDCMImageReader&);
int NumberOfOverlays
Definition: vtkGDCMImageReader.h:278
virtual const char * GetFileExtensions()
Definition: vtkGDCMImageReader.h:114
int ApplyShiftScale
Definition: vtkGDCMImageReader.h:293
virtual const char * GetDescriptiveName()
Definition: vtkGDCMImageReader.h:122
vtkStringArray * FileNames
Definition: vtkGDCMImageReader.h:273
vtkPolyData * Curve
Definition: vtkGDCMImageReader.h:284
int ForceRescale
Definition: vtkGDCMImageReader.h:303
int LoadIconImage
Definition: vtkGDCMImageReader.h:279
int PlanarConfiguration
Definition: vtkGDCMImageReader.h:301
int NumberOfIconImages
Definition: vtkGDCMImageReader.h:280
vtkMatrix4x4 * DirectionCosines
Definition: vtkGDCMImageReader.h:276
double Scale
Definition: vtkGDCMImageReader.h:298
int ApplyPlanarConfiguration
Definition: vtkGDCMImageReader.h:292
vtkMedicalImageProperties * MedicalImageProperties
Definition: vtkGDCMImageReader.h:269
void SetFilePattern(const char *)
Definition: vtkGDCMImageReader.h:309
void SetFilePrefix(const char *)
Definition: vtkGDCMImageReader.h:307
int ImageFormat
Definition: vtkGDCMImageReader.h:286
int ApplyYBRToRGB
Definition: vtkGDCMImageReader.h:290
int LossyFlag
Definition: vtkGDCMImageReader.h:302
int ApplyLookupTable
Definition: vtkGDCMImageReader.h:289
int ApplyInverseVideo
Definition: vtkGDCMImageReader.h:288
Definition: vtkGDCMImageReader.h:102
int LoadOverlays
Definition: vtkGDCMImageReader.h:277
int IconNumberOfScalarComponents
Definition: vtkGDCMImageReader.h:300
Definition: gdcmASN1.h:20
double Shift
Definition: vtkGDCMImageReader.h:297
int IconDataScalarType
Definition: vtkGDCMImageReader.h:299