]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL21305 - scalar bar does not correspond to min/max of ScalarMap built on group
authorouv <ouv@opencascade.com>
Wed, 7 Oct 2009 12:04:26 +0000 (12:04 +0000)
committerouv <ouv@opencascade.com>
Wed, 7 Oct 2009 12:04:26 +0000 (12:04 +0000)
src/PIPELINE/VISU_GaussPointsPL.cxx
src/VISU_I/VISU_GaussPoints_i.cc
src/VISU_I/VISU_ScalarMap_i.cc

index 0355895aa76728e865bca9013f81ea4727ad33fa..642a99c1706e2992d23ff8809a996d07902f52b7 100644 (file)
@@ -828,6 +828,9 @@ int
 VISU_GaussPointsPL
 ::AddGeometry(vtkDataSet* theGeometry)
 {
+  // Fix for issue 0020167 (like in VISU_ScalarMapPL)
+  if(!IsExternalGeometryUsed())
+    ClearGeometry();
   myAppendFilter->AddInput(theGeometry);
   return GetNumberOfGeometry();
 }
index 2267585565a2dd3348f1cd9e9eb3d70a7dda2fd1..bf7f6b26e454c0acbb12a49637cd8d5452ad0aa7 100644 (file)
@@ -730,6 +730,9 @@ VISU::GaussPoints_i
       if(aNbGroups == 0)
        UpdateIcon();
       */
+      // To update scalar range according to the new input (IPAL21305)
+      if(!IsRangeFixed())
+        SetSourceRange();
     }
   }
 }
index 69decca4c80ea69ca8c77baf03b0c8c5d612def0..c50e2d74b673303f0b302816ad789d5db9bafe38 100644 (file)
@@ -310,7 +310,10 @@ VISU::ScalarMap_i
       GetSpecificPL()->AddGeometry(anIDMapper->GetOutput());
       myGroupNames.insert(theGroupName);
       if(aNbGroups == 0)
-       UpdateIcon();
+        UpdateIcon();
+      // To update scalar range according to the new input (IPAL21305)
+      if(!IsRangeFixed())
+        SetSourceRange();
     }
   }
 }