]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOTreeView.h
Changed validation methods from TreeView to GimmickView (Abstract)
[creaImageIO.git] / src2 / creaImageIOTreeView.h
index 4f61518eda7e672922402dd7f3a241c22c469a1b..44347895312047f211d715fd381dc7419715c722 100644 (file)
@@ -35,32 +35,21 @@ namespace creaImageIO
          ///Validates the selected images
       virtual void ValidateSelectedImages()
          { GimmickError("INTERNAL ERROR : TreeView::ValidateSelected not overloaded");}
-         ///Returns the selected data as vtkImageData
-         vtkImageData* GetSelectedImage(int dim)
-         { GimmickError("INTERNAL ERROR : TreeView::GetSelectedImage not overloaded");}
-    ///Returns the selected data as a vector of vtkImageData (4D)
-         virtual void GetSelectedImages(std::vector<vtkImageData*>& s, int dim)
-         { GimmickError("INTERNAL ERROR : TreeView::GetSelectedImages not overloaded");}
-
-         ///Sets the maximum dimension allowed for selections
-         void SetMaxDimension(int maxdim){ mSelectionMaxDimension=maxdim; }
-         ///Sets the minimum dimension allowed for selections
-         void SetMinDimension(int mindim){ mSelectionMinDimension=mindim; }
          
+         ///Returns the maximum number of levels
+         virtual int GetNumberOfLevels(){ GimmickError("INTERNAL ERROR : TreeView::GetLevels not overloaded"); }
+         ///Gets the current selections filenames
+         virtual void GetSelectedAsString(std::vector<std::string>&s){ GimmickError("INTERNAL ERROR : TreeView::GetSelectedAsString not overloaded"); }
+
+         /// Gets the user selected data from the level passed as a parameter
+      virtual std::vector<tree::Node*> GetSelected(int level){ GimmickError("INTERNAL ERROR : TreeView::GetSelected not overloaded"); }
+
     protected:
       TreeHandler* GetTreeHandler() { return mTreeHandler; }
-         ///Gets the maximum dimension allowed for selections
-         int GetMaxDimension(){ return mSelectionMaxDimension; }
-         ///Gets the minimum dimension allowed for selections
-         int GetMinDimension(){ return mSelectionMinDimension; }
         
     private:
       /// The TreeHandler with which it corresponds
       TreeHandler* mTreeHandler;
-         //The selection's maximum dimension
-         int mSelectionMaxDimension;
-         //The selection's minimum dimension
-         int mSelectionMinDimension;
          };
     // EO class TreeView
     //=====================================================================