From 3da89ab0533629f38d5c96c07967fd391196fd5e Mon Sep 17 00:00:00 2001 From: san Date: Wed, 2 Feb 2005 13:51:36 +0000 Subject: [PATCH] PAL6938 --- src/SMESHGUI/SMESHGUI_Filter.h | 3 ++- src/SMESHGUI/SMESHGUI_VTKUtils.cxx | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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) { -- 2.39.2