]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.h
DFCH: imageUndoRedo + Manual Paint: It doesn't works :s :s
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / imageUndoRedo / imageInfoUR.h
index b3d011a4cedb83a7fd3063b9a96e51b3d0436728..9a41c82a0f0a9011d4517bfca64a9578b993e197 100755 (executable)
 #include "regionStructUR.h"
 #include "imageModificationManager.h"
 
+/*
+ * Tenga cuidado que siempre se va a referir a dos imagenes (UNDO/REDO) entonces de las dos imagenes es el mismo solo que
+ * finalizan distinto.
+ */
+
 class ImageInfoUR {
 
 public:
@@ -31,18 +36,23 @@ public:
        void SetImageName(const StringType &imgName);
        void SetImageMManager(ImageMManagerType *imMManager);
        void SetStatus(const bool& onMemory);
-       void SetImage(VTKImageDataPointerType img);
-       void RemoveImageFromMemory(const StringType& gPath);
-       void LoadImageMHDToMemory(const StringType& gPath);
-       void SaveImageAsMHD(const StringType& gPath);
-       void RemoveImageFromDisk(const StringType& gPath);
-       VTKImageDataPointerType GetImage();
+       void SetImages(VTKImageDataPointerType imgUndo,
+                       VTKImageDataPointerType imgRedo);
+       void LoadImagesToMemory(const StringType& gPath);
+       void RemoveImagesFromMemory(const StringType& gPath);
+       void SaveImagesOnDisk(const StringType& gPath);
+       void RemoveImagesFromDisk(const StringType& gPath);
+       VTKImageDataPointerType GetUndoImage();
+       VTKImageDataPointerType GetRedoImage();
        StringType GetImageName();
        ImageMManagerType* GetImageMManager();
+       void SaveImageAsMHD(const StringType& filename,
+                       VTKImageDataPointerType image);
        bool GetStatus();
 
 private:
-       VTKImageDataPointerType m_Image;
+       VTKImageDataPointerType m_UndoImage;
+       VTKImageDataPointerType m_RedoImage;
        StringType m_ImageName;
        ImageMManagerType* m_ImageMManager;
        bool m_OnMemory;