]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/IO/MementoState.h
...
[cpPlugins.git] / lib / cpExtensions / IO / MementoState.h
1 #ifndef __CPEXTENSIONS__IO__MEMENTOSTATE__H__
2 #define __CPEXTENSIONS__IO__MEMENTOSTATE__H__
3
4 /*
5 #include <cpExtensions/cpExtensions_Export.h>
6
7
8 #include <vector>
9
10
11 // vtk stuff
12 #include <vtkSmartPointer.h>
13 #include <cpExtensions/Visualization/MPRObjects.h>
14
15 // Plugins interface
16 #include <cpPlugins/Interface/Interface.h>
17 #include <cpPlugins/Interface/ProcessObject.h>
18 #include <cpPlugins/Interface/Image.h>
19 #include <cpPlugins/Interface/ImplicitFunction.h>
20 #include <cpPlugins/Interface/Mesh.h>
21
22 #include <vtkMetaImageReader.h>
23 #include <vtkCommand.h>
24
25 namespace cpExtensions
26 {
27   namespace IO
28   {
29     class cpExtensions_EXPORT MementoState
30     {
31     private:
32       long m_Id;
33       long m_maxId;
34       std::vector<bool> m_stateReady;
35       std::vector<bool>::iterator m_stateIt;
36     public:
37
38       MementoState();
39       bool SetToMemento(cpPlugins::Interface::Image* _img);
40       vtkSmartPointer<vtkImageData> MementoUndo();
41       vtkSmartPointer<vtkImageData> MementoRedo();
42       vtkSmartPointer<vtkImageData> GetFromMemento(long id);
43     private:
44       void Save(const std::string& filename, const std::string& filenameRaw, cpPlugins::Interface::Image* img);
45       vtkSmartPointer<vtkImageData> Load(const std::string& filename);
46
47     };
48   }
49 }
50 */
51 //==========================================================================
52
53 // -------------------------------------------------------------------------
54 /**
55  */
56
57
58
59
60
61 #endif // __CPEXTENSIONS__IO__MEMENTOSTATE__H__
62
63 // eof - $RCSfile$