From 581ce05fa361c212fc79d0890f58f6a7aead00e0 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 27 Apr 2012 09:19:46 +0000 Subject: [PATCH] IPAL22925: TC6.5.0: scalar bar is built for presentation without Magnitude coloring --- src/VISU_I/VISU_MonoColorPrs_i.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/VISU_I/VISU_MonoColorPrs_i.cc b/src/VISU_I/VISU_MonoColorPrs_i.cc index e3aaeaae..8fdf4101 100644 --- a/src/VISU_I/VISU_MonoColorPrs_i.cc +++ b/src/VISU_I/VISU_MonoColorPrs_i.cc @@ -170,14 +170,15 @@ void VISU::MonoColorPrs_i::UpdateActor(VISU_ActorBase* theActor) { if(VISU_ScalarMapAct* anActor = dynamic_cast(theActor)){ if(IsColored()){ - anActor->SetBarVisibility(true); GetPipeLine()->GetMapper()->SetScalarVisibility(1); }else{ - anActor->SetBarVisibility(false); GetPipeLine()->GetMapper()->SetScalarVisibility(0); anActor->GetProperty()->SetColor(myColor.R,myColor.G,myColor.B); } TSuperClass::UpdateActor(theActor); + + // this method should be called after TSuperClass::UpdateActor() + anActor->SetBarVisibility( IsBarVisible() && IsColored() ); } } -- 2.39.2