-/*
- * 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();
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) {
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);
}
+// ----------------------------------------------------------------------------------