1 // Copyright (C) 2014-2020 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef SketchAPI_MacroEllipticArc_H_
21 #define SketchAPI_MacroEllipticArc_H_
23 #include "SketchAPI.h"
24 #include "SketchAPI_MacroEllipse.h"
26 #include <SketchPlugin_MacroEllipticArc.h>
28 /// \class SketchAPI_MacroEllipticArc
29 /// \ingroup CPPHighAPI
30 /// \brief Interface for Elliptic Arc feature.
31 class SketchAPI_MacroEllipticArc: public SketchAPI_MacroEllipse
34 /// Constructor without values.
36 explicit SketchAPI_MacroEllipticArc(const std::shared_ptr<ModelAPI_Feature>& theFeature);
38 /// Constructor with values and/or references.
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);
53 virtual ~SketchAPI_MacroEllipticArc();
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*/)
64 /// Pointer on Elliptic Arc object.
65 typedef std::shared_ptr<SketchAPI_MacroEllipticArc> MacroEllipticArcPtr;
67 #endif // SketchAPI_MacroEllipticArc_H_