X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFiltersPlugin%2FFiltersPlugin_BelongsTo.h;h=49e315717b9976601a8a72a38c513588ea35ee69;hb=04e2497fc973f0afc95d0a4a6f95e37fb27f45e8;hp=197626930d47eeb77ca64865df86658ab9e6f09b;hpb=38f557fe5c90f6b272ddc70e22a06eacf0fb4b45;p=modules%2Fshaper.git diff --git a/src/FiltersPlugin/FiltersPlugin_BelongsTo.h b/src/FiltersPlugin/FiltersPlugin_BelongsTo.h index 197626930..49e315717 100644 --- a/src/FiltersPlugin/FiltersPlugin_BelongsTo.h +++ b/src/FiltersPlugin/FiltersPlugin_BelongsTo.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 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 @@ -24,9 +24,9 @@ #include -/**\class FiltersPlugin_HorizontalFace +/**\class FiltersPlugin_BelongsTo * \ingroup DataModel -* \brief Filter for horizontal faces only +* \brief Filter for objects which are part of specified objects */ class FiltersPlugin_BelongsTo : public ModelAPI_Filter { @@ -44,11 +44,15 @@ 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 override; + /// \param theArgs arguments of the filter + virtual bool isOk(const GeomShapePtr& theShape, const ResultPtr&, + const ModelAPI_FiltersArgs& theArgs) const override; /// Returns XML string which represents GUI of the filter virtual std::string xmlRepresentation() const override; + + /// Initializes arguments of a filter. + virtual void initAttributes(ModelAPI_FiltersArgs& theArguments) override; }; #endif \ No newline at end of file