Salome HOME
Fix a bug - salome.py is not imported here and this causes run-time Python exception
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_VTKUtils.cxx
index 15a7be0391e4de7175d487e57f992512a4c42547..8bd6cdce93832a9f149e319db1cdd6a6c52dabd4 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "SMESHGUI_VTKUtils.h"
 #include "SMESHGUI_Utils.h"
+#include "SMESHGUI_Filter.h"
 
 #include <vtkRenderer.h>
 #include <vtkActorCollection.h>
@@ -469,6 +470,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)
   {