20 #ifndef SketchAPI_MacroCircle_H_
21 #define SketchAPI_MacroCircle_H_
23 #include "SketchAPI.h"
24 #include "SketchAPI_SketchEntity.h"
26 #include <SketchPlugin_MacroCircle.h>
47 bool theIsToAddPoint =
false,
48 double theAngle = 0.0);
53 const std::shared_ptr<GeomAPI_Pnt2d>& theCenterPoint,
54 const std::shared_ptr<GeomAPI_Pnt2d>& thePassedPoint,
55 bool theIsToAddPoint =
false,
56 double theAngle = 0.0);
61 double theX1,
double theY1,
62 double theX2,
double theY2,
63 double theX3,
double theY3,
64 bool theIsToAddPoint =
false,
65 double theAngle = 0.0);
70 const std::shared_ptr<GeomAPI_Pnt2d>& thePoint1,
71 const std::shared_ptr<GeomAPI_Pnt2d>& thePoint2,
72 const std::shared_ptr<GeomAPI_Pnt2d>& thePoint3,
73 bool theIsToAddPoint =
false,
74 double theAngle = 0.0);
81 circleType, SketchPlugin_MacroCircle::CIRCLE_TYPE(),
100 void setByCenterAndPassedPoints(
double theCenterX,
double theCenterY,
101 double thePassedX,
double thePassedY,
102 bool theIsToAddPoint = false,
103 double theAngle = 0.0);
106 void setByCenterAndPassedPoints(const std::shared_ptr<
GeomAPI_Pnt2d>& theCenterPoint,
108 bool theIsToAddPoint = false,
109 double theAngle = 0.0);
112 void setByThreePoints(
double theX1,
double theY1,
113 double theX2,
double theY2,
114 double theX3,
double theY3,
115 bool theIsToAddPoint = false,
116 double theAngle = 0.0);
119 void setByThreePoints(const std::shared_ptr<
GeomAPI_Pnt2d>& thePoint1,
122 bool theIsToAddPoint = false,
123 double theAngle = 0.0);
2D point defined by two coordinates
Definition: GeomAPI_Pnt2d.h:36
Attribute that contains 2D point coordinates.
Definition: GeomDataAPI_Point2D.h:37
Attribute that contains boolean value.
Definition: ModelAPI_AttributeBoolean.h:31
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
Interface for Circle feature.
Definition: SketchAPI_MacroCircle.h:34
virtual std::shared_ptr< ModelAPI_AttributeBoolean > addpoint() const
Is to add point.
Definition: SketchAPI_MacroCircle.h:96
virtual std::shared_ptr< GeomDataAPI_Point2D > thirdPoint() const
Third point.
Definition: SketchAPI_MacroCircle.h:96
virtual std::shared_ptr< GeomDataAPI_Point2D > passedPoint() const
Passed point.
Definition: SketchAPI_MacroCircle.h:96
virtual std::shared_ptr< GeomDataAPI_Point2D > firstPoint() const
First point.
Definition: SketchAPI_MacroCircle.h:96
virtual ~SketchAPI_MacroCircle()
Destructor.
Definition: SketchAPI_MacroCircle.cpp:96
virtual std::shared_ptr< ModelAPI_AttributeDouble > angle() const
Angle.
Definition: SketchAPI_MacroCircle.h:96
virtual std::shared_ptr< GeomDataAPI_Point2D > centerPoint() const
Center point.
Definition: SketchAPI_MacroCircle.h:96
virtual std::shared_ptr< GeomDataAPI_Point2D > secondPoint() const
Second point.
Definition: SketchAPI_MacroCircle.h:96
SketchAPI_MacroCircle(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: SketchAPI_MacroCircle.cpp:33
virtual std::shared_ptr< ModelAPI_AttributeString > circleType() const
Circle type.
Definition: SketchAPI_MacroCircle.h:96
Base class for Sketch feature interfaces.
Definition: SketchAPI_SketchEntity.h:38
static const std::string & FIRST_POINT_ID()
First point id.
Definition: SketchPlugin_MacroCircle.h:105
static const std::string & CIRCLE_ROTATE_ANGLE_ID()
Rotate angle of the circle.
Definition: SketchPlugin_MacroCircle.h:161
static const std::string & PASSED_POINT_ID()
2D point - passed point of the circle
Definition: SketchPlugin_MacroCircle.h:91
static const std::string & THIRD_POINT_ID()
Third point id.
Definition: SketchPlugin_MacroCircle.h:133
static const std::string & SECOND_POINT_ID()
Second point id.
Definition: SketchPlugin_MacroCircle.h:119
static const std::string & CENTER_POINT_ID()
2D point - center of the circle.
Definition: SketchPlugin_MacroCircle.h:77
static const std::string & ADD_CONSTRUCTION_POINT_ID()
Is to create construction point or not.
Definition: SketchPlugin_MacroCircle.h:154
static const std::string & ID()
Circle feature kind.
Definition: SketchPlugin_MacroCircle.h:44