20 #ifndef SketchAPI_MacroArc_H_
21 #define SketchAPI_MacroArc_H_
23 #include "SketchAPI.h"
24 #include "SketchAPI_SketchEntity.h"
26 #include <GeomDataAPI_Point2D.h>
28 #include <SketchPlugin_MacroArc.h>
46 double theCenterX,
double theCenterY,
47 double theStartX,
double theStartY,
48 double theEndX,
double theEndY,
54 const std::shared_ptr<GeomAPI_Pnt2d>& theCenter,
55 const std::shared_ptr<GeomAPI_Pnt2d>& theStart,
56 const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
62 double theStartX,
double theStartY,
63 double theEndX,
double theEndY,
64 double thePassedX,
double thePassedY);
69 const std::shared_ptr<GeomAPI_Pnt2d>& theStart,
70 const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
71 const std::shared_ptr<GeomAPI_Pnt2d>& thePassed);
77 double theEndX,
double theEndY,
84 const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
92 arcType, SketchPlugin_MacroArc::ARC_TYPE(),
106 tangentPoint, SketchPlugin_MacroArc::TANGENT_POINT_ID(),
124 double theStartX,
double theStartY,
125 double theEndX,
double theEndY,
138 double theEndX,
double theEndY,
139 double thePassedX,
double thePassedY);
150 double theEndX,
double theEndY,
162 double theEndX,
double theEndY,
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 an attribute of a feature or reference to a feature (switchable)
Definition: ModelAPI_AttributeRefAttr.h:33
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
Class for filling ModelAPI_AttributeRefAttr.
Definition: ModelHighAPI_RefAttr.h:41
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
Interface for Arc feature.
Definition: SketchAPI_MacroArc.h:37
void setByTangent(const ModelHighAPI_RefAttr &theTangentPoint, double theEndX, double theEndY, bool theInversed)
Set by tangent and end point.
Definition: SketchAPI_MacroArc.cpp:177
virtual std::shared_ptr< ModelAPI_AttributeBoolean > reversed() const
Reversed flag.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< GeomDataAPI_Point2D > startPoint1() const
Start point.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< GeomDataAPI_Point2D > endPoint1() const
End point.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< ModelAPI_AttributeRefAttr > tangentPoint() const
Tangent point.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< GeomDataAPI_Point2D > passedPoint() const
Passed point.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< GeomDataAPI_Point2D > center() const
Center point.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< ModelAPI_AttributeString > arcType() const
Arc type.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< GeomDataAPI_Point2D > endPoint2() const
End point.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< GeomDataAPI_Point2D > endPoint3() const
End point.
Definition: SketchAPI_MacroArc.h:119
void setByTransversal(const ModelHighAPI_RefAttr &theTransversalPoint, double theEndX, double theEndY, bool theInversed)
Set by tangent and end point.
Definition: SketchAPI_MacroArc.cpp:203
void setByStartEndPassed(double theStartX, double theStartY, double theEndX, double theEndY, double thePassedX, double thePassedY)
Set by start, end and passed points.
Definition: SketchAPI_MacroArc.cpp:151
virtual std::shared_ptr< GeomDataAPI_Point2D > endPoint4() const
End point.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< ModelAPI_AttributeDouble > angle() const
Angle.
Definition: SketchAPI_MacroArc.h:119
virtual std::shared_ptr< GeomDataAPI_Point2D > startPoint2() const
Start point.
Definition: SketchAPI_MacroArc.h:119
virtual ~SketchAPI_MacroArc()
Destructor.
Definition: SketchAPI_MacroArc.cpp:115
SketchAPI_MacroArc(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: SketchAPI_MacroArc.cpp:33
virtual std::shared_ptr< ModelAPI_AttributeRefAttr > transversalPoint() const
Transversal point.
Definition: SketchAPI_MacroArc.h:119
void setByCenterStartEnd(double theCenterX, double theCenterY, double theStartX, double theStartY, double theEndX, double theEndY, bool theInversed)
Set by center and start, end point.
Definition: SketchAPI_MacroArc.cpp:121
virtual std::shared_ptr< ModelAPI_AttributeDouble > radius() const
Radius.
Definition: SketchAPI_MacroArc.h:119
Base class for Sketch feature interfaces.
Definition: SketchAPI_SketchEntity.h:38
static const std::string & END_POINT_2_ID()
End 2D point of the arc.
Definition: SketchPlugin_MacroArc.h:122
static const std::string & END_POINT_3_ID()
End 2D point of the arc.
Definition: SketchPlugin_MacroArc.h:129
static const std::string & START_POINT_2_ID()
Start 2D point of the arc.
Definition: SketchPlugin_MacroArc.h:102
static const std::string & ID()
Arc feature kind.
Definition: SketchPlugin_MacroArc.h:46
static const std::string & CENTER_POINT_ID()
Central 2D point of the circle which contains the arc.
Definition: SketchPlugin_MacroArc.h:82
static const std::string & START_POINT_1_ID()
Start 2D point of the arc.
Definition: SketchPlugin_MacroArc.h:95
static const std::string & PASSED_POINT_ID()
Passed point of the arc.
Definition: SketchPlugin_MacroArc.h:149
static const std::string & REVERSED_ID()
Reversed flag.
Definition: SketchPlugin_MacroArc.h:174
static const std::string & ANGLE_ID()
Arc angle.
Definition: SketchPlugin_MacroArc.h:188
static const std::string & END_POINT_1_ID()
End 2D point of the arc.
Definition: SketchPlugin_MacroArc.h:115
static const std::string & RADIUS_ID()
Arc radius.
Definition: SketchPlugin_MacroArc.h:181
static const std::string & END_POINT_4_ID()
End 2D point of the arc.
Definition: SketchPlugin_MacroArc.h:136