From: apo Date: Mon, 6 Feb 2006 07:44:00 +0000 (+0000) Subject: Change direct pointing to the base VISU_Actor class to more generic way - Superclass X-Git-Tag: mergeto_trunk_07Feb06~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c01edb49ae77f7dc7ba3aaede91e6323a968dc85;p=modules%2Fvisu.git Change direct pointing to the base VISU_Actor class to more generic way - Superclass --- 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