4. Verificar el mecanismo de undo con ByImagePoints
*/
- printf("EED ManualPaint_Model::Process Start \n");
if (bbGetInputActive()==true)
{
if (bbGetInputImage()!=NULL)
long int index, size=dimX*dimY*dimZ;
-printf("EED ManualPaint_Model::Process A.start\n");
std::vector<int> lstX;
std::vector<int> lstY;
std::vector<int> lstZ;
} // if value2
} // if value1
} // for
-printf("EED ManualPaint_Model::Process B.end\n");
size=lstX.size();
long int k1omp=(double)(size-1)*0.0;
} else {
bbSetOutputOut( NULL );
}
- bbSetOutputManualpaintmodel( manualpaintmodel );
-
- printf("EED ManualPaint_Model::Process End \n");
-
+ bbSetOutputManualpaintmodel( manualpaintmodel );
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- printf("EED ManualPaint_Model_paint::Process Start \n");
if (bbGetInputActive()==true)
{
ManualPaintModel *manualpaintmodel=bbGetInputManualPaintModel();
manualpaintmodel->Copy_GeneralAuxFill_to_Results();
} // if Points
} // if Active
- printf("EED ManualPaint_Model_paint::Process End\n");
-
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//virtual
void Image3DDequeUR::CleanURContainerFromIndex( const int& index )
{
- printf("EED Image3DDequeUR::CleanURContainerFromIndex Start \n");
int count = 0;
for( unsigned int i = index; i < this->m_ImgURDeque.size( ); i++ )
{
{
this->m_ImgURDeque.pop_back( );
} //rof
- printf("EED Image3DDequeUR::CleanURContainerFromIndex End \n");
-
}
// ----------------------------------------------------------------------------------
{
this->m_ImgURDeque[ this->m_CurrentURPos ]->LoadImagesToMemory( this->m_GlobalPath );
}
- int currentRedoPos = this->m_CurrentURPos + 1;
+
+ int currentRedoPos = this->m_CurrentURPos + 1;
+
if( ( currentRedoPos < imgURDequeSize ) && !( this->m_ImgURDeque[ currentRedoPos ]->GetStatus( ) ) )
{
this->m_ImgURDeque[ currentRedoPos ]->LoadImagesToMemory( this->m_GlobalPath );
// ----------------------------------------------------------------------------------
void ImageMManager::CalculateMinMaxRegion(const int& i, const int& j, const int& k)
{
- printf("EED ImageMManager::CalculateMinMaxRegion i j k = %d %d %d\n", i, j, k);
- printf("EED ImageMManager::CalculateMinMaxRegion min = %d %d %d\n", this->m_RegionStruct.minX, this->m_RegionStruct.minY, this->m_RegionStruct.minZ);
if (i >= 0 && j >= 0 && k >= 0)
{
if (i <= this->m_RegionStruct.minX) { this->m_RegionStruct.minX = i; } //fi
this->m_ValidRegion = false;
} // if i j k
- if (m_ValidRegion ) printf("EED ImageMManager::CalculateMinMaxRegion true \n");
- if (!m_ValidRegion ) printf("EED ImageMManager::CalculateMinMaxRegion false \n");
+ //if (m_ValidRegion ) printf("EED ImageMManager::CalculateMinMaxRegion true \n");
+ //if (!m_ValidRegion ) printf("EED ImageMManager::CalculateMinMaxRegion false \n");
}
// ----------------------------------------------------------------------------------
m_RestorBaseInitialPointY = imageInfo->GetImageMManager()->GetBaseInitialPointY();
m_RestorBaseInitialPointZ = imageInfo->GetImageMManager()->GetBaseInitialPointZ();
+ printf("EED ImageUndoRedo::DrawUR %d - %d %d - %d %d - %d\n", region.minX, region.maxX, region.minY, region.maxY,region.minZ,region.maxZ);
+
if( img != NULL)
{
int *dim = img->GetDimensions( );
int sizeXImageIn = dim[ 0 ];
-//EED size_t linesize = sizeXImageIn * sizeof(unsigned short);
-
+//EED 2022-02-11
+// size_t linesize = sizeXImageIn * sizeof(unsigned short);
size_t linesize = sizeXImageIn * img->GetScalarSize();
- for( int j = region.minY, y = 0; j <= region.maxY; j++, y++ )
+ int j,k;
+ int y,z;
+ for( j = region.minY, y = 0; j <= region.maxY; j++, y++ )
{
- for( int k = region.minZ, z = 0; k <= region.maxZ; k++, z++ )
+ for( k = region.minZ, z = 0; k <= region.maxZ; k++, z++ )
{
void* ptrsrc = img->GetScalarPointer( 0, y, z );
void* ptrdest = this->m_CurrentImage->GetScalarPointer( region.minX, j, k );
double tmpiglfill2;
bool auxGrayLevelValidationFill;
-
-
- distbasefill = _distancefill * _distancefill;
+ distbasefill = _distancefill * _distancefill;
double difX,difY,difZ,_tmpDistfill;
std::vector<int> lstX;
std::vector<int> lstY;