// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
+
if (bbGetInputImage()!=NULL)
{
+
manualpaintmodel->SetActive( bbGetInputActive() );
manualpaintmodel->SetTool( bbGetInputTool() );
manualpaintmodel->Set2D3D( bbGetInput2D3D() );
manualpaintmodel->SetDistanceFill( bbGetInputDistanceFill() );
manualpaintmodel->SetRangeMin( bbGetInputRange()[0] );
manualpaintmodel->SetRangeMax( bbGetInputRange()[1] );
+
if (bbGetInputPoint().size()==3)
{
manualpaintmodel->PaintImage( bbGetInputPoint()[0] , bbGetInputPoint()[1] , bbGetInputPoint()[2] );
} // if Points
+
+
if ( bbGetInputByLstPointsX().size()!=0 )
{
int i,size = bbGetInputByLstPointsX().size();
// int ia,ja,ka;
// int ii,jj,kk;
int ext[6];
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
bbGetInputByImagePoints()->GetWholeExtent(ext);
+#else
+ bbGetInputByImagePoints()->GetExtent(ext);
+#endif
+
int dimX=ext[1]-ext[0]+1;
int dimY=ext[3]-ext[2]+1;
int dimZ=ext[5]-ext[4]+1;
printf("ManualPaint_Model %d%\n", 100 );
} // if ByImagePoints
+
+
+
} else {
printf("EED Warning: Image not set. Box creaMaracasVisu::ManualPaint_Model (BBTK) \n");
- } // if
+ } // if bbGetInputImage()
+
if (bbGetInputImage2()!=NULL)
{
} else {
bbSetOutputOut( NULL );
}
+
}
//=====
// 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)