{
if(VISU_ScalarMapAct* anActor = dynamic_cast<VISU_ScalarMapAct*>(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() );
}
}