From: apo Date: Thu, 6 Dec 2007 13:24:11 +0000 (+0000) Subject: Fix for Bug NPAL13178 X-Git-Tag: mergefrom_MERGE_MULTIPR_EVOLUTION_07-Dec-07~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d17096bbba279e163fc30341280948c7467bd69d;p=modules%2Fvisu.git 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) --- 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);