]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/CutModule/kernel/CutModelManager.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / CutModule / kernel / CutModelManager.h
index 8ea3fa7e1f41c50b3e369d3f46b44a703b0398b8..3d84c8f3c48f453ba77c03cea9c9fe688fffd341 100644 (file)
@@ -3,8 +3,8 @@
   Program:   wxMaracas
   Module:    $RCSfile: CutModelManager.h,v $
   Language:  C++
-  Date:      $Date: 2009/08/31 08:46:12 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2009/12/08 13:42:39 $
+  Version:   $Revision: 1.4 $
 
   Copyright: (c) 2002, 2003
   License:
 #define __CutModelManagerH__
 
 #include <iostream>
+#include <stdio.h>
 #include <vector>
 
 #include "vtkImageData.h"
 #include "vtkRenderWindowInteractor.h"
 #include "vtkRenderer.h"
+#include <vtkPolyDataWriter.h>
 
 #include "CutModelException.h"
 #include "CutModelData.h"
+#include "CutModelSaveBinInfo.h"
+
+
 
 class CutModelManager  {
 
 public:
-       CutModelManager();
+       CutModelManager(std::string path);
        ~CutModelManager();
 
        void setImageData(vtkImageData* img);
@@ -62,14 +67,32 @@ public:
        void ExecuteCut(int id, double* range, bool isinside)throw( CutModelException);
 
        vtkImageData* GetResultImage();
-private:       
+
+       void RefreshActor(int id);
+
+       void SaveCutModelData(std::string filename)throw( CutModelException);
+
+       void LoadCutModelData(std::string filename)throw( CutModelException);
+
+       CutModelSaveBinInfo* AddActionUndo(int id, UNDOTYPE type)throw( CutModelException);
+
+       int Undo()throw( CutModelException);
+
+       int Redo()throw( CutModelException);
+
+private:
+       
+       int _currentaction;
+
        void checkInvariant() throw( CutModelException);
+       std::string _path;
        vtkImageData* _img;
-       vtkImageData* _copyimg;
+       vtkImageData* _img2;
        vtkRenderer* _render;
        vtkRenderWindowInteractor* _interactor;
 
        std::vector<CutModelData*> _vectordata;
+       std::vector<CutModelSaveBinInfo*> _undoredo;
        CutModelData* getCutModelData(int id)throw( CutModelException);
        
 };