Salome HOME
a0c0ded37ec1a72ece214a2ee56ce32884546f27
[modules/shaper.git] / src / SketchAPI / SketchAPI_MacroEllipticArc.h
1 // Copyright (C) 2014-2023  CEA/DEN, EDF R&D
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
28 /// \class SketchAPI_MacroEllipticArc
29 /// \ingroup CPPHighAPI
30 /// \brief Interface for Elliptic Arc feature.
31 class SketchAPI_MacroEllipticArc: public SketchAPI_MacroEllipse
32 {
33 public:
34   /// Constructor without values.
35   SKETCHAPI_EXPORT
36   explicit SketchAPI_MacroEllipticArc(const std::shared_ptr<ModelAPI_Feature>& theFeature);
37
38   /// Constructor with values and/or references.
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
51   /// Destructor.
52   SKETCHAPI_EXPORT
53   virtual ~SketchAPI_MacroEllipticArc();
54
55   INTERFACE_3(SketchPlugin_MacroEllipticArc::ID(),
56               startPoint, SketchPlugin_MacroEllipticArc::START_POINT_ID(),
57               GeomDataAPI_Point2D, /** Start point of elliptic arc */,
58               endPoint, SketchPlugin_MacroEllipticArc::END_POINT_ID(),
59               GeomDataAPI_Point2D, /** End point of elliptic arc */,
60               reversed, SketchPlugin_MacroEllipticArc::REVERSED_ID(),
61               ModelAPI_AttributeBoolean, /** Reversed flag for elliptic arc*/)
62 };
63
64 /// Pointer on Elliptic Arc object.
65 typedef std::shared_ptr<SketchAPI_MacroEllipticArc> MacroEllipticArcPtr;
66
67 #endif // SketchAPI_MacroEllipticArc_H_