From: davila Date: Fri, 6 Feb 2015 13:06:28 +0000 (+0100) Subject: #2527 creaVtk Bug New Normal - Color Vectors Field X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c8eb318ae1cd9de7827e1d44fbcbb2b18a85fad9;p=creaVtk.git #2527 creaVtk Bug New Normal - Color Vectors Field --- 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" );