GetSourceRange( aRange );
SetScalarRange( aRange );
}
+
+//----------------------------------------------------------------------------
+void
+VISU_ColoredPL
+::UpdateMapperLookupTable()
+{
+ //rnv: This method update pointer to the myMapperTable in the MapperHolder
+ GetMapperHolder()->SetLookupTable(GetMapperTable());
+}
#include "VISU_Actor.h"
#include "VISU_PipeLine.hxx"
+#include "VISU_GaussPointsPL.hxx"
#include "SALOME_Event.h"
aPrs3d->SameAs(thePrs);
+ // rnv: fix for the 20870: EDF 1410 VISU: Anomaly in the Gauss point representation.
+ // special case for the "Gauss Points" presentation,
+ // update the LookupTable in the mapper, after assign properties of the presentation
+ // using SameAs(...) method.
+ VISU::GaussPoints_i* gPoints = dynamic_cast<VISU::GaussPoints_i*>( aPrs3d.get() );
+ if(gPoints) {
+ ProcessVoidEvent(new TVoidMemFunEvent<VISU_GaussPointsPL>
+ (gPoints->GetSpecificPL(), &VISU_GaussPointsPL::UpdateMapperLookupTable));
+ }
+
// special case for deformed shape
VISU::DeformedShapeAndScalarMap_i* dShape =
dynamic_cast<VISU::DeformedShapeAndScalarMap_i*>( aPrs3d.get() );