+
+void ImageInfoUR::SetImages(VTKImageDataPointerType imgUndo,
+ VTKImageDataPointerType imgRedo) {
+ this->m_UndoImage = imgUndo;
+ this->m_RedoImage = imgRedo;
+ this->SetStatus(true);
+}
+
+void ImageInfoUR::LoadImagesToMemory(const StringType& gPath) {
+ //setting paths
+ StringType filename = gPath + this->m_ImageName;
+ StringType undoImagePath = filename + "_Undo.mhd";
+ StringType redoImagePath = filename + "_Redo.mhd";
+ //Loading Undo Image
+ VTKMetaImageReaderPointerType readerUndo =
+ VTKMetaImageReaderPointerType::New();
+ readerUndo->SetFileName(undoImagePath.c_str());
+ this->m_UndoImage = readerUndo->GetOutput();
+ this->m_UndoImage->Update();
+ //Loading Redo Image
+ VTKMetaImageReaderPointerType readerRedo =
+ VTKMetaImageReaderPointerType::New();
+ readerRedo->SetFileName(redoImagePath.c_str());
+ this->m_RedoImage = readerRedo->GetOutput();
+ this->m_RedoImage->Update();
+ //Updating status
+ this->m_OnMemory = true;
+}
+
+void ImageInfoUR::RemoveImagesFromMemory(const StringType& gPath) {