]> Creatis software - gdcm.git/blob - vtk/vtkGdcmWriter.h
* vtk/vtkGdcmReader.[h|cxx] : bug fix. Plane order isn't inverted
[gdcm.git] / vtk / vtkGdcmWriter.h
1 // vtkGdcmWriter.h
2 //-----------------------------------------------------------------------------
3 #ifndef __vtkGdcmWriter_h
4 #define __vtkGdcmWriter_h
5
6 #include "gdcmCommon.h" // To avoid warnings concerning the std
7
8 #include <vtkImageWriter.h>
9 #include <vtkLookupTable.h>
10 #include <list>
11 #include <string>
12
13 //-----------------------------------------------------------------------------
14 class VTK_EXPORT vtkGdcmWriter : public vtkImageWriter
15 {
16 public:
17    static vtkGdcmWriter *New();
18    vtkTypeRevisionMacro(vtkGdcmWriter, vtkImageWriter);
19
20    void PrintSelf(ostream& os, vtkIndent indent);
21
22    vtkSetObjectMacro(LookupTable,vtkLookupTable);
23    vtkGetObjectMacro(LookupTable,vtkLookupTable);
24
25 protected:
26    vtkGdcmWriter();
27    ~vtkGdcmWriter();
28
29   virtual void RecursiveWrite(int axis, vtkImageData *image, ofstream *file);
30   void WriteFile(char *fileName,vtkImageData *image);
31
32 private:
33 // Variables
34    vtkLookupTable *LookupTable;
35 };
36
37 //-----------------------------------------------------------------------------
38 #endif
39