]> Creatis software - gdcm.git/blob - vtk/vtkGdcmReader.h
Header mismatch with cpp file: corrected
[gdcm.git] / vtk / vtkGdcmReader.h
1 // $Header: /cvs/public/gdcm/vtk/vtkGdcmReader.h,v 1.6 2003/06/12 14:53:01 malaterre Exp $
2
3 #ifndef __vtkGdcmReader_h
4 #define __vtkGdcmReader_h
5
6 #include <list>
7 #include <string>
8 #include "vtkImageReader.h"
9
10 class VTK_EXPORT vtkGdcmReader : public vtkImageReader
11 {
12 public:
13   static vtkGdcmReader *New() {return new vtkGdcmReader;};
14   vtkTypeMacro(vtkGdcmReader, vtkImageReader);
15   void PrintSelf(ostream& os, vtkIndent indent);
16   void AddFileName(const char* name);
17   void SetFileName(const char *name);
18 protected:
19   vtkGdcmReader();
20   ~vtkGdcmReader();
21   virtual void ExecuteInformation();
22   void ExecuteData(vtkDataObject *output);
23   void BuildFileListFromPattern();
24   int CheckFileCoherence();
25 private:
26   //BTX
27   // Number of columns of the image/volume to be loaded
28   int NumColumns;
29   // Number of lines of the image/volume to be loaded
30   int NumLines;
31   // Total number of planes (or images) of the stack to be build.
32   int TotalNumberOfPlanes;
33   // Type of the image[s]: 8/16/32 bits, signed/unsigned:
34   std::string ImageType;
35   // Pixel size (in number of bytes):
36   size_t PixelSize;
37   // List of filenames to be read in order to build a stack of images
38   // or volume. The order in the list shall be the order of the images.
39   std::list<std::string> FileNameList;
40   size_t LoadImageInMemory(std::string FileName, unsigned char * Dest,
41                            const unsigned long UpdateProgressTarget,
42                            unsigned long & UpdateProgressCount);
43   //ETX
44 };
45 #endif
46