41 #ifndef VTKGDCMIMAGEWRITER_H
42 #define VTKGDCMIMAGEWRITER_H
44 #include "vtkgdcmModule.h"
45 #include "vtkImageWriter.h"
46 #include "vtkVersion.h"
49 class vtkMedicalImageProperties;
57 virtual void PrintSelf(ostream& os, vtkIndent indent);
64 vtkGetObjectMacro(MedicalImageProperties, vtkMedicalImageProperties);
73 vtkGetObjectMacro(FileNames, vtkStringArray);
80 vtkGetMacro(LossyFlag,
int);
81 vtkSetMacro(LossyFlag,
int);
82 vtkBooleanMacro(LossyFlag,
int);
106 vtkGetObjectMacro(DirectionCosines, vtkMatrix4x4);
114 vtkSetMacro(Shift,
double);
115 vtkGetMacro(Shift,
double);
116 vtkSetMacro(Scale,
double);
117 vtkGetMacro(Scale,
double);
124 vtkGetMacro(ImageFormat,
int);
125 vtkSetMacro(ImageFormat,
int);
133 vtkBooleanMacro(FileLowerLeft,
int);
134 vtkGetMacro(FileLowerLeft,
int);
135 vtkSetMacro(FileLowerLeft,
int);
142 vtkSetMacro(PlanarConfiguration,
int);
143 vtkGetMacro(PlanarConfiguration,
int);
150 vtkSetStringMacro(StudyUID);
151 vtkGetStringMacro(StudyUID);
152 vtkSetStringMacro(SeriesUID);
153 vtkGetStringMacro(SeriesUID);
166 vtkSetMacro(CompressionType,
int);
167 vtkGetMacro(CompressionType,
int);
176 #if (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )
177 int FillInputPortInformation(
int port, vtkInformation *info);
178 int RequestInformation(
179 vtkInformation *request,
180 vtkInformationVector **inputVector,
181 vtkInformationVector *outputVector);
182 int RequestUpdateExtent(
183 vtkInformation *request,
184 vtkInformationVector **inputVector,
185 vtkInformationVector *outputVector);
187 vtkInformation *request,
188 vtkInformationVector **inputVector,
189 vtkInformationVector *outputVector);
204 vtkMedicalImageProperties *MedicalImageProperties;
208 int DataUpdateExtent[6];
211 vtkStringArray *FileNames;
212 vtkMatrix4x4 *DirectionCosines;
217 int PlanarConfiguration;
virtual void SetMedicalImageProperties(vtkMedicalImageProperties *)
virtual const char * GetDescriptiveName()
Get the name of this file format.
virtual void SetFileNames(vtkStringArray *)
Pass in the list of filename to be used to write out the DICOM file(s)
void WriteSlice(vtkImageData *data)
virtual char * GetFileName()
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetDirectionCosines(vtkMatrix4x4 *matrix)
You need to manually specify the direction the image is in to write a valid DICOM file since vtkImage...
virtual void SetDirectionCosinesFromImageOrientationPatient(const double dircos[6])
virtual const char * GetFileExtensions()
Get the entension for this file format.
static vtkGDCMImageWriter * New()
int WriteGDCMData(vtkImageData *data, int timeStep)