Go to the documentation of this file.00001 #ifndef __creaImageIODicomImageReader_h_INCLUDED__
00002 #define __creaImageIODicomImageReader_h_INCLUDED__
00003
00004
00005 #include <creaImageIOAbstractImageReader.h>
00006 #include <gdcmFile.h>
00007
00008 class vtkGdcmReader;
00009
00010 namespace creaImageIO
00011 {
00012
00013
00018
00020 class DicomImageReader : virtual public AbstractImageReader
00021 {
00022 public:
00023 DicomImageReader();
00024 virtual ~DicomImageReader();
00025
00027 virtual void PushBackExtensions(std::vector<std::string>&);
00029 virtual bool CanRead(const std::string& filename);
00031 virtual vtkImageData* ReadImage(const std::string& filename);
00033 virtual void ReadAttributes(const std::string& filename,
00034 tree::AttributeMapType& attr);
00035
00036 void getAttributes(const std::string filename,
00037 std::map <std::string , std::string> &infos, std::vector<std::string> i_attr);
00038
00039 private:
00040 vtkGdcmReader* mReader;
00041 struct deleter
00042 {
00043
00044 };
00045 friend struct deleter;
00046 };
00047
00048
00049
00050
00051 }
00052
00053
00054
00055 #endif // #ifndef __creaImageIODicomImageReader_h_INCLUDED__