#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:
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;