]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Filter.h
Salome HOME
Implement filter "F9: External Faces"
[modules/shaper.git] / src / ModelAPI / ModelAPI_Filter.h
index 0e5d5b9dfa232f831cbef219ee8f4b769688884b..0469801fe5fbb3fd9b8d85a7ad2d2a4b88ebd6fb 100644 (file)
@@ -21,6 +21,7 @@
 #define ModelAPI_Filter_H_
 
 #include "ModelAPI_FiltersArgs.h"
+#include "ModelAPI_ResultBody.h"
 
 #include <GeomAPI_Shape.h>
 
@@ -41,7 +42,11 @@ public:
   /// This method should contain the filter logic. It returns true if the given shape
   /// is accepted by the filter.
   /// \param theShape the given shape
-  virtual bool isOk(const GeomShapePtr& theShape, const ModelAPI_FiltersArgs& theArgs) const = 0;
+  /// \param theResult parent result of the shape to be checked
+  /// \param theArgs arguments of the filter
+  virtual bool isOk(const GeomShapePtr& theShape,
+                    const ResultPtr& theResult,
+                    const ModelAPI_FiltersArgs& theArgs) const = 0;
 
   /// Returns XML string which represents GUI of the filter
   /// By default it returns nothing (no GUI)