From: san Date: Wed, 2 Feb 2005 13:51:36 +0000 (+0000) Subject: PAL6938 X-Git-Tag: V2_2_0b4~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3da89ab0533629f38d5c96c07967fd391196fd5e;p=modules%2Fsmesh.git PAL6938 --- diff --git a/src/SMESHGUI/SMESHGUI_Filter.h b/src/SMESHGUI/SMESHGUI_Filter.h index fa0317db5..a7fc9e1b3 100755 --- a/src/SMESHGUI/SMESHGUI_Filter.h +++ b/src/SMESHGUI/SMESHGUI_Filter.h @@ -44,7 +44,8 @@ enum SMESHGUI_FilterType SMESHGUI_VolumeFilter = 3, SMESHGUI_AllElementsFilter = 4, SMESHGUI_QuadFilter = 5, - SMESHGUI_TriaFilter = 6 + SMESHGUI_TriaFilter = 6, + SMESHGUI_LastFilter }; /* diff --git a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx index 15a7be039..32d52e454 100644 --- a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx @@ -469,6 +469,11 @@ namespace SMESH{ theStyle->RemoveFilter(theId); } + void RemoveFilters(VTKViewer_InteractorStyleSALOME* theStyle){ + for ( int id = SMESHGUI_NodeFilter; theStyle && id < SMESHGUI_LastFilter; id++ ) + theStyle->RemoveFilter( id ); + } + bool IsValid(SALOME_Actor* theActor, int theCellId, VTKViewer_InteractorStyleSALOME* theStyle) {