20 #ifndef BuildPlugin_Wire_H_
21 #define BuildPlugin_Wire_H_
23 #include "BuildPlugin.h"
25 #include <ModelAPI_Feature.h>
37 inline static const std::string&
ID()
39 static const std::string MY_ID(
"Wire");
46 static const std::string MY_BASE_OBJECTS_ID(
"base_objects");
47 return MY_BASE_OBJECTS_ID;
53 static const std::string MY_ADD_CONTOUR_ACTION_ID(
"add_contour");
54 return MY_ADD_CONTOUR_ACTION_ID;
60 static const std::string MY_INTERSECT_ID(
"intersect");
61 return MY_INTERSECT_ID;
65 BUILDPLUGIN_EXPORT
virtual const std::string&
getKind()
75 BUILDPLUGIN_EXPORT
virtual void execute();
80 BUILDPLUGIN_EXPORT
virtual bool customAction(
const std::string& theActionId);
Feature for creation of wire from sketch edges or existing wires.
Definition: BuildPlugin_Wire.h:31
virtual bool customAction(const std::string &theActionId)
Performs some functionality by action id.
Definition: BuildPlugin_Wire.cpp:163
virtual const std::string & getKind()
Definition: BuildPlugin_Wire.h:65
static const std::string & INTERSECT_ID()
Attribute name of "Compute intersections" checkbox.
Definition: BuildPlugin_Wire.h:58
BuildPlugin_Wire()
Use plugin manager for features creation.
Definition: BuildPlugin_Wire.cpp:53
virtual void execute()
Creates a new part document if needed.
Definition: BuildPlugin_Wire.cpp:67
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: BuildPlugin_Wire.cpp:58
static const std::string & BASE_OBJECTS_ID()
Attribute name of base objects.
Definition: BuildPlugin_Wire.h:44
static const std::string & ID()
Feature kind.
Definition: BuildPlugin_Wire.h:37
static const std::string & ADD_CONTOUR_ACTION_ID()
Attribute name of base objects.
Definition: BuildPlugin_Wire.h:51
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41