SHAPER 9.16.0
SketchAPI_MacroEllipticArc.h
1// Copyright (C) 2014-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef SketchAPI_MacroEllipticArc_H_
21#define SketchAPI_MacroEllipticArc_H_
22
23#include "SketchAPI.h"
24#include "SketchAPI_MacroEllipse.h"
25
26#include <SketchPlugin_MacroEllipticArc.h>
27
32{
33public:
35 SKETCHAPI_EXPORT
36 explicit SketchAPI_MacroEllipticArc(const std::shared_ptr<ModelAPI_Feature>& theFeature);
37
39 SKETCHAPI_EXPORT
40 SketchAPI_MacroEllipticArc(const std::shared_ptr<ModelAPI_Feature>& theFeature,
41 const std::shared_ptr<GeomAPI_Pnt2d>& theCenter,
42 const ModelHighAPI_RefAttr& theCenterRef,
43 const std::shared_ptr<GeomAPI_Pnt2d>& theMajorAxisPoint,
44 const ModelHighAPI_RefAttr& theMajorAxisPointRef,
45 const std::shared_ptr<GeomAPI_Pnt2d>& theArcStart,
46 const ModelHighAPI_RefAttr& theArcStartRef,
47 const std::shared_ptr<GeomAPI_Pnt2d>& theArcEnd,
48 const ModelHighAPI_RefAttr& theArcEndRef,
49 const bool theReversed);
50
52 SKETCHAPI_EXPORT
54
62};
63
65typedef std::shared_ptr<SketchAPI_MacroEllipticArc> MacroEllipticArcPtr;
66
67#endif // SketchAPI_MacroEllipticArc_H_
Attribute that contains 2D point coordinates.
Definition: GeomDataAPI_Point2D.h:37
Attribute that contains boolean value.
Definition: ModelAPI_AttributeBoolean.h:31
Class for filling ModelAPI_AttributeRefAttr.
Definition: ModelHighAPI_RefAttr.h:41
Interface for Ellipse feature.
Definition: SketchAPI_MacroEllipse.h:36
Interface for Elliptic Arc feature.
Definition: SketchAPI_MacroEllipticArc.h:32
virtual std::shared_ptr< GeomDataAPI_Point2D > startPoint() const
Start point of elliptic arc.
Definition: SketchAPI_MacroEllipticArc.h:61
SketchAPI_MacroEllipticArc(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: SketchAPI_MacroEllipticArc.cpp:61
virtual std::shared_ptr< ModelAPI_AttributeBoolean > reversed() const
Reversed flag for elliptic arc.
Definition: SketchAPI_MacroEllipticArc.h:61
virtual std::shared_ptr< GeomDataAPI_Point2D > endPoint() const
End point of elliptic arc.
Definition: SketchAPI_MacroEllipticArc.h:61
virtual ~SketchAPI_MacroEllipticArc()
Destructor.
Definition: SketchAPI_MacroEllipticArc.cpp:94
static const std::string & START_POINT_ID()
Attribute for the start point of the elliptic arc selected during creation.
Definition: SketchPlugin_MacroEllipticArc.h:76
static const std::string & END_POINT_ID()
Attribute for the end point of the elliptic arc selected during creation.
Definition: SketchPlugin_MacroEllipticArc.h:90
static const std::string & ID()
Elliptic arc feature kind.
Definition: SketchPlugin_MacroEllipticArc.h:41
static const std::string & REVERSED_ID()
Flag the arc is reversed.
Definition: SketchPlugin_MacroEllipticArc.h:118