20 #ifndef SketchPlugin_SketchDrawer_H_
21 #define SketchPlugin_SketchDrawer_H_
23 #include "SketchPlugin.h"
24 #include <ModelAPI_Feature.h>
38 inline static const std::string&
ID()
40 static const std::string MY_FEATURE_ID(
"SketchDrawer");
45 inline static const std::string&
BASE_ID()
47 static const std::string
ID(
"base_shape");
53 static const std::string
ID(
"plane");
59 static const std::string
ID(
"add_dimensions");
64 SKETCHPLUGIN_EXPORT
virtual const std::string&
getKind()
71 SKETCHPLUGIN_EXPORT
virtual void execute();
78 SKETCHPLUGIN_EXPORT
virtual bool isMacro()
const {
return true;}
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41
Feature for creation of a sketch on selected base object and plane.
Definition: SketchPlugin_SketchDrawer.h:32
virtual bool isMacro() const
Reimplemented from ModelAPI_Feature::isMacro().
Definition: SketchPlugin_SketchDrawer.h:78
virtual const std::string & getKind()
Definition: SketchPlugin_SketchDrawer.h:64
static const std::string & PLANE_ID()
Attribute name of the plane selected.
Definition: SketchPlugin_SketchDrawer.h:51
virtual void execute()
Creates a new sketch.
Definition: SketchPlugin_SketchDrawer.cpp:73
static const std::string & ADD_DIMENSIONS_ID()
Attribute name of the add-dimensions flag.
Definition: SketchPlugin_SketchDrawer.h:57
static const std::string & ID()
Feature kind.
Definition: SketchPlugin_SketchDrawer.h:38
virtual bool isPreviewNeeded() const
No preview is generated until it is applied.
Definition: SketchPlugin_SketchDrawer.h:81
SketchPlugin_SketchDrawer()
A constructor.
Definition: SketchPlugin_SketchDrawer.cpp:52
static const std::string & BASE_ID()
Attribute name of the base shape selected.
Definition: SketchPlugin_SketchDrawer.h:45
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: SketchPlugin_SketchDrawer.cpp:55