1 #ifndef __creaImageIOVtkImageReader_h_INCLUDED__
2 #define __creaImageIOVtkImageReader_h_INCLUDED__
5 #include <creaImageIOAbstractImageReader.h>
18 //=====================================================================
19 /// Concrete image reader based on a vtkImageReader2
20 class VtkImageReader : virtual public AbstractImageReader
23 VtkImageReader(vtkImageReader2* reader,
24 const std::string& name = "",
25 const std::string& extensions = "");
27 virtual ~VtkImageReader();
31 /// Add file extensions read by the reader
32 virtual void PushBackExtensions(std::vector<std::string>&);
33 /// Test if file is read by this reader
34 virtual bool CanRead(const std::string& filename);
35 /// return for a file a 2D VTkImage
36 virtual vtkImageData* ReadImage(const std::string& filename);
37 /// Read the attributes for a file
38 virtual void ReadAttributes(const std::string& filename,
39 tree::AttributeMapType& attr);
42 vtkImageReader2* mReader;
43 std::string mExtensions;
45 //=====================================================================
49 } // namespace creaImageIO
53 #endif // #ifndef __creaImageIOVtkImageReader_h_INCLUDED__