]> Creatis software - creaVtk.git/commitdiff
#2527 creaVtk Bug New Normal - Color Vectors Field
authordavila <eduardo.davila@creatis.insa-lyon.fr>
Fri, 6 Feb 2015 13:06:28 +0000 (14:06 +0100)
committerdavila <eduardo.davila@creatis.insa-lyon.fr>
Fri, 6 Feb 2015 13:06:28 +0000 (14:06 +0100)
bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx
lib/creaVtk/vtkVectorsVisu.cpp

index 637898152fa920d21718a8483a5d7d4337074781..59b6821714f9a7f0f98551f6f70108c86221b4ca 100644 (file)
@@ -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() );
index d95b454c9f9d428345d1eb3f44f91be60c88c5f7..af6fe0d9c8eff54dbf9aaacf7a77d4112f494876 100644 (file)
@@ -96,7 +96,25 @@ for (i=0;i<sizeDa;i++)
 //EED         pointdata->AddArray( 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" );