]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageModificationManager.h
DFCH: Manualpaint + imageUndoRedo Big changes, new class for the management of the...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / imageUndoRedo / imageModificationManager.h
1 /*
2  * imageManagement.h
3  *
4  *  Created on: Oct 28, 2011
5  *      Author: caceres
6  */
7
8 #ifndef IMAGEMANAGEMENT_H_
9 #define IMAGEMANAGEMENT_H_
10
11 #include <iostream>
12 #include <map>
13 #include <limits>
14
15 #include "regionStructUR.h"
16
17 class ImageMManager {
18 public:
19         typedef std::map<int, std::map<int, std::map<int, bool> > > PixelModMap; //x,y,z
20 public:
21         ImageMManager();
22         ImageMManager(ImageMManager* manager);
23         virtual ~ImageMManager();
24         void CleanModifiedRegion(); //DFCH
25         void AddModifiedPixel(const int& i, const int& j, const int& k); //DFCH
26         //void SetRegion(const RegionStructUR& region);
27         //void SetPixelModMap(const PixelModMap& map); //DFCH
28         RegionStructUR GetModifiedRegion(); //DFCH
29         PixelModMap GetModificationMap(); //DFCH
30 private:
31         void CalculateMinMaxRegion(const int& i, const int& j, const int& k); //DFCH
32 private:
33         RegionStructUR m_RegionStruct;
34         PixelModMap m_PixelMap;
35 };
36
37 #endif /* IMAGEMANAGEMENT_H_ */