20 #ifndef FILTERSPLUGIN_FEATUREEDGES_H_
21 #define FILTERSPLUGIN_FEATUREEDGES_H_
23 #include "FiltersPlugin.h"
25 #include <GeomAPI_Shape.h>
26 #include <ModelAPI_Filter.h>
30 typedef std::set<GeomShapePtr, GeomAPI_Shape::Comparator> SetOfShapes;
43 virtual const std::string&
name()
const {
44 static const std::string kName(
"Feature edges");
55 virtual bool isOk(
const GeomShapePtr& theShape,
const ResultPtr&,
66 SetOfShapes myCachedShapes;
70 GeomShapePtr myBaseShape;
Filter for edges with feature angle.
Definition: FiltersPlugin_FeatureEdges.h:37
virtual std::string xmlRepresentation() const override
Returns XML string which represents GUI of the filter.
Definition: FiltersPlugin_FeatureEdges.cpp:135
virtual bool isOk(const GeomShapePtr &theShape, const ResultPtr &, const ModelAPI_FiltersArgs &theArgs) const override
This method should contain the filter logic.
Definition: FiltersPlugin_FeatureEdges.cpp:99
virtual const std::string & name() const
Returns name of the filter to represent it in GUI.
Definition: FiltersPlugin_FeatureEdges.h:43
virtual bool isSupported(GeomAPI_Shape::ShapeType theType) const override
Returns true for edge type.
Definition: FiltersPlugin_FeatureEdges.cpp:93
virtual void initAttributes(ModelAPI_FiltersArgs &theArguments) override
Initializes arguments of a filter.
Definition: FiltersPlugin_FeatureEdges.cpp:141
ShapeType
Shape type enum.
Definition: GeomAPI_Shape.h:46
Definition: ModelAPI_Filter.h:34
definition of arguments of filters: id of the argument to attributes
Definition: ModelAPI_FiltersArgs.h:31