1 #ifndef __creaImageIOAbstractImageReader_h_INCLUDED__
2 #define __creaImageIOAbstractImageReader_h_INCLUDED__
5 #include <vtkImageData.h>
9 #include <creaImageIOTreeAttributeMapType.h>
19 //=====================================================================
20 /// Abstract image reader
21 class AbstractImageReader
24 AbstractImageReader() {}
25 virtual ~AbstractImageReader() {}
27 const std::string& GetName() const { return mName; }
28 virtual void PushBackExtensions(std::vector<std::string>&) {}
29 virtual bool CanRead(const std::string& filename) { return false; }
30 virtual vtkImageData* ReadImage(const std::string& filename) { return 0; }
31 virtual void ReadAttributes(const std::string& filename,
32 tree::AttributeMapType& attr) {}
35 void SetName(const std::string& s) { mName = s; }
39 //=====================================================================
43 } // namespace creaImageIO
47 #endif // #ifndef __creaImageIOAbstractImageReader_h_INCLUDED__