]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOSimpleView.h
Add a simple dialog box to select file(s or directory or data from creaImageIO database
[creaImageIO.git] / src / creaImageIOSimpleView.h
diff --git a/src/creaImageIOSimpleView.h b/src/creaImageIOSimpleView.h
new file mode 100644 (file)
index 0000000..9cfda37
--- /dev/null
@@ -0,0 +1,24 @@
+#include <boost/filesystem/path.hpp>
+#include <boost/filesystem.hpp>
+#include <boost/utility.hpp>
+#include "creaImageIOImageReader.h"
+
+namespace creaImageIO
+{
+       class SimpleView
+       {
+       public:
+               /// Ctor
+               SimpleView(){}
+
+               ///Dtor
+               ~SimpleView(){}
+               
+               /// read file(s) and return a vector of vtkImageData 
+               bool readFile( std::vector<std::string> i_filenames, std::vector< vtkImageData *> &i_img);
+
+               /// read a directory and return a vector of vtkImageData 
+               bool readDirectory(const std::string i_pathname, std::vector< vtkImageData *> &i_imgs);
+
+       };
+}
\ No newline at end of file