20 #ifndef FILTERSPLUGIN_ONLINE_H_
21 #define FILTERSPLUGIN_ONLINE_H_
23 #include "FiltersPlugin.h"
25 #include <ModelAPI_Filter.h>
36 virtual const std::string&
name()
const {
37 static const std::string kName(
"On line");
51 virtual bool isOk(
const GeomShapePtr& theShape,
const ResultPtr&,
Filter for objects which belong to selected lines.
Definition: FiltersPlugin_OnLine.h:32
virtual std::string xmlRepresentation() const override
Returns XML string which represents GUI of the filter.
Definition: FiltersPlugin_OnLine.cpp:85
virtual void initAttributes(ModelAPI_FiltersArgs &theArguments) override
Initializes arguments of a filter.
Definition: FiltersPlugin_OnLine.cpp:90
virtual bool isMultiple() const
Returns True if the filter can be used several times within one selection.
Definition: FiltersPlugin_OnLine.h:45
virtual bool isOk(const GeomShapePtr &theShape, const ResultPtr &, const ModelAPI_FiltersArgs &theArgs) const override
This method should contain the filter logic.
Definition: FiltersPlugin_OnLine.cpp:52
virtual const std::string & name() const
Returns name of the filter to represent it in GUI.
Definition: FiltersPlugin_OnLine.h:36
virtual bool isSupported(GeomAPI_Shape::ShapeType theType) const override
Returns true for any type because it supports all selection types.
Definition: FiltersPlugin_OnLine.cpp:47
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