]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL6938
authorsan <san@opencascade.com>
Wed, 2 Feb 2005 13:51:36 +0000 (13:51 +0000)
committersan <san@opencascade.com>
Wed, 2 Feb 2005 13:51:36 +0000 (13:51 +0000)
src/SMESHGUI/SMESHGUI_Filter.h
src/SMESHGUI/SMESHGUI_VTKUtils.cxx

index fa0317db5789b0b006dcab26f409e1aef734d42e..a7fc9e1b3dffa7cb3d6f27b82eae8e603d4484f3 100755 (executable)
@@ -44,7 +44,8 @@ enum SMESHGUI_FilterType
   SMESHGUI_VolumeFilter       =  3,
   SMESHGUI_AllElementsFilter  =  4,
   SMESHGUI_QuadFilter         =  5,
-  SMESHGUI_TriaFilter         =  6
+  SMESHGUI_TriaFilter         =  6,
+  SMESHGUI_LastFilter
 };
 
 /*
index 15a7be0391e4de7175d487e57f992512a4c42547..32d52e4546a2b41549900e59bf569ce660986c37 100644 (file)
@@ -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)
   {