From c8eb318ae1cd9de7827e1d44fbcbb2b18a85fad9 Mon Sep 17 00:00:00 2001 From: davila Date: Fri, 6 Feb 2015 14:06:28 +0100 Subject: [PATCH] #2527 creaVtk Bug New Normal - Color Vectors Field --- bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx | 6 +----- lib/creaVtk/vtkVectorsVisu.cpp | 20 ++++++++++++++++++- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx index 6378981..59b6821 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx @@ -10,12 +10,8 @@ namespace bbcreaVtk void boxcreaVtkPlaneWidget::Execute() // virutal { - printf("EED bbcreaVtkPlaneWidget::Execute (virtual) start \n"); - box->bbSetOutputOut( box->_boxcreavtkplanewidget.GetPlaneSource()->GetOutput() ); - printf("EED bbcreaVtkPlaneWidget::Execute (virtual) start 1\n"); + box->bbSetOutputOut( box->_boxcreavtkplanewidget.GetPlaneSource()->GetOutput() ); box->bbSignalOutputModification(std::string("Out")); - printf("EED bbcreaVtkPlaneWidget::Execute (virtual) end \n"); - box->bbSetOutputCenter( box->_boxcreavtkplanewidget.GetCenter() ); box->bbSignalOutputModification(std::string("Center")); box->bbSetOutputNormal( box->_boxcreavtkplanewidget.GetNormal() ); diff --git a/lib/creaVtk/vtkVectorsVisu.cpp b/lib/creaVtk/vtkVectorsVisu.cpp index d95b454..af6fe0d 100644 --- a/lib/creaVtk/vtkVectorsVisu.cpp +++ b/lib/creaVtk/vtkVectorsVisu.cpp @@ -96,7 +96,25 @@ for (i=0;iAddArray( nda ); //EED bbGetInputIn()->GetPointData()->AddArray( nda ); //EED2 _pdm->ScalarVisibilityOn(); - _pdm->SetScalarModeToUsePointFieldData(); + + + + + + _pdm->ScalarVisibilityOn(); + _pdm->SetColorModeToMapScalars(); + //_pdm->SetColorModeToDefault(); + // _pdm->SetColorModeToDirectScalars(); // NOT compile + _pdm->SetScalarModeToUsePointFieldData(); + _pdm->ImmediateModeRenderingOn(); + + _LutEED->SetVectorModeToComponent(); + //_LutEED->SetVectorModeToRGBColors(); + //_LutEED->SetVectorModeToMagnitud(); + + + +// _pdm->SetScalarModeToUsePointFieldData(); _pdm->SetLookupTable( _LutEED ); _pdm->SelectColorArray( "GlyphVector" ); -- 2.47.1