]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/imageUndoRedo.cxx
be1ce6989b314132a9aaa59a61cc8c06877bf631
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualPaint / imageUndoRedo.cxx
1 /*
2  * imageUndoRedo.cxx
3  *
4  *  Created on: Sep 26, 2011
5  *      Author: caceres
6  */
7
8
9 #include "imageUndoRedo.h"
10
11 ImageUndoRedo::ImageUndoRedo(ImageType* current) {
12
13         this->m_CurrentImage = current;
14         this->m_CurrentImage->Update();
15         this->m_OriginalImage = ImageType::New();
16         this->m_OriginalImage->ShallowCopy(m_CurrentImage);
17 }
18 //virtual
19 ImageUndoRedo::~ImageUndoRedo() {
20
21 }
22 //virtual
23 void ImageUndoRedo::undo() {
24
25 }
26 //virtual
27 void ImageUndoRedo::redo() {
28
29 }
30 //virtual
31 void ImageUndoRedo::setUndoImage(const RegionSType& region) {
32
33 }
34 //virtual
35 void ImageUndoRedo::setRedoImage( ) {
36
37 }
38 void ImageUndoRedo::setOriginalImage(ImageType* img) {
39         this->m_OriginalImage = img;
40 }
41 void ImageUndoRedo::setCurrentImage(ImageType* img) {
42         this->m_CurrentImage = img;
43 }
44 //virtual
45 void ImageUndoRedo::drawUR(ImageType* urImage, const RegionSType& region){
46
47 }
48