VISU_ScalarMapAct
::AddToRender(vtkRenderer* theRenderer)
{
- VISU_Actor::AddToRender(theRenderer);
+ Superclass::AddToRender(theRenderer);
+
if(myScalarBar)
theRenderer->AddActor2D(myScalarBar);
}
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