X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FIO%2FMementoState.h;h=d7430d3695b4644b9a2ad16049790b7d0ebd7176;hb=73332fee95f5410c46e3b0cff1e2755d5e4a8b71;hp=13a7a4b0d13c5afe119f72aa1554b0c7c8ea1cce;hpb=4a793c6b8f400b2303a3f69680aea22948d8ecc6;p=cpPlugins.git diff --git a/lib/cpExtensions/IO/MementoState.h b/lib/cpExtensions/IO/MementoState.h index 13a7a4b..d7430d3 100644 --- a/lib/cpExtensions/IO/MementoState.h +++ b/lib/cpExtensions/IO/MementoState.h @@ -1,6 +1,7 @@ #ifndef __CPEXTENSIONS__IO__MEMENTOSTATE__H__ #define __CPEXTENSIONS__IO__MEMENTOSTATE__H__ +/* #include @@ -19,49 +20,34 @@ #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; - + long m_maxId; + std::vector m_stateReady; + std::vector::iterator m_stateIt; public: MementoState(); -// MementoState(long id, cpPlugins::Interface::Image * _img); - bool SetToMemento(cpPlugins::Interface::Image* _img); -// bool SetToMemento(itk::ProcessObject po); - -// vtkSmartPointer getMemento(long id); + vtkSmartPointer MementoUndo(); + vtkSmartPointer MementoRedo(); + vtkSmartPointer GetFromMemento(long id); private: - void save(const std::string& filename, const std::string& filenameRaw, cpPlugins::Interface::Image* img); - vtkSmartPointer load(const std::string& filename); + void Save(const std::string& filename, const std::string& filenameRaw, cpPlugins::Interface::Image* img); + vtkSmartPointer Load(const std::string& filename); }; } } +*/ //========================================================================== // -------------------------------------------------------------------------