/**
* \ingroup View
*/
+
//=====================================================================
//=====================================================================
///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; }
+ ///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
//=====================================================================
+
} // EO namespace creaImageIO
// EOF