X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FModel%2FModel_FiltersFactory.h;h=8dab7427684315c94b7c79fa8b18b5c5ef8e0a91;hb=21b49d1cb352330d2221dbe397a1621ef9b04a01;hp=fdc257e3fd1465bd8f55d49d93680c1786b0a38a;hpb=50a8df0c6a66da8067b16155e5ae39f8f26a7ebc;p=modules%2Fshaper.git diff --git a/src/Model/Model_FiltersFactory.h b/src/Model/Model_FiltersFactory.h index fdc257e3f..8dab74276 100644 --- a/src/Model/Model_FiltersFactory.h +++ b/src/Model/Model_FiltersFactory.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2020 CEA/DEN, EDF R&D +// Copyright (C) 2014-2021 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 @@ -47,6 +47,14 @@ public: ResultPtr theResult, GeomShapePtr theShape); + /// Returns list of all shapes and subshapes in the study, satisfying + /// criteria of all filters of \a theFilterFeature. + /// \param theFiltersFeature feature that contains all information about the filters + /// \param theShapeType the type of sub-shapes to find + virtual std::list< std::pair > select + (const FiltersFeaturePtr& theFilterFeature, + const GeomAPI_Shape::ShapeType theShapeType); + /// Returns the filters that support the given shape type virtual std::list filters(GeomAPI_Shape::ShapeType theType); @@ -66,4 +74,4 @@ private: friend class Model_Session; }; -#endif \ No newline at end of file +#endif