From: vsv Date: Mon, 10 Feb 2020 13:24:29 +0000 (+0300) Subject: Define isMultiple method in selection filters X-Git-Tag: V9_5_0a1~14^2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=42b446e082bb752b9cba8fe547d3bdeac37eb51d;p=modules%2Fshaper.git Define isMultiple method in selection filters --- diff --git a/src/FiltersPlugin/FiltersPlugin_OnGeometry.h b/src/FiltersPlugin/FiltersPlugin_OnGeometry.h index c90e5dd87..2d25d4266 100644 --- a/src/FiltersPlugin/FiltersPlugin_OnGeometry.h +++ b/src/FiltersPlugin/FiltersPlugin_OnGeometry.h @@ -48,6 +48,9 @@ public: virtual bool isOk(const GeomShapePtr& theShape, const ResultPtr&, const ModelAPI_FiltersArgs& theArgs) const override; + /// Returns True if the filter can be used several times within one filtering + virtual bool isMultiple() const { return true; } + /// Returns XML string which represents GUI of the filter virtual std::string xmlRepresentation() const override; diff --git a/src/ModelAPI/ModelAPI_Filter.h b/src/ModelAPI/ModelAPI_Filter.h index 4adeec432..254392411 100644 --- a/src/ModelAPI/ModelAPI_Filter.h +++ b/src/ModelAPI/ModelAPI_Filter.h @@ -50,6 +50,9 @@ public: const ResultPtr& theResult, const ModelAPI_FiltersArgs& theArgs) const = 0; + /// Returns True if the filter can be used several times within one filtering + virtual bool isMultiple() const { return false; } + /// Returns XML string which represents GUI of the filter /// By default it returns nothing (no GUI) virtual std::string xmlRepresentation() const { return ""; }