]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOGimmickView.h
Added validation function (visible in ok button being enabled or not)
[creaImageIO.git] / src2 / creaImageIOGimmickView.h
index f17fcb48e4cc6a53d6b23a6e987ab2018c2d0b1c..a521f8de820c75a4053fa08102dc1e4f52bbb138 100644 (file)
@@ -4,6 +4,7 @@
 #include <creaImageIOGimmick.h>
 #include <creaImageIOTreeView.h>
 #include <creaImageIOSystem.h>
+
 //#include <map>
 #include <vtkImageData.h>
 
 #define GIMMICK_3D_IMAGE_SELECTION 3
 #define GIMMICK_4D_IMAGE_SELECTION 4
 
+#define NATIVE 0
+#define _2D 2
+#define _3D 3
+
 
 namespace creaImageIO
 {
@@ -48,8 +53,11 @@ namespace creaImageIO
 
       /// Finalize 
       virtual void Finalize();
-      
-      virtual void GetSelectedImages(std::vector<vtkImageData*>& s) {}
+         ///Returns the selected Images and validates to see if they comply with the given parameter(<4D)
+         vtkImageData* GetSelectedImage(int dim);
+      ///Adds the selected Images to the given vector and validates to see if they comply with the given parameter (4D)
+      virtual void GetSelectedImages(std::vector<vtkImageData*>& s, int dim) {}
+
       virtual void GetSelectedFiles(std::vector<std::string>& s) {}
 
       /// Create the tree views