for (long aFrameId = 1; aFrameId < theData.myNbFrames; aFrameId++){
VISU::ColoredPrs3d_i* aColoredPrs3d = theData.myPrs[aFrameId];
aColoredPrs3d->SameAs(aPrs3d);
+ // 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.
+ if(theData.myPrsType == VISU::TGAUSSPOINTS) {
+ aColoredPrs3d->UpdateMapperLookupTable();
+ }
}
if ( theAnimator->getAnimationMode() == VISU::Animation::SUCCESSIVE ) {
for (long aFrameId = 0; aFrameId < aFieldData.myNbFrames; aFrameId++) {
VISU::ColoredPrs3d_i* aColoredPrs3d = aFieldData.myPrs[aFrameId];
std::string aTitle = aColoredPrs3d->GetCTitle();
- aColoredPrs3d->SameAs(aPrs3d);
+ aColoredPrs3d->SameAs(aPrs3d);
+ // 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.
+ if(theData.myPrsType == VISU::TGAUSSPOINTS) {
+ aColoredPrs3d->UpdateMapperLookupTable();
+ }
+
aColoredPrs3d->SetTitle(aTitle.c_str());
}
}
#include "VISU_Actor.h"
#include "VISU_PipeLine.hxx"
-#include "VISU_GaussPointsPL.hxx"
#include "SALOME_Event.h"
// 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));
+ gPoints->UpdateMapperLookupTable();
}
// special case for deformed shape
//----------------------------------------------------------------------------
+void
+VISU::ColoredPrs3d_i
+::UpdateMapperLookupTable()
+{
+ ProcessVoidEvent(new TVoidMemFunEvent<VISU_ColoredPL>
+ (GetSpecificPL(), &VISU_ColoredPL::UpdateMapperLookupTable));
+}
+
+//----------------------------------------------------------------------------^
SetValLblFontColor( const vtkFloatingPointType theR,
const vtkFloatingPointType theG,
const vtkFloatingPointType theB );
+
+ virtual
+ void
+ UpdateMapperLookupTable();
+
//----------------------------------------------------------------------------
protected: