20 #ifndef Model_FiltersFactory_H_
21 #define Model_FiltersFactory_H_
25 #include <ModelAPI_FiltersFactory.h>
46 virtual bool isValid(FeaturePtr theFiltersFeature,
48 GeomShapePtr theShape);
54 virtual std::list< std::pair<ResultPtr, GeomShapePtr> >
select
55 (
const FiltersFeaturePtr& theFilterFeature,
62 virtual FilterPtr
filter(std::string theID);
65 virtual std::string
id(FilterPtr theFilter);
72 std::map<std::string, FilterPtr> myFilters;
ShapeType
Shape type enum.
Definition: GeomAPI_Shape.h:46
Definition: ModelAPI_Filter.h:34
Manages registering of filters.
Definition: ModelAPI_FiltersFactory.h:35
Manages registering of filters.
Definition: Model_FiltersFactory.h:35
Model_FiltersFactory()
Get instance from Session.
Definition: Model_FiltersFactory.h:69
virtual std::list< FilterPtr > filters(GeomAPI_Shape::ShapeType theType)
Returns the filters that support the given shape type.
Definition: Model_FiltersFactory.cpp:212
virtual FilterPtr filter(std::string theID)
Returns a filter by ID.
Definition: Model_FiltersFactory.cpp:225
virtual void registerFilter(const std::string &theID, ModelAPI_Filter *theFilter)
Register an instance of a filter.
Definition: Model_FiltersFactory.cpp:34
virtual std::string id(FilterPtr theFilter)
Returns a filter ID by the filter pointer.
Definition: Model_FiltersFactory.cpp:232
virtual bool isValid(FeaturePtr theFiltersFeature, ResultPtr theResult, GeomShapePtr theShape)
Returns true if all filters of the Filters feature are ok for the Shape (taking into account the Reve...
Definition: Model_FiltersFactory.cpp:109
virtual std::list< std::pair< ResultPtr, GeomShapePtr > > select(const FiltersFeaturePtr &theFilterFeature, const GeomAPI_Shape::ShapeType theShapeType)
Returns list of all shapes and subshapes in the study, satisfying criteria of all filters of theFilte...
Definition: Model_FiltersFactory.cpp:168
Object that knows (from the initial XML file) which plugin contains which feature,...
Definition: Model_Session.h:43