]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxGimmickView.cpp
*** empty log message ***
[creaImageIO.git] / src2 / creaImageIOWxGimmickView.cpp
index c28c285afccc369dc1c153c1b31b99003fa213a0..cec329ba94ba9d9bc30c8651f121d8255b627930 100644 (file)
@@ -61,7 +61,9 @@ namespace creaImageIO
                               wxWindow *parent, 
                               const wxWindowID id,
                               const wxPoint& pos, const wxSize& size,
-                              int image_type,
+                              int min_dim,
+                                  int max_dim,
+                                  int out_dim,
                               int number_of_threads)
     : wxPanel(parent,id,pos,size),
       GimmickView(gimmick),
@@ -98,6 +100,10 @@ namespace creaImageIO
        //Gimmick
        mGimmick=gimmick;
 
+       mSelectionMaxDimension=max_dim;
+       mSelectionMinDimension=min_dim;
+       mOutputDimension=out_dim;
+
     // Create the views
     CreateTreeViews();
 
@@ -180,6 +186,10 @@ namespace creaImageIO
                   name<<"'"<<std::endl);
     // Create the WxTreeView
     WxTreeView* view = new WxTreeView(h,mNotebook,-1);
+       
+       view->SetMaxDimension(mSelectionMaxDimension);
+       view->SetMinDimension(mSelectionMinDimension);
+       view->SetOutputDimension(mOutputDimension);
 
     // TO DO : TEST THAT A VIEW WITH SAME NAME IS NOT
     // ALREADY IN THE MAP
@@ -190,8 +200,21 @@ namespace creaImageIO
 
   }
   //======================================================================
+  /// Returns the selected Images so that they comply with the given parameter(<4D)
+  vtkImageData* WxGimmickView::GetSelectedImage(int dim)
+  {
+         return NULL;
+  }
 
-
+  //======================================================================
+  /// Returns the selected Images so that they comply with the given parameter(4D)
+  void WxGimmickView::GetSelectedImages(std::vector<vtkImageData*>& s, int dim)
+  {
+       
+               //GetTreeViewMap()["Local database"]->GetImageData()
+               //return NULL   ;
+       
+  }
 
   //=================================================
   void WxGimmickView::CreateIconList()
@@ -332,7 +355,7 @@ namespace creaImageIO
    //=================================================
   void WxGimmickView::OnRemove(wxCommandEvent& event)
   {
-       //TODO Select current tree handler
+       //TODO Select current tree handler       
     wxBusyCursor busy;
     GetTreeViewMap()["Local database"]->RemoveSelected(1);
   }