]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NPAL16029 (Gauss Points visualization : bad color for another component that modulus)
authoreap <eap@opencascade.com>
Wed, 23 May 2007 07:26:05 +0000 (07:26 +0000)
committereap <eap@opencascade.com>
Wed, 23 May 2007 07:26:05 +0000 (07:26 +0000)
      in Update(), use GetSourceRange() instead of GetScalarRange()

src/PIPELINE/VISU_GaussPointsPL.cxx

index a27a63aee60f4af1be634abfdea32830a9aa4563..ae176e4052181ed0249de94eb9342a4b572de71f 100644 (file)
@@ -228,10 +228,9 @@ VISU_GaussPointsPL
 ::Update()
 {
   //cout << "VISU_GaussPointsPL::Update()" << endl;
-  vtkFloatingPointType* aScalarRange = GetScalarRange();
-  mySourceScalarRange[0] = aScalarRange[0];
-  mySourceScalarRange[1] = aScalarRange[1];
-  myDeltaScalarRange = aScalarRange[1] - aScalarRange[0];
+  GetSourceRange( mySourceScalarRange );
+  myDeltaScalarRange = mySourceScalarRange[1] - mySourceScalarRange[0];
+  cout << mySourceScalarRange[1] << " " <<mySourceScalarRange[0] << " " << GetScalarMode() << endl;
 
   SetAverageCellSize( VISU_DeformedShapePL::GetScaleFactor( GetParentMesh() ) );
 
@@ -241,7 +240,7 @@ VISU_GaussPointsPL
   myScalarArray = aCellData->GetScalars();
 
   myPSMapper->SetLookupTable( myMapperTable );
-  myPSMapper->SetScalarRange( aScalarRange );
+  myPSMapper->SetScalarRange( mySourceScalarRange );
 
   this->UpdateGlyph();