X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOGimmickView.h;h=a521f8de820c75a4053fa08102dc1e4f52bbb138;hb=2f0e50f69eb904d629cf8db62eb9a4094db93097;hp=a9298b9def91013991e36e78f282fb7177416ec2;hpb=fcfe92562365cb738cf919d095d2f8d3608ec389;p=creaImageIO.git diff --git a/src2/creaImageIOGimmickView.h b/src2/creaImageIOGimmickView.h index a9298b9..a521f8d 100644 --- a/src2/creaImageIOGimmickView.h +++ b/src2/creaImageIOGimmickView.h @@ -3,6 +3,8 @@ #include #include +#include + //#include #include @@ -11,6 +13,10 @@ #define GIMMICK_3D_IMAGE_SELECTION 3 #define GIMMICK_4D_IMAGE_SELECTION 4 +#define NATIVE 0 +#define _2D 2 +#define _3D 3 + namespace creaImageIO { @@ -47,10 +53,24 @@ namespace creaImageIO /// Finalize virtual void Finalize(); - - virtual void GetSelectedImages(std::vector& 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& s, int dim) {} + virtual void GetSelectedFiles(std::vector& s) {} + /// Create the tree views + void CreateTreeViews(); + + /// Create the tree view for TreeHandler provided + virtual void CreateTreeView( TreeHandler*) + { GimmickError("INTERNAL ERROR : CreateTreeView not implemented"); } + + /// Updates the TreeView of given name from level l to bottom + /// (calls the virtual method TreeView::UpdateLevel(l)) + virtual void UpdateTreeViewLevel(const std::string&, int l); + private: /// Controller which manages the interaction with the model Gimmick* mGimmick;