]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageUndoRedo.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / imageUndoRedo / 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
13 class ImageUndoRedo: public ManagerUR {
14 public:
15         ImageUndoRedo();
16         virtual ~ImageUndoRedo();
17         virtual void Undo();
18         virtual void Redo();
19         virtual void SetImage(VTKImageDataPointerType image);
20         virtual void SetUndoImage(ImageMManagerType* imMManager);
21         virtual void SetRedoImage(ImageMManagerType* imMManager);
22         void UpdateUndoImage();
23         void SetCurrentImage(VTKImageDataPointerType img);
24         VTKImageDataPointerType GetImageRegion(const RegionSType& region,
25                         VTKImageDataPointerType img);
26 protected:
27         virtual void DrawUR(ImageInfoUR* imageInfo);
28
29 protected:
30
31         IDequeType* m_ImagesDeque;
32         VTKImageDataPointerType m_UndoImage;
33         VTKImageDataPointerType m_CurrentImage;
34
35 };
36
37 #endif /* IMAGEUNDOREDO_H_ */