20 #ifndef FeaturesAPI_RemoveSubShapes_H_
21 #define FeaturesAPI_RemoveSubShapes_H_
23 #include "FeaturesAPI.h"
25 #include <FeaturesPlugin_RemoveSubShapes.h>
27 #include <ModelHighAPI_Interface.h>
28 #include <ModelHighAPI_Macro.h>
Interface for RemoveSubShapes feature.
Definition: FeaturesAPI_RemoveSubShapes.h:37
virtual std::shared_ptr< ModelAPI_AttributeSelectionList > subshapesToRemove() const
Subshapes to remove.
Definition: FeaturesAPI_RemoveSubShapes.h:60
virtual std::shared_ptr< ModelAPI_AttributeString > creationMethod() const
Creation method.
Definition: FeaturesAPI_RemoveSubShapes.h:60
virtual ~FeaturesAPI_RemoveSubShapes()
Destructor.
Definition: FeaturesAPI_RemoveSubShapes.cpp:47
void setSubShapesToKeep(const std::list< ModelHighAPI_Selection > &theSubShapes)
Modify tools attribute of the feature.
Definition: FeaturesAPI_RemoveSubShapes.cpp:61
virtual std::shared_ptr< ModelAPI_AttributeSelection > base() const
Base.
Definition: FeaturesAPI_RemoveSubShapes.h:60
FeaturesAPI_RemoveSubShapes(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: FeaturesAPI_RemoveSubShapes.cpp:26
void setSubShapesToRemove(const std::list< ModelHighAPI_Selection > &theSubShapes)
Modify tools attribute of the feature.
Definition: FeaturesAPI_RemoveSubShapes.cpp:72
virtual std::shared_ptr< ModelAPI_AttributeSelectionList > subshapesToKeep() const
Subshapes to keep.
Definition: FeaturesAPI_RemoveSubShapes.h:60
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: FeaturesAPI_RemoveSubShapes.cpp:83
void setBase(const ModelHighAPI_Selection &theBase)
Modify objects attribute of the feature.
Definition: FeaturesAPI_RemoveSubShapes.cpp:53
static const std::string & SUBSHAPES_TO_REMOVE_ID()
Attribute name of sub-shapes to remove.
Definition: FeaturesPlugin_RemoveSubShapes.h:79
static const std::string & ID()
Feature kind.
Definition: FeaturesPlugin_RemoveSubShapes.h:37
static const std::string & BASE_SHAPE_ID()
Attribute name of base shape.
Definition: FeaturesPlugin_RemoveSubShapes.h:44
static const std::string & SUBSHAPES_TO_KEEP_ID()
Attribute name of sub-shapes to keep.
Definition: FeaturesPlugin_RemoveSubShapes.h:72
static const std::string & CREATION_METHOD()
Attribute name for creation method.
Definition: FeaturesPlugin_RemoveSubShapes.h:51
Attribute that contains list of references to the sub-shapes with possibility to manage them.
Definition: ModelAPI_AttributeSelectionList.h:37
Attribute that contains reference to the sub-shape of some result, the selected shape.
Definition: ModelAPI_AttributeSelection.h:35
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:52
Dump engine for the model.
Definition: ModelHighAPI_Dumper.h:81
Base class for feature interfaces.
Definition: ModelHighAPI_Interface.h:42
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
RemoveSubShapesPtr addRemoveSubShapes(const std::shared_ptr< ModelAPI_Document > &thePart, const ModelHighAPI_Selection &theBase)
Create RemoveSubShapes feature.
Definition: FeaturesAPI_RemoveSubShapes.cpp:116