From: Eduardo DAVILA Date: Wed, 7 Sep 2022 13:20:27 +0000 (+0200) Subject: #3490 Init param PolyDataToActor X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b19674b7569940466cda380e63350157866dd76b;p=bbtk.git #3490 Init param PolyDataToActor --- diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index b9f376a..9848c5b 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -748,9 +748,9 @@ namespace bbtk ( (bbBoxProcessModeIsManual()==true)&&(bbLetRecursiveExecuteManualMode==true) ) ) { -// printf("EED BlackBox::bbRecursiveExecute bbProcess start %s \n", bbGetFullName().c_str() ); + // printf("EED BlackBox::bbRecursiveExecute bbProcess start %s \n", bbGetFullName().c_str() ); this->bbProcess(); -// printf("EED BlackBox::bbRecursiveExecute bbProcess end %s \n", bbGetFullName().c_str() ); + // printf("EED BlackBox::bbRecursiveExecute bbProcess end %s \n", bbGetFullName().c_str() ); } // Manual analysis //EED ups if ((bbBoxProcessModeIsManual()==true) && (bbLetRecursiveExecuteManualMode==false)) diff --git a/packages/vtk/src/bbvtkPolyDataToActor.cxx b/packages/vtk/src/bbvtkPolyDataToActor.cxx index ae47ccc..fefe8eb 100644 --- a/packages/vtk/src/bbvtkPolyDataToActor.cxx +++ b/packages/vtk/src/bbvtkPolyDataToActor.cxx @@ -46,6 +46,12 @@ #include "vtkCleanPolyData.h" #include "vtkFieldData.h" +//-- +#include +#include +#include +//-- + #include "bbvtkPolyDataToActor.h" #include "bbvtkPackage.h" @@ -201,11 +207,38 @@ printf("EED WARNNING! PolyDataToActor::DoProcess which is the default values o vtkactor->SetUserTransform( bbGetInputTransform() ); } bbSetOutputOut( vtkactor ); + + +/* / >>>> + AAAAA + vtkArrowSource *arrow = vtkArrowSource::New(); + vtkPolyDataNormals *normals = vtkPolyDataNormals::New(); + normals->SetInputData( bbGetInputIn() ); + vtkGlyph3D *glyph = vtkGlyph3D::New(); + glyph->SetInputData(normals->GetOutput() ); + glyph->SetSourceData(arrow->GetOutput() ); + glyph->SetVectorModeToUseNormal(); + glyph->SetScaleModeToScaleByVector(); + glyph->SetScaleFactor(10); + vtkPolyDataMapper *mapper2 = vtkPolyDataMapper::New(); + mapper2->SetInputData( glyph->GetOutput() ); + vtkActor *actor2 = vtkActor::New(); + actor2->SetMapper(mapper2); + actor2->GetProperty()->SetColor(1, 0, 0); +*/ + + + // Interface Update if ((actorAdded==false) && (bbGetInputRenderer()!=NULL )) { actorAdded=true; bbGetInputRenderer()->AddActor( vtkactor ); +//-- +// bbGetInputRenderer()->AddActor( actor2 ); +//-- + + } // actorAdded if (bbGetInputScalarVisibility()==true ) { @@ -234,7 +267,7 @@ printf("EED WARNNING! PolyDataToActor::DoProcess which is the default values o } // ScalarVisibility } else { ok_removeActor=true; - printf("EED Warnning! PolyDataToActor::DoProcess In (PolyData) not defined. \n" ); +// printf("EED Warnning! PolyDataToActor::DoProcess In (PolyData) not defined. \n" ); }// if In !=NULL } else { ok_removeActor=true; diff --git a/packages/wx/src/bbwxLayoutTab.cxx b/packages/wx/src/bbwxLayoutTab.cxx index f0bfc7c..6923062 100644 --- a/packages/wx/src/bbwxLayoutTab.cxx +++ b/packages/wx/src/bbwxLayoutTab.cxx @@ -95,7 +95,6 @@ namespace bbwx void TabWidget::OnTabChange( wxEvent& ) { - printf("EED TabWidget::OnTabChange page=%d \n", mwxNotebook->GetSelection()); mBox->bbSetOutputSelection( mwxNotebook->GetSelection() ); mBox->bbSignalOutputModification(); }