SHAPER
9.12.0
|
Manages registering of filters. More...
Public Member Functions | |
virtual void | registerFilter (const std::string &theID, ModelAPI_Filter *theFilter)=0 |
Register an instance of a filter. More... | |
virtual bool | isValid (FeaturePtr theFiltersFeature, ResultPtr theResult, GeomShapePtr theShape)=0 |
Returns true if all filters of the Filters feature are ok for the Shape (taking into account the Reversed states). More... | |
virtual std::list< std::pair< ResultPtr, GeomShapePtr > > | select (const FiltersFeaturePtr &theFilterFeature, const GeomAPI_Shape::ShapeType theShapeType)=0 |
Returns list of all shapes and subshapes in the study, satisfying criteria of all filters of theFilterFeature. More... | |
virtual std::list< FilterPtr > | filters (GeomAPI_Shape::ShapeType theType)=0 |
Returns the filters that support the given shape type. More... | |
virtual FilterPtr | filter (std::string theID)=0 |
Returns a filter by ID. More... | |
virtual std::string | id (FilterPtr theFilter)=0 |
Returns a filter ID by the filter pointer. More... | |
Protected Member Functions | |
ModelAPI_FiltersFactory () | |
Get instance from Session. More... | |
Manages registering of filters.
|
inlineprotected |
Get instance from Session.
|
pure virtual |
Register an instance of a filter.
theID | unique identifier of the filter, not necessary equal to the name of filter |
theFilter | the filter's instance |
Implemented in Model_FiltersFactory.
|
pure virtual |
Returns true if all filters of the Filters feature are ok for the Shape (taking into account the Reversed states).
theFiltersFeature | feature that contains all information about the filters |
theResult | parent result of the shape to check |
theShape | the checked shape |
Implemented in Model_FiltersFactory.
|
pure virtual |
Returns list of all shapes and subshapes in the study, satisfying criteria of all filters of theFilterFeature.
theFiltersFeature | feature that contains all information about the filters |
theShapeType | the type of sub-shapes to find |
Implemented in Model_FiltersFactory.
|
pure virtual |
Returns the filters that support the given shape type.
Implemented in Model_FiltersFactory.
|
pure virtual |
Returns a filter by ID.
Implemented in Model_FiltersFactory.
|
pure virtual |
Returns a filter ID by the filter pointer.
Implemented in Model_FiltersFactory.