]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageModificationManager.cxx
DFCH: ManualPaint + imageUndoRedo: Undo/Redo functionality its now working =) =)
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / imageUndoRedo / imageModificationManager.cxx
index 4857a7d1e7f3960e2a0d9626f3f495202cb96e01..f8621183a347d4854a241d4c47d8c9402de03bc6 100644 (file)
@@ -1,22 +1,26 @@
-/*
- * imageManagement.cxx
- *
- *  Created on: Oct 28, 2011
- *      Author: caceres
+/*!
+ * @file       imageMManager.cxx
+ * @brief      This file contains the implementation of the ImageMManager class.
+ * @author     Info-Dev
+ * @author     Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
+ * @date       2011-11-15
  */
 
 #include "imageModificationManager.h"
 
+// ----------------------------------------------------------------------------------
 ImageMManager::ImageMManager() {
 
 }
+// ----------------------------------------------------------------------------------
 ImageMManager::ImageMManager(ImageMManager* manager) {
        this->m_RegionStruct = manager->GetModifiedRegion();
 }
+// ----------------------------------------------------------------------------------
 ImageMManager::~ImageMManager() {
 
 }
-
+// ----------------------------------------------------------------------------------
 void ImageMManager::CleanModifiedRegion() {
 
        int min = std::numeric_limits<int>::min();
@@ -28,8 +32,8 @@ void ImageMManager::CleanModifiedRegion() {
        this->m_RegionStruct.minZ = max;
        this->m_RegionStruct.maxZ = min;
        this->m_ValidRegion = false;
-
-} //DFCH
+}
+// ----------------------------------------------------------------------------------
 void ImageMManager::CalculateMinMaxRegion(const int& i, const int& j,
                const int& k) {
        if (i >= 0 && j >= 0 && k >= 0) {
@@ -56,17 +60,17 @@ void ImageMManager::CalculateMinMaxRegion(const int& i, const int& j,
        else {
                this->m_ValidRegion = false;
        } //esle
-} //DFCH
-
+}
+// ----------------------------------------------------------------------------------
 void ImageMManager::AddModifiedPixel(const int& i, const int& j, const int& k) {
-       //this->m_PixelMap[i][j][k] = true;
        this->CalculateMinMaxRegion(i, j, k);
-} //DFCH
-
+}
+// ----------------------------------------------------------------------------------
 bool ImageMManager::ValidateRegion() {
        return (m_ValidRegion);
 }
-
+// ----------------------------------------------------------------------------------
 RegionStructUR ImageMManager::GetModifiedRegion() {
        return (this->m_RegionStruct);
 }
+// ----------------------------------------------------------------------------------