3 * @brief This file contains the ManagerUR class. -- Abstract class
5 * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
14 #include <vtkImageData.h>
15 #include <vtkSmartPointer.h>
16 #include <vtkExtractVOI.h>
18 #include "image3DDequeUR.h"
19 #include "imageModificationManager.h"
20 #include "regionStructUR.h"
21 #include "imageInfoUR.h"
23 /*! @class ManagerUR managerUR.h "managerUR.cxx"
24 * @brief This class manages the Undo/Redo -- Abstract Class.
25 * @details This class allows the communication between others libraries who wants to use it.
30 // ----------------------------------------------------------------------------------
31 /*! @typedef RegionStructUR RegionSType;
32 * @brief Redefines the ImageMManagerType.
34 typedef RegionStructUR RegionSType;
35 // ----------------------------------------------------------------------------------
36 /*! @typedef ImageMManager ImageMManagerType;
37 * @brief Redefines the ImageMManager type.
39 typedef ImageMManager ImageMManagerType;
40 // ----------------------------------------------------------------------------------
41 /*! @typedef vtkSmartPointer<vtkImageData> VTKImageDataPointerType;
42 * @brief Defines the pointer of vtkImageDate type.
44 typedef vtkSmartPointer<vtkImageData> VTKImageDataPointerType;
45 // ----------------------------------------------------------------------------------
46 /*! @typedef vtkSmartPointer<vtkExtractVOI> VTKExtractVOIPointerType;
47 * @brief Defines the pointer of vtkExtractVOI type.
49 typedef vtkSmartPointer<vtkExtractVOI> VTKExtractVOIPointerType;
50 // ----------------------------------------------------------------------------------
51 /*! @typedef std::string StringType;
52 * @brief Redefinition of the string type
54 typedef std::string StringType;
55 // ----------------------------------------------------------------------------------
57 // ----------------------------------------------------------------------------------
59 * @brief This is the default constructor.
62 // ----------------------------------------------------------------------------------
63 /*! @fn virtual ~ManagerUR();
64 * @brief This is the destructor.
67 // ----------------------------------------------------------------------------------
68 /*! @fn virtual void Undo();
69 * @brief This method manages the undo action.
72 // ----------------------------------------------------------------------------------
73 /*! @fn virtual void Redo();
74 * @brief This method manages the redo action.
77 // ----------------------------------------------------------------------------------
78 /*! @fn virtual void SetImage(VTKImageDataPointerType image);
79 * @brief This method sets the modification image (The image which will be modified an manipulated)
81 virtual void SetImage(VTKImageDataPointerType image);
82 // ----------------------------------------------------------------------------------
83 /*! @fn virtual void SetURImages(ImageMManagerType* imMManager);
84 * @brief This methods adds a new image Undo/Redo.
86 virtual void SetURImages(ImageMManagerType* imMManager);
87 // ----------------------------------------------------------------------------------
89 // ----------------------------------------------------------------------------------
90 /*! @fn virtual void DrawUR(ImageInfoUR* imageInfo, const bool& undo);
91 * @brief This method writes in the visualized image the changes of the undo/redo.
93 virtual void DrawUR(ImageInfoUR* imageInfo, const bool& undo);
94 // ----------------------------------------------------------------------------------
97 #endif /* MANAGERUR_H_ */