]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/imageUndoRedo.h
DFCH: Manual Paint Changes (Undo/Redo) 80% :) :)
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualPaint / imageUndoRedo.h
1 /*
2  * imageUndoRedo.h
3  *
4  *  Created on: Sep 26, 2011
5  *      Author: caceres
6  */
7
8 #ifndef IMAGEUNDOREDO_H_
9 #define IMAGEUNDOREDO_H_
10
11 #include "managerUR.h"
12 #include <vtkExtractVOI.h>
13
14 class ImageUndoRedo: public ManagerUR {
15
16 private:
17
18         IDequeType* m_ImagesDeque;
19         ImageType* m_OriginalImage;
20         ImageType* m_CurrentImage;
21
22 public:
23         ImageUndoRedo();
24         virtual ~ImageUndoRedo();
25         virtual void Undo();
26         virtual void Redo();
27         virtual void SetImage(vtkImageData *image);
28         virtual void SetUndoImage(const RegionSType& region);
29         virtual void SetRedoImage(const RegionSType& region);
30         void SetOriginalImage(ImageType* img);
31         void SetCurrentImage(ImageType* img);
32 private:
33         virtual void DrawUR(ImageInfoUR imageInfo);
34
35 };
36
37 #endif /* IMAGEUNDOREDO_H_ */