2 //-----------------------------------------------------------------------------
3 #ifndef __vtkGdcmReader_h
4 #define __vtkGdcmReader_h
6 #include <vtkImageReader.h>
10 //-----------------------------------------------------------------------------
13 //-----------------------------------------------------------------------------
14 class VTK_EXPORT vtkGdcmReader : public vtkImageReader
17 static vtkGdcmReader *New() {return new vtkGdcmReader;};
18 vtkTypeMacro(vtkGdcmReader, vtkImageReader);
19 void PrintSelf(ostream& os, vtkIndent indent);
21 void RemoveAllFileName(void);
22 void AddFileName(const char* name);
23 void SetFileName(const char *name);
24 vtkGetObjectMacro(LookupTable,vtkLookupTable);
30 virtual void ExecuteInformation();
31 void ExecuteData(vtkDataObject *output);
32 void BuildFileListFromPattern();
33 int CheckFileCoherence();
36 void RemoveAllInternalFileName(void);
37 void AddInternalFileName(const char* name);
40 size_t LoadImageInMemory(std::string FileName, unsigned char * Dest,
41 const unsigned long UpdateProgressTarget,
42 unsigned long & UpdateProgressCount);
46 vtkLookupTable *LookupTable;
49 // Number of columns of the image/volume to be loaded
51 // Number of lines of the image/volume to be loaded
53 // Total number of planes (or images) of the stack to be build.
54 int TotalNumberOfPlanes;
55 // Number of scalar components of the image to be loaded (1=monochrome 3=rgb)
57 // Type of the image[s]: 8/16/32 bits, signed/unsigned:
58 std::string ImageType;
59 // Pixel size (in number of bytes):
61 // List of filenames to be read in order to build a stack of images
62 // or volume. The order in the list shall be the order of the images.
63 std::list<std::string> FileNameList;
65 // List of filenames created in ExecuteInformation and used in
67 // If FileNameList isn't empty, InternalFileNameList is a copy of
69 // Otherwise, InternalFileNameList correspond to the list of
71 std::list<std::string> InternalFileNameList;
75 //-----------------------------------------------------------------------------