From c01edb49ae77f7dc7ba3aaede91e6323a968dc85 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 6 Feb 2006 07:44:00 +0000 Subject: [PATCH] Change direct pointing to the base VISU_Actor class to more generic way - Superclass --- src/OBJECT/VISU_ScalarMapAct.cxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/OBJECT/VISU_ScalarMapAct.cxx b/src/OBJECT/VISU_ScalarMapAct.cxx index 73112dae..93445e00 100644 --- a/src/OBJECT/VISU_ScalarMapAct.cxx +++ b/src/OBJECT/VISU_ScalarMapAct.cxx @@ -62,7 +62,8 @@ void VISU_ScalarMapAct ::AddToRender(vtkRenderer* theRenderer) { - VISU_Actor::AddToRender(theRenderer); + Superclass::AddToRender(theRenderer); + if(myScalarBar) theRenderer->AddActor2D(myScalarBar); } @@ -71,24 +72,27 @@ void VISU_ScalarMapAct ::RemoveFromRender(vtkRenderer* theRenderer) { - VISU_Actor::RemoveFromRender(theRenderer); if(myScalarBar) theRenderer->RemoveActor(myScalarBar); + + Superclass::RemoveFromRender(theRenderer); } void VISU_ScalarMapAct ::SetVisibility(int theMode) { - VISU_Actor::SetVisibility(theMode); - if(myScalarBar) myScalarBar->SetVisibility(myBarVisibility && theMode); + Superclass::SetVisibility(theMode); + + if(myScalarBar) + myScalarBar->SetVisibility(myBarVisibility && theMode); } int VISU_ScalarMapAct ::GetVisibility() { - return VISU_Actor::GetVisibility(); + return Superclass::GetVisibility(); } void -- 2.39.2