1 #ifndef __MEMENTOSTATE__H__
2 #define __MEMENTOSTATE__H__
8 #include <vtkSmartPointer.h>
9 #include <cpExtensions/Visualization/MPRObjects.h>
12 #include <cpPlugins/Interface/Interface.h>
13 #include <cpPlugins/Interface/ProcessObject.h>
14 #include <cpPlugins/Interface/Image.h>
15 #include <cpPlugins/Interface/ImplicitFunction.h>
16 #include <cpPlugins/Interface/Mesh.h>
18 #include <vtkMetaImageReader.h>
20 // -------------------------------------------------------------------------
26 //==========================================================================
28 typedef cpPlugins::Interface::Interface TPluginsInterface;
29 typedef cpPlugins::Interface::Object TPluginObject;
30 typedef cpPlugins::Interface::DataObject TPluginData;
31 typedef cpPlugins::Interface::Image TPluginImage;
32 typedef cpPlugins::Interface::ImplicitFunction TPluginImplicitFunction;
33 typedef cpPlugins::Interface::Mesh TPluginMesh;
34 typedef cpPlugins::Interface::ProcessObject TPluginFilter;
35 typedef cpPlugins::Interface::Parameters TParameters;
37 typedef cpExtensions::Visualization::MPRObjects TMPRObjects;
47 MementoState(long id, TPluginImage* _img);
48 vtkSmartPointer<vtkMetaImageReader> getMemento(long id);
50 void save(const std::string& filename, const std::string& filenameRaw, TPluginImage* img);
51 vtkSmartPointer<vtkMetaImageReader> load(const std::string& filename);
55 //==========================================================================
57 // -------------------------------------------------------------------------
65 #endif // __MEMENTOSTATE__H__