20 #ifndef FeaturesPlugin_RemoveSubShapes_H_
21 #define FeaturesPlugin_RemoveSubShapes_H_
23 #include "FeaturesPlugin.h"
25 #include <ModelAPI_Feature.h>
37 inline static const std::string&
ID()
39 static const std::string MY_ID(
"Remove_SubShapes");
46 static const std::string MY_BASE_SHAPE_ID(
"base_shape");
47 return MY_BASE_SHAPE_ID;
53 static const std::string MY_CREATION_METHOD_ID(
"creation_method");
54 return MY_CREATION_METHOD_ID;
60 static const std::string MY_CREATION_METHOD_ID(
"by_keep_subshapes");
61 return MY_CREATION_METHOD_ID;
67 static const std::string MY_CREATION_METHOD_ID(
"by_remove_subshapes");
68 return MY_CREATION_METHOD_ID;
74 static const std::string MY_SUBSHAPES_ID(
"subshapes_to_keep");
75 return MY_SUBSHAPES_ID;
81 static const std::string MY_SUBSHAPES_ID(
"subshapes_to_remove");
82 return MY_SUBSHAPES_ID;
87 FEATURESPLUGIN_EXPORT
virtual const std::string&
getKind()
98 FEATURESPLUGIN_EXPORT
virtual void attributeChanged(
const std::string& theID);
101 FEATURESPLUGIN_EXPORT
virtual void execute();
104 bool myChangedInCode;
Feature for removing sub-shapes from collections(wire, shell, compsolid, compound).
Definition: FeaturesPlugin_RemoveSubShapes.h:31
virtual void execute()
Performs the algorithm and stores results it in the data structure.
Definition: FeaturesPlugin_RemoveSubShapes.cpp:211
static const std::string & CREATION_METHOD_BY_KEEP_SUBSHAPES()
Attribute name for creation method.
Definition: FeaturesPlugin_RemoveSubShapes.h:58
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: FeaturesPlugin_RemoveSubShapes.cpp:46
static const std::string & SUBSHAPES_TO_REMOVE_ID()
Attribute name of sub-shapes to remove.
Definition: FeaturesPlugin_RemoveSubShapes.h:79
FeaturesPlugin_RemoveSubShapes()
Use plugin manager for features creation.
Definition: FeaturesPlugin_RemoveSubShapes.cpp:40
virtual const std::string & getKind()
Definition: FeaturesPlugin_RemoveSubShapes.h:87
virtual void attributeChanged(const std::string &theID)
Called on change of any argument-attribute of this object.
Definition: FeaturesPlugin_RemoveSubShapes.cpp:57
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_BY_REMOVE_SUBSHAPES()
Attribute name for creation method.
Definition: FeaturesPlugin_RemoveSubShapes.h:65
static const std::string & CREATION_METHOD()
Attribute name for creation method.
Definition: FeaturesPlugin_RemoveSubShapes.h:51
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41