-// Copyright (C) 2014-2017 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#ifndef SketchAPI_MacroArc_H_
SKETCHAPI_EXPORT
virtual ~SketchAPI_MacroArc();
- INTERFACE_12(SketchPlugin_MacroArc::ID(),
+ INTERFACE_14(SketchPlugin_MacroArc::ID(),
arcType, SketchPlugin_MacroArc::ARC_TYPE(),
ModelAPI_AttributeString, /** Arc type */,
center, SketchPlugin_MacroArc::CENTER_POINT_ID(),
ModelAPI_AttributeRefAttr, /** Tangent point */,
endPoint3, SketchPlugin_MacroArc::END_POINT_3_ID(),
GeomDataAPI_Point2D, /** End point */,
+ transversalPoint, SketchPlugin_MacroArc::TRANSVERSAL_POINT_ID(),
+ ModelAPI_AttributeRefAttr, /** Transversal point */,
+ endPoint4, SketchPlugin_MacroArc::END_POINT_4_ID(),
+ GeomDataAPI_Point2D, /** End point */,
reversed, SketchPlugin_MacroArc::REVERSED_ID(),
ModelAPI_AttributeBoolean, /** Reversed flag */,
radius, SketchPlugin_MacroArc::RADIUS_ID(),
angle, SketchPlugin_MacroArc::ANGLE_ID(),
ModelAPI_AttributeDouble, /** Angle */)
-private:
-
/// Set by center and start, end point.
SKETCHAPI_EXPORT
void setByCenterStartEnd(double theCenterX, double theCenterY,
void setByTangent(const ModelHighAPI_RefAttr& theTangentPoint,
const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
bool theInversed);
+
+ /// Set by tangent and end point.
+ SKETCHAPI_EXPORT
+ void setByTransversal(const ModelHighAPI_RefAttr& theTransversalPoint,
+ double theEndX, double theEndY,
+ bool theInversed);
+
+ /// Set by tangent and end point.
+ SKETCHAPI_EXPORT
+ void setByTransversal(const ModelHighAPI_RefAttr& theTransversalPoint,
+ const std::shared_ptr<GeomAPI_Pnt2d>& theEnd,
+ bool theInversed);
};
/// Pointer on Arc object.