20 #ifndef ModelAPI_FiltersFeature_H_
21 #define ModelAPI_FiltersFeature_H_
23 #include "ModelAPI_Attribute.h"
24 #include "ModelAPI_Feature.h"
37 virtual std::string
addFilter(
const std::string theFilterID) = 0;
43 virtual std::list<std::string>
filters()
const = 0;
46 virtual void setReversed(
const std::string theFilterID,
const bool theReversed) = 0;
49 virtual bool isReversed(
const std::string theFilterID) = 0;
52 virtual std::list<AttributePtr>
filterArgs(
const std::string theFilterID)
const = 0;
62 typedef std::shared_ptr<ModelAPI_FiltersFeature> FiltersFeaturePtr;
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41
An interface for working with filters in the feature.
Definition: ModelAPI_FiltersFeature.h:33
virtual void setAttribute(const AttributePtr &theAttr)=0
Sets the attribute (not-persistent field) that contains this filters feature.
virtual const AttributePtr & baseAttribute() const =0
Returns the attribute (not-persistent field) that contains this filters feature.
virtual bool isReversed(const std::string theFilterID)=0
Returns the reversed flag value for the filter.
virtual void setReversed(const std::string theFilterID, const bool theReversed)=0
Stores the reversed flag for the filter.
virtual std::list< std::string > filters() const =0
Returns the list of existing filters in the feature.
virtual std::list< AttributePtr > filterArgs(const std::string theFilterID) const =0
Returns the ordered list of attributes related to the filter.
virtual std::string addFilter(const std::string theFilterID)=0
Adds a filter to the feature.
virtual void removeFilter(const std::string theFilterID)=0
Removes an existing filter from the feature.