]> Creatis software - gdcm.git/blob - vtk/vtkGdcmWriter.h
* vtk/vtkGdcm*.[h|cxx] : remove warnings. Add header to files
[gdcm.git] / vtk / vtkGdcmWriter.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: vtkGdcmWriter.h,v $
5   Language:  C++
6   Date:      $Date: 2004/12/09 10:59:59 $
7   Version:   $Revision: 1.3 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18                                                                                 
19 #ifndef __vtkGdcmWriter_h
20 #define __vtkGdcmWriter_h
21
22 #include "gdcmCommon.h" // To avoid warnings concerning the std
23
24 #include <vtkImageWriter.h>
25 #include <vtkLookupTable.h>
26 #include <list>
27 #include <string>
28
29 //-----------------------------------------------------------------------------
30 class VTK_EXPORT vtkGdcmWriter : public vtkImageWriter
31 {
32 public:
33    static vtkGdcmWriter *New();
34    vtkTypeRevisionMacro(vtkGdcmWriter, vtkImageWriter);
35
36    void PrintSelf(ostream& os, vtkIndent indent);
37
38    vtkSetObjectMacro(LookupTable,vtkLookupTable);
39    vtkGetObjectMacro(LookupTable,vtkLookupTable);
40
41 protected:
42    vtkGdcmWriter();
43    ~vtkGdcmWriter();
44
45   virtual void RecursiveWrite(int axis, vtkImageData *image, ofstream *file);
46   virtual void RecursiveWrite(int axis, vtkImageData *image, 
47                               vtkImageData *cache, ofstream *file);
48   void WriteDcmFile(char *fileName,vtkImageData *image);
49
50 private:
51 // Variables
52    vtkLookupTable *LookupTable;
53 };
54
55 //-----------------------------------------------------------------------------
56 #endif
57