]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/managerUR.h
DFCH: UndoRedo + ManualPaint - Code update. Undo beta1 working :) :) :)
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / imageUndoRedo / managerUR.h
1 /*
2  * managerUR.h
3  *
4  *  Created on: Sep 26, 2011
5  *      Author: caceres
6  */
7
8 #ifndef MANAGERUR_H_
9 #define MANAGERUR_H_
10
11 #include <iostream>
12 #include <string>
13 #include <vtkImageData.h>
14 #include <vtkSmartPointer.h>
15 #include <vtkExtractVOI.h>
16
17 #include "image3DDequeUR.h"
18
19 class ManagerUR {
20 public:
21         typedef Image3DDequeUR IDequeType;
22         typedef RegionStructUR RegionSType;
23         typedef vtkSmartPointer<vtkImageData> VTKImageDataPointerType;
24         typedef vtkSmartPointer<vtkExtractVOI> VTKExtractVOIPointerType;
25         typedef std::string StringType;
26 public:
27         ManagerUR();
28         virtual ~ManagerUR();
29         virtual void SetImage(vtkImageData *image);
30         virtual void Undo();
31         virtual void Redo();
32         virtual void SetUndoImage(const RegionSType& region);
33         virtual void SetRedoImage(const RegionSType& region);
34 protected:
35         virtual void DrawUR(ImageInfoUR imageInfo);
36
37 };
38
39 #endif /* MANAGERUR_H_ */