]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix on Bug PAL7927
authorapo <apo@opencascade.com>
Mon, 31 Jan 2005 13:46:34 +0000 (13:46 +0000)
committerapo <apo@opencascade.com>
Mon, 31 Jan 2005 13:46:34 +0000 (13:46 +0000)
   REGRESSION: It is an incorrect import of the MED file and incorrect coloring of the scalar map.
(Previous coloring was recovered)

src/OBJECT/VISU_ScalarMapAct.cxx

index d50fc26cf023e1d7beaf5580581a3da52a6ca4a1..6323ce13768f2b1143bcd921b07f475406d1a12e 100644 (file)
@@ -39,9 +39,12 @@ VISU_ScalarMapAct::VISU_ScalarMapAct(){
   myScalarBar = VISU_ScalarBarActor::New();
 
   vtkProperty* aProperty = GetProperty();
-  aProperty->SetAmbient(1.0); 
-  aProperty->SetDiffuse(0.0);
-  aProperty->SetSpecular(0.0);
+  aProperty->SetAmbient(0.5); 
+  aProperty->SetDiffuse(0.2);
+  aProperty->SetSpecular(0.2);
+  //aProperty->SetAmbient(1.0); 
+  //aProperty->SetDiffuse(0.0);
+  //aProperty->SetSpecular(0.0);
 
   myProperty->DeepCopy(aProperty);
 }