Salome HOME
updated copyright message
[modules/shaper.git] / src / FiltersPlugin / FiltersPlugin_TopoConnectedFaces.py
index 6f27040e9da26f4c6f54373cd33c92b17a88f352..5af19bceab1d28979167f996fdf90b959621bf7b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -48,6 +48,10 @@ class FiltersPlugin_TopoConnectedFaces(ModelAPI_Filter):
     """ Supported types of filtered shapes """
     return theType == GeomAPI_Shape.FACE
 
+  def isMultiple(self):
+    """ Returns True if the filter can be used several times within one selection """
+    return True
+
   def isOk(self, theShape, theResult, theArgs):
     """ True if theShape is applicable for the filter """
     selectedShapeAttr = modelAPI_AttributeSelection(theArgs.argument("Shape"))
@@ -98,8 +102,8 @@ class FiltersPlugin_TopoConnectedFaces(ModelAPI_Filter):
 
   def initAttributes(self, theArgs):
     """ Initializes arguments of a filter """
-    theArgs.initAttribute("Shape", ModelAPI_AttributeSelection_typeId())
-    theArgs.initAttribute("Propagation", ModelAPI_AttributeBoolean_typeId())
+    theArgs.initAttribute("Shape", ModelAPI_AttributeSelection.typeId())
+    theArgs.initAttribute("Propagation", ModelAPI_AttributeBoolean.typeId())
 
   def adjacentFaces(self, theFace, theMapSA, theShapeType, theApplicableFaces, theRecursive = True):
     """ Find all faces neighbour to theFace """