2 * @file imageMManager.h
3 * @brief This file contains the ImageMManager class.
5 * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
9 #ifndef IMAGEMANAGEMENT_H_
10 #define IMAGEMANAGEMENT_H_
16 #include "regionStructUR.h"
18 /*! @class ImageMManager imageMManager.h "imageMManager.cxx"
19 * @brief This class contains the modification manager of the undo/redo
20 * @details This class contains the region and some information about the undo/redo
24 // ----------------------------------------------------------------------------------
25 /*! @fn ImageMManager();
26 * @brief This is the default constructor.
29 // ----------------------------------------------------------------------------------
30 /*! @fn ImageMManager(ImageMManager* manager);
31 * @brief This is the parameterized constructor.
33 ImageMManager(ImageMManager* manager);
34 // ----------------------------------------------------------------------------------
35 /*! @fn virtual ~ImageMManager();
36 * @brief This is the destructor.
38 virtual ~ImageMManager();
39 // ----------------------------------------------------------------------------------
40 /*! @fn void CleanModifiedRegion();
41 * @brief This method cleans the modification Region.
43 void CleanModifiedRegion();
44 // ----------------------------------------------------------------------------------
45 /*! @fn void AddModifiedPixel(const int& i, const int& j, const int& k);
46 * @brief This method adds the coordinates of the region modified.
48 void AddModifiedPixel(const int& i, const int& j, const int& k);
49 // ----------------------------------------------------------------------------------
50 /*! @fn bool ValidateRegion();
51 * @brief This method returns true if the region modified is valid.
54 bool ValidateRegion();
55 // ----------------------------------------------------------------------------------
56 /*! @fn RegionStructUR GetModifiedRegion();
57 * @brief This method returns the modification region.
60 RegionStructUR GetModifiedRegion();
61 // ----------------------------------------------------------------------------------
63 // ----------------------------------------------------------------------------------
65 * @brief This method make the calculation of the minimun and maximum of the region modified.
67 void CalculateMinMaxRegion(const int& i, const int& j, const int& k);
68 // ----------------------------------------------------------------------------------
70 RegionStructUR m_RegionStruct; //!< This is the Region structure.
71 bool m_ValidRegion; //!< This is true if the region is valid.
74 #endif /* IMAGEMANAGEMENT_H_ */