]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOGimmickView.h
*** empty log message ***
[creaImageIO.git] / src2 / creaImageIOGimmickView.h
index 3aa98acf92f9a58ff285c71543722b5f53b83808..1bef90c0c0758b8eb24f01102e560d1047bf2f04 100644 (file)
@@ -1,3 +1,18 @@
+#ifndef __creaImageIOGimmickView_h_INCLUDED__
+#define __creaImageIOGimmickView_h_INCLUDED__
+
+#include <creaImageIOGimmick.h>
+#include <creaImageIOTreeView.h>
+#include <creaImageIOSystem.h>
+//#include <map>
+#include <vtkImageData.h>
+
+#define GIMMICK_NO_IMAGE_SELECTION 0
+#define GIMMICK_2D_IMAGE_SELECTION 2
+#define GIMMICK_3D_IMAGE_SELECTION 3
+#define GIMMICK_4D_IMAGE_SELECTION 4
+
+
 namespace creaImageIO
 {
        /**
@@ -11,10 +26,58 @@ namespace creaImageIO
     {
     public:
       /// Ctor
-      GimmickView();
+      GimmickView(Gimmick* );
       /// Virtual destructor
       virtual ~GimmickView();
 
+
+      /// Initializes the view : 
+      /// Creates the TreeViews for all the TreeHandler of the Controller
+      /// 
+      virtual void Initialize();
+
+      /// Type of map from View name to TreeView* 
+      /// (This map is equivalent for Views of the TreeHandlerMap of Gimmick)
+      typedef std::map<std::string, TreeView*> TreeViewMapType;
+      
+      /// Returns the TreeViewMap (ref)
+      TreeViewMapType& GetTreeViewMap() { return mTreeViewMap; }
+      /// Returns the TreeViewMap (const ref)
+      const TreeViewMapType& GetTreeViewMap() const
+      { return mTreeViewMap; }
+
+      /// Finalize 
+      virtual void Finalize();
+      
+      virtual void GetSelectedImages(std::vector<vtkImageData*>& s) {}
+      virtual void GetSelectedFiles(std::vector<std::string>& s) {}
+
+      /// Create the tree views 
+      void CreateTreeViews();
+
+      /// Create the tree view for TreeHandler provided
+      virtual void CreateTreeView( TreeHandler* h) { GimmickError("INTERNAL ERROR : CreateTreeView not implemented"); }
+
+    private:
+      /// Controller which manages the interaction with the model
+      Gimmick* mGimmick;
+      /// The views 
+      TreeViewMapType mTreeViewMap;
+      
+    };
+    // EO class GimmickView
+    //=====================================================================
+  
+
+  /*
+
+
+
+
+
+
+
+
        //====================================================================
        // General
        //====================================================================
@@ -148,15 +211,9 @@ namespace creaImageIO
     MultiThreadImageReader mReader;
     // map of images name to node
     std::map<std::string,DicomNode*> mImageFileNameToNode;
-  
-    //Controller which manages the interaction with the model
-       Gimmick* controller;
-
-    };
-    // EO class GimmickView
-    //=====================================================================
-  
+  */
 } // EO namespace creaImageIO
 
 // EOF
-#endif  
\ No newline at end of file
+#endif