20 #ifndef FILTERSPLUGIN_SELECTION_H_
21 #define FILTERSPLUGIN_SELECTION_H_
23 #include "FiltersPlugin.h"
24 #include <ModelAPI_FiltersFeature.h>
35 inline static const std::string&
ID() {
36 static const std::string MY_GROUP_ID(
"FiltersSelection");
41 FILTERS_EXPORT
virtual const std::string&
getKind() {
63 FILTERS_EXPORT
virtual std::string
addFilter(
const std::string theFilterID)
override;
66 FILTERS_EXPORT
virtual void removeFilter(
const std::string theFilterID)
override;
69 FILTERS_EXPORT
virtual std::list<std::string>
filters()
const override;
73 (
const std::string theFilterID,
const bool theReversed)
override;
76 FILTERS_EXPORT
virtual bool isReversed(
const std::string theFilterID)
override;
79 FILTERS_EXPORT
virtual std::list<AttributePtr>
80 filterArgs(
const std::string theFilterID)
const override;
84 FILTERS_EXPORT
virtual void setAttribute(
const AttributePtr& theAttr)
override;
87 FILTERS_EXPORT
virtual const AttributePtr&
baseAttribute()
const override;
An interface for working with filters in the feature.
Definition: FiltersPlugin_Selection.h:32
static const std::string & ID()
Extrusion kind.
Definition: FiltersPlugin_Selection.h:35
virtual std::string addFilter(const std::string theFilterID) override
Adds a filter to the feature.
Definition: FiltersPlugin_Selection.cpp:31
virtual void removeFilter(const std::string theFilterID) override
Removes an existing filter from the feature.
Definition: FiltersPlugin_Selection.cpp:70
virtual std::list< AttributePtr > filterArgs(const std::string theFilterID) const override
Returns the ordered list of attributes related to the filter.
Definition: FiltersPlugin_Selection.cpp:103
virtual bool isReversed(const std::string theFilterID) override
Returns the reversed flag value for the filter.
Definition: FiltersPlugin_Selection.cpp:94
FiltersPlugin_Selection()
Feature is created in the plugin manager.
Definition: FiltersPlugin_Selection.h:54
virtual const std::string & getKind()
Returns the kind of a feature.
Definition: FiltersPlugin_Selection.h:41
AttributePtr myBase
the attribute related to this filter
Definition: FiltersPlugin_Selection.h:91
virtual void setReversed(const std::string theFilterID, const bool theReversed) override
Stores the reversed flag for the filter.
Definition: FiltersPlugin_Selection.cpp:86
virtual void execute()
Computes a selection?
Definition: FiltersPlugin_Selection.h:51
virtual bool isInHistory()
This feature does not displayed in the data tree.
Definition: FiltersPlugin_Selection.h:46
virtual const AttributePtr & baseAttribute() const override
Returns the attribute (not-persistent field) that contains this filters feature.
Definition: FiltersPlugin_Selection.cpp:133
virtual void setAttribute(const AttributePtr &theAttr) override
Sets the attribute (not-persistent field) that contains this filters feature.
Definition: FiltersPlugin_Selection.cpp:110
virtual void initAttributes() override
This method initializes all filters on open of document.
Definition: FiltersPlugin_Selection.cpp:138
virtual std::list< std::string > filters() const override
Returns the list of existing filters in the feature.
Definition: FiltersPlugin_Selection.cpp:79
An interface for working with filters in the feature.
Definition: ModelAPI_FiltersFeature.h:33