From: eap Date: Wed, 23 May 2007 07:26:05 +0000 (+0000) Subject: NPAL16029 (Gauss Points visualization : bad color for another component that modulus) X-Git-Tag: T15881~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d97ba0a16c9a31a6045998d19dee9f13924ffe1e;p=modules%2Fvisu.git NPAL16029 (Gauss Points visualization : bad color for another component that modulus) in Update(), use GetSourceRange() instead of GetScalarRange() --- diff --git a/src/PIPELINE/VISU_GaussPointsPL.cxx b/src/PIPELINE/VISU_GaussPointsPL.cxx index a27a63ae..ae176e40 100644 --- a/src/PIPELINE/VISU_GaussPointsPL.cxx +++ b/src/PIPELINE/VISU_GaussPointsPL.cxx @@ -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] << " " <GetScalars(); myPSMapper->SetLookupTable( myMapperTable ); - myPSMapper->SetScalarRange( aScalarRange ); + myPSMapper->SetScalarRange( mySourceScalarRange ); this->UpdateGlyph();