From: eduardo.davila@creatis.insa-lyon.fr Date: Tue, 22 Jul 2025 15:26:48 +0000 (+0200) Subject: #3580 Bug DrawAxisTree3D X-Git-Url: http://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=147ea8d0631991fe4173e0a0ffa54ab174c67a95;p=creaMaracasVisu.git #3580 Bug DrawAxisTree3D --- diff --git a/bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx b/bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx index 02d0f4a..54c73fe 100644 --- a/bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx +++ b/bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx @@ -194,7 +194,7 @@ void DrawAxisTree3D::Process() // Adding actors if (bbGetInputActive()==true) { - if ( (bbGetInputlstPointX().size()==bbGetInputlstPointY().size()) && + if ( (bbGetInputlstPointX().size()==bbGetInputlstPointY().size()) && (bbGetInputlstPointX().size()==bbGetInputlstPointZ().size()) ) { int iGeneral=0; @@ -215,8 +215,9 @@ void DrawAxisTree3D::Process() { bbSetOutputOutAxis( vecVtkActors[ bbGetInputiAxis() ] ); } else { - printf("DrawAxisTree3D .ERROR. iAxis for exist in actors vector ...\n"); - } // if + printf("DrawAxisTree3D .ERROR. iAxis not exist in actors vector ...\n"); + bbSetOutputOutAxis( NULL ); + } // if } else { printf("\nDrawAxisTree3D .ERROR. size of vectors lstPointX.size=%d lstPointY.size=%d lstPointZ.size=%d are not coherent \n\n",bbGetInputlstPointX().size(), bbGetInputlstPointY().size(), bbGetInputlstPointZ().size() ); }// size X Y Z @@ -261,23 +262,18 @@ void DrawAxisTree3D::bbUserSetDefaultValues() bbSetInputColourLaw(1); bbSetInputTransform(NULL); bbSetOutputOutAxis(NULL); - } +//----------------------------------------------------------------- +void DrawAxisTree3D::bbUserInitializeProcessing() +{ +} - //----------------------------------------------------------------- - void DrawAxisTree3D::bbUserInitializeProcessing() - { - } - - //----------------------------------------------------------------- - void DrawAxisTree3D::bbUserFinalizeProcessing() - { - } - - //----------------------------------------------------------------- - +//----------------------------------------------------------------- +void DrawAxisTree3D::bbUserFinalizeProcessing() +{ } -// EO namespace bbcreaMaracasVisu + +}// EO namespace bbcreaMaracasVisu