EDF243 VISU : post_processing for fields at nodes
(An add-on: to provide ability to change magnification only for visible presentations)
switch( myInteractor->GetKeyCode() ) {
case 'M' :
case 'm' : {
+ if ( !GetVisibility() )
+ return;
+
static vtkFloatingPointType anIncrement = 2;
vtkFloatingPointType aMagnification = GetPointSpriteMapper()->GetPointSpriteMagnification();
vtkFloatingPointType coefficient = myInteractor->GetShiftKey() ? anIncrement : 1 / anIncrement;
VISU_ScalarMapAct
::SetVisibility(int theMode)
{
- Superclass::SetVisibility(theMode);
+ Superclass::SetVisibility( theMode );
+
+ myPointsActor->SetVisibility( theMode );
if(myScalarBar)
myScalarBar->SetVisibility(myBarVisibility && theMode);