-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
-
-// File: SketchAPI_MacroCircle.h
-// Created: 09 June 2016
-// Author: Dmitry Bobylev
+// Copyright (C) 2014-2023 CEA, EDF
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// 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
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
#ifndef SketchAPI_MacroCircle_H_
#define SketchAPI_MacroCircle_H_
thirdPoint, SketchPlugin_MacroCircle::THIRD_POINT_ID(),
GeomDataAPI_Point2D, /** Third point */)
+private:
/// Set by center and passed points.
- SKETCHAPI_EXPORT
void setByCenterAndPassedPoints(double theCenterX, double theCenterY,
double thePassedX, double thePassedY);
/// Set by center and passed points.
- SKETCHAPI_EXPORT
void setByCenterAndPassedPoints(const std::shared_ptr<GeomAPI_Pnt2d>& theCenterPoint,
const std::shared_ptr<GeomAPI_Pnt2d>& thePassedPoint);
/// Set by three points.
- SKETCHAPI_EXPORT
void setByThreePoints(double theX1, double theY1,
double theX2, double theY2,
double theX3, double theY3);
/// Set by three points.
- SKETCHAPI_EXPORT
void setByThreePoints(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint1,
const std::shared_ptr<GeomAPI_Pnt2d>& thePoint2,
const std::shared_ptr<GeomAPI_Pnt2d>& thePoint3);
-
- /// Set center point.
- SKETCHAPI_EXPORT
- void setCenterPoint(double theX, double theY);
-
- /// Set center point.
- SKETCHAPI_EXPORT
- void setCenterPoint(const std::shared_ptr<GeomAPI_Pnt2d>& theCenterPoint);
-
- /// Set passed point.
- SKETCHAPI_EXPORT
- void setPassedPoint(double theX, double theY);
-
- /// Set passed point.
- SKETCHAPI_EXPORT
- void setPassedPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePassedPoint);
-
- /// Set first point.
- SKETCHAPI_EXPORT
- void setFirstPoint(double theX, double theY);
-
- /// Set first point.
- SKETCHAPI_EXPORT
- void setFirstPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
-
- /// Set second point.
- SKETCHAPI_EXPORT
- void setSecondPoint(double theX, double theY);
-
- /// Set second point.
- SKETCHAPI_EXPORT
- void setSecondPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
-
- /// Set third point.
- SKETCHAPI_EXPORT
- void setThirdPoint(double theX, double theY);
-
- /// Set third point.
- SKETCHAPI_EXPORT
- void setThirdPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
};
/// Pointer on Circle object.