]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Change direct pointing to the base VISU_Actor class to more generic way - Superclass
authorapo <apo@opencascade.com>
Mon, 6 Feb 2006 07:44:00 +0000 (07:44 +0000)
committerapo <apo@opencascade.com>
Mon, 6 Feb 2006 07:44:00 +0000 (07:44 +0000)
src/OBJECT/VISU_ScalarMapAct.cxx

index 73112daee3ace7df85db0800aa5ea5dfa40b22e5..93445e00fbd7d35206fc6e311d4b997978354769 100644 (file)
@@ -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