- protected:
- /// Objects are created for features automatically
- MODELAPI_EXPORT ModelAPI_AttributeSelectionList();
+ /// Returns a selection filters feature if it is defined for this selection list
+ MODELAPI_EXPORT virtual FiltersFeaturePtr filters() const = 0;
+
+ /// Sets a selection filters feature if it is defined for this selection list
+ MODELAPI_EXPORT virtual void setFilters(FiltersFeaturePtr theFeature) = 0;
+
+ /// Returns true if the whole result selection corresponds to selection of all sub-shapes.
+ MODELAPI_EXPORT virtual const bool isWholeResultAllowed() const {
+ return myIsWholeResultAllowed;
+ }
+
+ /// Sets whether the whole result selection corresponds to selection of all sub-shapes.
+ MODELAPI_EXPORT virtual void setWholeResultAllowed(const bool theFlag) {
+ myIsWholeResultAllowed = theFlag;
+ }
+
+ /// Returns true if a copy features must be used in update in history.
+ MODELAPI_EXPORT virtual const bool isMakeCopy() const {
+ return myMakeCopy;
+ }
+
+ /// Sets true if a copy features must be used in update in history.
+ MODELAPI_EXPORT virtual void setMakeCopy(const bool theFlag) {
+ myMakeCopy = theFlag;
+ }
+
+protected:
+ /// Default constructor
+ MODELAPI_EXPORT ModelAPI_AttributeSelectionList() : ModelAPI_Attribute()
+ {myIsWholeResultAllowed = false; myMakeCopy = false;}
+