X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeView.h;h=44347895312047f211d715fd381dc7419715c722;hb=5f76a3752cd6e23874e8167f19c9ceb57223b390;hp=de4f7f23bd621f474f30e9a97a71a793cf399204;hpb=2f0e50f69eb904d629cf8db62eb9a4094db93097;p=creaImageIO.git diff --git a/src2/creaImageIOTreeView.h b/src2/creaImageIOTreeView.h index de4f7f2..4434789 100644 --- a/src2/creaImageIOTreeView.h +++ b/src2/creaImageIOTreeView.h @@ -35,39 +35,22 @@ 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& s, int dim) - { GimmickError("INTERNAL ERROR : TreeView::GetSelectedImages not overloaded");} + + ///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&s){ GimmickError("INTERNAL ERROR : TreeView::GetSelectedAsString not overloaded"); } + + /// Gets the user selected data from the level passed as a parameter + virtual std::vector GetSelected(int level){ GimmickError("INTERNAL ERROR : TreeView::GetSelected 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; } - ///Sets the output dimension desired for selections - void SetOutputDimension(int outdim){ mOutputDimension=outdim; } - 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; } - ///Gets the output dimension desired for selections - int GetOutputDimension(){ return mOutputDimension; } - + private: /// The TreeHandler with which it corresponds TreeHandler* mTreeHandler; - //The selection's maximum dimension - int mSelectionMaxDimension; - //The selection's minimum dimension - int mSelectionMinDimension; - //The user desired output dimension - int mOutputDimension; - }; + }; // EO class TreeView //=====================================================================