1 #ifndef __creaImageIOImageReader_h_INCLUDED__
2 #define __creaImageIOImageReader_h_INCLUDED__
5 #include <creaImageIODicomNode.h>
7 #include <vtkImageData.h>
15 //=====================================================================
16 class SpecificImageReader;
17 //=====================================================================
19 //=====================================================================
26 // Returns the known extensions
27 /*static*/ const std::vector<std::string>& GetKnownExtensions()
28 { return mKnownExtensions; }
29 // Returns true iff the file is readable
30 /*static*/ bool CanRead( const std::string& filename,
31 const std::string& exclude = "");
32 // Reads the file. Returns an "Unreadable image" picture if fails
33 /*static*/ vtkImageData* Read( const std::string& filename,
34 const std::string& exclude = "");
36 void ReadDicomInfo(const std::string& filename,
41 /*static*/ void Register(SpecificImageReader*);
43 /*static*/ std::vector<SpecificImageReader*> mReader;
44 /*static*/ std::vector<std::string> mKnownExtensions;
45 /*static*/ vtkImageData* mUnreadableImage;
47 /*static*/ std::string mLastFilename;
48 /*static*/ SpecificImageReader* mLastReader;
52 }; // class ImageReader
53 //=====================================================================
57 } // namespace creaImageIO
61 #endif // #ifndef __creaImageIOImageReader_h_INCLUDED__