#ifndef __CPEXTENSIONS__IO__MEMENTOSTATE__H__ #define __CPEXTENSIONS__IO__MEMENTOSTATE__H__ #include #include // vtk stuff #include #include // Plugins interface #include #include #include #include #include #include // ------------------------------------------------------------------------- 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; public: MementoState(); // MementoState(long id, cpPlugins::Interface::Image * _img); bool SetToMemento(cpPlugins::Interface::Image* _img); // bool SetToMemento(itk::ProcessObject po); // vtkSmartPointer getMemento(long id); private: void save(const std::string& filename, const std::string& filenameRaw, cpPlugins::Interface::Image* img); vtkSmartPointer load(const std::string& filename); }; } } //========================================================================== // ------------------------------------------------------------------------- /** */ #endif // __CPEXTENSIONS__IO__MEMENTOSTATE__H__ // eof - $RCSfile$