]> Creatis software - bbtk.git/commitdiff
#3490 Init param PolyDataToActor
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 7 Sep 2022 13:20:27 +0000 (15:20 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 7 Sep 2022 13:20:27 +0000 (15:20 +0200)
kernel/src/bbtkBlackBox.cxx
packages/vtk/src/bbvtkPolyDataToActor.cxx
packages/wx/src/bbwxLayoutTab.cxx

index b9f376a45c2a28abd031c0845480c69612860a24..9848c5bc864c0439c54230c6e8009953b1c0dbd7 100644 (file)
@@ -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))
index ae47cccd7854803109b4995e03e000fb249679d9..fefe8eb5887febd3cfed5989061091eaf8c4a70e 100644 (file)
 #include "vtkCleanPolyData.h"
 #include "vtkFieldData.h"
 
+//--
+#include <vtkGlyph3D.h>
+#include <vtkArrowSource.h>
+#include <vtkPolyDataNormals.h>
+//--
+
 #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;
index f0bfc7cf1fcbbc8b4974601a546e84c22fe198c6..6923062550b8500ce8c48bc16704d33645d9afca 100644 (file)
@@ -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();
   }