20 #ifndef SketchAPI_Circle_H_
21 #define SketchAPI_Circle_H_
23 #include "SketchAPI.h"
24 #include "SketchAPI_SketchEntity.h"
26 #include <SketchPlugin_Circle.h>
38 explicit SketchAPI_Circle(
const std::shared_ptr<ModelAPI_Feature>& theFeature);
46 bool theIsAddPoint =
false,
47 double theAngle = 0.0);
52 const std::shared_ptr<GeomAPI_Pnt2d>& theCenter,
54 bool theIsAddPoint =
false,
55 double theAngle = 0.0);
65 const std::wstring& theExternalName);
87 bool theIsAddPoint = false,
88 double theAngle = 0.0);
94 bool theIsAddPoint = false,
95 double theAngle = 0.0);
107 void setCenter(
double theX,
double theY);
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
Attribute that contains reference to the sub-shape of some result, the selected shape.
Definition: ModelAPI_AttributeSelection.h:35
Dump engine for the model.
Definition: ModelHighAPI_Dumper.h:81
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
Interface for Circle feature.
Definition: SketchAPI_Circle.h:34
virtual std::shared_ptr< ModelAPI_AttributeDouble > radius() const
Radius.
Definition: SketchAPI_Circle.h:81
virtual std::shared_ptr< ModelAPI_AttributeDouble > angle() const
Angle.
Definition: SketchAPI_Circle.h:81
virtual std::shared_ptr< ModelAPI_AttributeSelection > external() const
External.
Definition: SketchAPI_Circle.h:81
void setByExternalName(const std::wstring &theExternalName)
Set by external name.
Definition: SketchAPI_Circle.cpp:129
void setAngle(double theAngle)
Set angle.
Definition: SketchAPI_Circle.cpp:169
void setCenter(double theX, double theY)
Set center.
Definition: SketchAPI_Circle.cpp:137
void setRadius(double theRadius)
Set radius.
Definition: SketchAPI_Circle.cpp:153
void setByExternal(const ModelHighAPI_Selection &theExternal)
Set by external.
Definition: SketchAPI_Circle.cpp:121
virtual std::shared_ptr< GeomDataAPI_Point2D > center() const
Center point.
Definition: SketchAPI_Circle.h:81
virtual std::shared_ptr< ModelAPI_AttributeBoolean > addpoint() const
Is to add point.
Definition: SketchAPI_Circle.h:81
void setIsToAddPoint(bool theIsToAddPoint)
Set is to add point.
Definition: SketchAPI_Circle.cpp:161
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: SketchAPI_Circle.cpp:193
virtual ~SketchAPI_Circle()
Destructor.
Definition: SketchAPI_Circle.cpp:87
SketchAPI_Circle(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: SketchAPI_Circle.cpp:33
std::shared_ptr< SketchAPI_SketchEntity > createdPoint() const
Returns created points on circle.
Definition: SketchAPI_Circle.cpp:178
void setByCenterAndRadius(double theCenterX, double theCenterY, double theRadius, bool theIsAddPoint=false, double theAngle=0.0)
Set by center and radius.
Definition: SketchAPI_Circle.cpp:93
Base class for Sketch feature interfaces.
Definition: SketchAPI_SketchEntity.h:38
static const std::string & ADD_CONSTRUCTION_POINT_ID()
Is to create construction point or not.
Definition: SketchPlugin_Circle.h:49
static const std::string & ID()
Circle feature kind.
Definition: SketchPlugin_Circle.h:35
static const std::string & ANGLE_ID()
Angle of rotation sewing point of the circle.
Definition: SketchPlugin_Circle.h:70
static const std::string & CENTER_ID()
2D point - center of the circle
Definition: SketchPlugin_Circle.h:42
static const std::string & RADIUS_ID()
Radius of the circle.
Definition: SketchPlugin_Circle.h:63
static const std::string & EXTERNAL_ID()
Reference to the external edge or vertex as a AttributeSelection.
Definition: SketchPlugin_SketchEntity.h:55