41#ifndef VTKGDCMIMAGEWRITER_H
42#define VTKGDCMIMAGEWRITER_H
44#include "vtkImageWriter.h"
45#include "vtkVersion.h"
48class vtkMedicalImageProperties;
56 virtual void PrintSelf(ostream& os, vtkIndent indent);
63 vtkGetObjectMacro(MedicalImageProperties, vtkMedicalImageProperties);
72 vtkGetObjectMacro(FileNames, vtkStringArray);
79 vtkGetMacro(LossyFlag,
int);
80 vtkSetMacro(LossyFlag,
int);
81 vtkBooleanMacro(LossyFlag,
int);
105 vtkGetObjectMacro(DirectionCosines, vtkMatrix4x4);
113 vtkSetMacro(Shift,
double);
114 vtkGetMacro(Shift,
double);
115 vtkSetMacro(Scale,
double);
116 vtkGetMacro(Scale,
double);
123 vtkGetMacro(ImageFormat,
int);
124 vtkSetMacro(ImageFormat,
int);
132 vtkBooleanMacro(FileLowerLeft,
int);
133 vtkGetMacro(FileLowerLeft,
int);
134 vtkSetMacro(FileLowerLeft,
int);
141 vtkSetMacro(PlanarConfiguration,
int);
142 vtkGetMacro(PlanarConfiguration,
int);
149 vtkSetStringMacro(StudyUID);
150 vtkGetStringMacro(StudyUID);
151 vtkSetStringMacro(SeriesUID);
152 vtkGetStringMacro(SeriesUID);
165 vtkSetMacro(CompressionType,
int);
166 vtkGetMacro(CompressionType,
int);
175#if (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )
176 int FillInputPortInformation(
int port, vtkInformation *info);
177 int RequestInformation(
178 vtkInformation *request,
179 vtkInformationVector **inputVector,
180 vtkInformationVector *outputVector);
181 int RequestUpdateExtent(
182 vtkInformation *request,
183 vtkInformationVector **inputVector,
184 vtkInformationVector *outputVector);
186 vtkInformation *request,
187 vtkInformationVector **inputVector,
188 vtkInformationVector *outputVector);
203 vtkMedicalImageProperties *MedicalImageProperties;
207 int DataUpdateExtent[6];
210 vtkStringArray *FileNames;
211 vtkMatrix4x4 *DirectionCosines;
216 int PlanarConfiguration;
static vtkGDCMImageWriter * New()
virtual void SetMedicalImageProperties(vtkMedicalImageProperties *)
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 void PrintSelf(ostream &os, vtkIndent indent)
virtual const char * GetDescriptiveName()
Get the name of this file format.
virtual const char * GetFileExtensions()
Get the entension for this file format.
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 char * GetFileName()
int WriteGDCMData(vtkImageData *data, int timeStep)