]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/IO/MementoState.h
First dump for version 0.1.0
[cpPlugins.git] / lib / cpExtensions / IO / MementoState.h
index 13a7a4b0d13c5afe119f72aa1554b0c7c8ea1cce..d7430d3695b4644b9a2ad16049790b7d0ebd7176 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __CPEXTENSIONS__IO__MEMENTOSTATE__H__
 #define __CPEXTENSIONS__IO__MEMENTOSTATE__H__
 
+/*
 #include <cpExtensions/cpExtensions_Export.h>
 
 
 #include <cpPlugins/Interface/Mesh.h>
 
 #include <vtkMetaImageReader.h>
-
-// -------------------------------------------------------------------------
-
-
+#include <vtkCommand.h>
 
 namespace cpExtensions
 {
   namespace IO
   {
-    //==========================================================================
-// Plugins types
-//typedef cpPlugins::Interface::Interface        TPluginsInterface;
-//typedef cpPlugins::Interface::Object           TPluginObject;
-//typedef cpPlugins::Interface::DataObject       TPluginData;
-//typedef cpPlugins::Interface::Image            TPluginImage;
-//typedef cpPlugins::Interface::ImplicitFunction TPluginImplicitFunction;
-//typedef cpPlugins::Interface::Mesh             TPluginMesh;
-//typedef cpPlugins::Interface::ProcessObject    TPluginFilter;
-//typedef cpPlugins::Interface::Parameters       TParameters;
-//
-//typedef cpExtensions::Visualization::MPRObjects TMPRObjects;
-
     class cpExtensions_EXPORT MementoState
     {
     private:
       long m_Id;
-
+      long m_maxId;
+      std::vector<bool> m_stateReady;
+      std::vector<bool>::iterator m_stateIt;
     public:
 
       MementoState();
-//      MementoState(long id, cpPlugins::Interface::Image * _img);
-
       bool SetToMemento(cpPlugins::Interface::Image* _img);
-//      bool SetToMemento(itk::ProcessObject po);
-
-//      vtkSmartPointer<vtkMetaImageReader> getMemento(long id);
+      vtkSmartPointer<vtkImageData> MementoUndo();
+      vtkSmartPointer<vtkImageData> MementoRedo();
+      vtkSmartPointer<vtkImageData> GetFromMemento(long id);
     private:
-      void save(const std::string& filename, const std::string& filenameRaw, cpPlugins::Interface::Image* img);
-      vtkSmartPointer<vtkMetaImageReader> load(const std::string& filename);
+      void Save(const std::string& filename, const std::string& filenameRaw, cpPlugins::Interface::Image* img);
+      vtkSmartPointer<vtkImageData> Load(const std::string& filename);
 
     };
   }
 }
+*/
 //==========================================================================
 
 // -------------------------------------------------------------------------