From d17096bbba279e163fc30341280948c7467bd69d Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 6 Dec 2007 13:24:11 +0000 Subject: [PATCH] Fix for Bug NPAL13178 EDF243 VISU : post_processing for fields at nodes (An add-on: to provide ability to change magnification only for visible presentations) --- src/OBJECT/VISU_ScalarMapAct.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/OBJECT/VISU_ScalarMapAct.cxx b/src/OBJECT/VISU_ScalarMapAct.cxx index 2db6f416..e3e92757 100644 --- a/src/OBJECT/VISU_ScalarMapAct.cxx +++ b/src/OBJECT/VISU_ScalarMapAct.cxx @@ -171,6 +171,9 @@ class VISU_PointsDeviceActor: public VISU_GaussDeviceActorBase 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; @@ -410,7 +413,9 @@ void VISU_ScalarMapAct ::SetVisibility(int theMode) { - Superclass::SetVisibility(theMode); + Superclass::SetVisibility( theMode ); + + myPointsActor->SetVisibility( theMode ); if(myScalarBar) myScalarBar->SetVisibility(myBarVisibility && theMode); -- 2.39.2