]> Creatis software - gdcm.git/blob - vtk/vtkGdcmReader.h
* vtk/vtkGdcmReader[cxx|h] should now be volume aware (read ready for
[gdcm.git] / vtk / vtkGdcmReader.h
1 // $Header: /cvs/public/gdcm/vtk/vtkGdcmReader.h,v 1.3 2003/05/30 18:48:36 frog 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 BuilFileListFromPattern();
24   bool CheckFileCoherence();
25 private:
26   // List of filenames to be read in order to build a stack of images
27   // or volume. The order in the list shall be the order of the images.
28   //BTX
29   std::list<std::string> FileNameList;
30   void LoadImageInMemory(string FileName, unsigned char * Dest, size_t size);
31   //ETX
32 };
33 #endif
34