X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchAPI%2FSketchAPI_MacroCircle.cpp;h=163fcc26cdc4e535c1d7c305541835e748d176bc;hb=5afcc18216ad228eafcaf632c5008d1aebd3122e;hp=694b0231f2b0e8c6852f67536fc1092281f3ce6c;hpb=a94fc319f2aa64b43c9a73b5ff7063923648faec;p=modules%2Fshaper.git diff --git a/src/SketchAPI/SketchAPI_MacroCircle.cpp b/src/SketchAPI/SketchAPI_MacroCircle.cpp index 694b0231f..163fcc26c 100644 --- a/src/SketchAPI/SketchAPI_MacroCircle.cpp +++ b/src/SketchAPI/SketchAPI_MacroCircle.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 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 @@ -12,10 +12,9 @@ // // 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 +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "SketchAPI_MacroCircle.h" @@ -137,93 +136,3 @@ void SketchAPI_MacroCircle::setByThreePoints(const std::shared_ptr& theCenterPoint) -{ - fillAttribute(SketchPlugin_MacroCircle::CIRCLE_TYPE_BY_CENTER_AND_PASSED_POINTS(), mycircleType); - fillAttribute(theCenterPoint, mycenterPoint); - - execute(); -} - -//================================================================================================== -void SketchAPI_MacroCircle::setPassedPoint(double theX, double theY) -{ - fillAttribute(SketchPlugin_MacroCircle::CIRCLE_TYPE_BY_CENTER_AND_PASSED_POINTS(), mycircleType); - fillAttribute(passedPoint(), theX, theY); - - execute(); -} - -//================================================================================================== -void SketchAPI_MacroCircle::setPassedPoint(const std::shared_ptr& thePassedPoint) -{ - fillAttribute(SketchPlugin_MacroCircle::CIRCLE_TYPE_BY_CENTER_AND_PASSED_POINTS(), mycircleType); - fillAttribute(thePassedPoint, mypassedPoint); - - execute(); -} - -//================================================================================================== -void SketchAPI_MacroCircle::setFirstPoint(double theX, double theY) -{ - fillAttribute(SketchPlugin_MacroCircle::CIRCLE_TYPE_BY_THREE_POINTS(), mycircleType); - fillAttribute(firstPoint(), theX, theY); - - execute(); -} - -//================================================================================================== -void SketchAPI_MacroCircle::setFirstPoint(const std::shared_ptr& thePoint) -{ - fillAttribute(SketchPlugin_MacroCircle::CIRCLE_TYPE_BY_THREE_POINTS(), mycircleType); - fillAttribute(thePoint, myfirstPoint); - - execute(); -} - -//================================================================================================== -void SketchAPI_MacroCircle::setSecondPoint(double theX, double theY) -{ - fillAttribute(SketchPlugin_MacroCircle::CIRCLE_TYPE_BY_THREE_POINTS(), mycircleType); - fillAttribute(secondPoint(), theX, theY); - - execute(); -} - -//================================================================================================== -void SketchAPI_MacroCircle::setSecondPoint(const std::shared_ptr& thePoint) -{ - fillAttribute(SketchPlugin_MacroCircle::CIRCLE_TYPE_BY_THREE_POINTS(), mycircleType); - fillAttribute(thePoint, mysecondPoint); - - execute(); -} - -//================================================================================================== -void SketchAPI_MacroCircle::setThirdPoint(double theX, double theY) -{ - fillAttribute(SketchPlugin_MacroCircle::CIRCLE_TYPE_BY_THREE_POINTS(), mycircleType); - fillAttribute(thirdPoint(), theX, theY); - - execute(); -} - -//================================================================================================== -void SketchAPI_MacroCircle::setThirdPoint(const std::shared_ptr& thePoint) -{ - fillAttribute(SketchPlugin_MacroCircle::CIRCLE_TYPE_BY_THREE_POINTS(), mycircleType); - fillAttribute(thePoint, mythirdPoint); - - execute(); -}