20 #ifndef SketchPlugin_Ellipse_H_
21 #define SketchPlugin_Ellipse_H_
23 #include <SketchPlugin.h>
24 #include <SketchPlugin_SketchEntity.h>
34 inline static const std::string&
ID()
36 static const std::string
ID(
"SketchEllipse");
43 static const std::string
ID(
"ellipse_center");
50 static const std::string
ID(
"ellipse_first_focus");
56 static const std::string
ID(
"ellipse_second_focus");
63 static const std::string
ID(
"ellipse_major_axis_start_point");
69 static const std::string
ID(
"ellipse_major_axis_end_point");
76 static const std::string
ID(
"ellipse_minor_axis_start_point");
82 static const std::string
ID(
"ellipse_minor_axis_end_point");
89 static const std::string
ID(
"ellipse_major_radius");
96 static const std::string
ID(
"ellipse_minor_radius");
101 SKETCHPLUGIN_EXPORT
virtual const std::string&
getKind()
108 SKETCHPLUGIN_EXPORT
virtual bool isFixed();
111 SKETCHPLUGIN_EXPORT
virtual void attributeChanged(
const std::string& theID);
114 SKETCHPLUGIN_EXPORT
virtual void execute();
124 bool fillCharacteristicPoints();
Feature for creation of the new ellipse in Sketch.
Definition: SketchPlugin_Ellipse.h:31
virtual SKETCHPLUGIN_EXPORT const std::string & getKind()
Returns the kind of a feature.
Definition: SketchPlugin_Ellipse.h:101
static const std::string & MINOR_AXIS_END_ID()
2D point - end point of minor axis
Definition: SketchPlugin_Ellipse.h:80
virtual SKETCHPLUGIN_EXPORT bool isFixed()
Returns true is sketch element is under the rigid constraint.
Definition: SketchPlugin_Ellipse.cpp:84
static const std::string & FIRST_FOCUS_ID()
2D point - focus of the ellipse
Definition: SketchPlugin_Ellipse.h:48
static const std::string & MINOR_AXIS_START_ID()
2D point - start point of minor axis
Definition: SketchPlugin_Ellipse.h:74
SketchPlugin_Ellipse()
Use plugin manager for features creation.
Definition: SketchPlugin_Ellipse.cpp:42
static const std::string & ID()
Ellipse feature kind.
Definition: SketchPlugin_Ellipse.h:34
static const std::string & SECOND_FOCUS_ID()
2D point - second focus of the ellipse
Definition: SketchPlugin_Ellipse.h:54
virtual void initDerivedClassAttributes()
Initializes attributes of derived class.
Definition: SketchPlugin_Ellipse.cpp:47
virtual SKETCHPLUGIN_EXPORT void execute()
Creates a new part document if needed.
Definition: SketchPlugin_Ellipse.cpp:70
static const std::string & MAJOR_AXIS_START_ID()
2D point - start point of major axis
Definition: SketchPlugin_Ellipse.h:61
static const std::string & MINOR_RADIUS_ID()
Minor radius of the ellipse.
Definition: SketchPlugin_Ellipse.h:94
virtual SKETCHPLUGIN_EXPORT void attributeChanged(const std::string &theID)
Called on change of any argument-attribute of this object.
Definition: SketchPlugin_Ellipse.cpp:88
static const std::string & CENTER_ID()
2D point - center of the ellipse
Definition: SketchPlugin_Ellipse.h:41
static const std::string & MAJOR_AXIS_END_ID()
2D point - end point of major axis
Definition: SketchPlugin_Ellipse.h:67
static const std::string & MAJOR_RADIUS_ID()
Major radius of the ellipse.
Definition: SketchPlugin_Ellipse.h:87
Sketch Entity for creation of the new feature in PartSet.
Definition: SketchPlugin_SketchEntity.h:45
Feature for creation of the new part in PartSet.
Definition: SketchPlugin_Sketch.h:47