X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_FiltersFactory.h;h=22278c29d83be48f095093b83b798ee958807b97;hb=21058755486d6cf108eb1c3e2c09771bec3fa3a5;hp=d8735a5c69536885ccb4c4ed2007c30251580b63;hpb=52b0fdb3bbe3b4ca84519c9dd752f89a73bf6c05;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_FiltersFactory.h b/src/ModelAPI/ModelAPI_FiltersFactory.h index d8735a5c6..22278c29d 100644 --- a/src/ModelAPI/ModelAPI_FiltersFactory.h +++ b/src/ModelAPI/ModelAPI_FiltersFactory.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2020 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 @@ -50,6 +50,14 @@ public: ResultPtr theResult, GeomShapePtr theShape) = 0; + /// 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) = 0; + /// Returns the filters that support the given shape type virtual std::list filters(GeomAPI_Shape::ShapeType theType) = 0; @@ -64,4 +72,4 @@ protected: ModelAPI_FiltersFactory() {} }; -#endif \ No newline at end of file +#endif