#include <creaImageIOAbstractImageReader.h>
-
+#include <gdcmFile.h>
// forward decl
class vtkGdcmReader;
/**
- * \ingroup ReadWrite
+ * \ingroup IO
*/
//=====================================================================
DicomImageReader();
virtual ~DicomImageReader();
+ /// Add file extensions read by the reader
virtual void PushBackExtensions(std::vector<std::string>&);
+ /// Test if file is read by this reader
virtual bool CanRead(const std::string& filename);
+ /// return for a file a 2D VTkImage
virtual vtkImageData* ReadImage(const std::string& filename);
+ /// Read the attributes for a file
virtual void ReadAttributes(const std::string& filename,
tree::AttributeMapType& attr);
private:
vtkGdcmReader* mReader;
+ struct deleter
+ {
+ void operator()(GDCM_NAME_SPACE::File* p)
+ {
+ p->Delete();
+ }
+ };
+ friend struct deleter;
};
//=====================================================================