X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Trsf.h;h=1c92edc57bf9f620bead9c8954ffd04f1189b1e9;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=ede05133e45274850df16f6dd5b3e41894827b56;hpb=2f12d4f220bde1f12a1c92f68e2cb27336fce8de;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Trsf.h b/src/GeomAPI/GeomAPI_Trsf.h index ede05133e..1c92edc57 100644 --- a/src/GeomAPI/GeomAPI_Trsf.h +++ b/src/GeomAPI/GeomAPI_Trsf.h @@ -1,10 +1,21 @@ -// Copyright (C) 2014-2016 CEA/DEN, EDF R&D - -// File: GeomAPI_XYZ.hxx -// Created: 13 July 2015 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2023 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 +// 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 // -// Modified by Clarisse Genrault (CEA) : 17 Nov 2016 #ifndef GeomAPI_Trsf_H_ #define GeomAPI_Trsf_H_ @@ -59,6 +70,15 @@ class GeomAPI_Trsf : public GeomAPI_Interface GEOMAPI_EXPORT void setRotation(const std::shared_ptr theAxis, const double theAngle); + /** \brief Sets a rotation transformation using three points. + * \param[in] theCenterPoint rotation center. + * \param[in] theStartPoint start rotation point. + * \param[in] theEndPoint end rotation point. + */ + GEOMAPI_EXPORT void setRotation(const std::shared_ptr theCenterPoint, + const std::shared_ptr theStartPoint, + const std::shared_ptr theEndPoint); + /** \brief Sets a point symmetry transformation. * \param[in] thePoint symmetry point. */ @@ -73,14 +93,17 @@ class GeomAPI_Trsf : public GeomAPI_Interface * \param[in] thePlane symmetry plane. */ GEOMAPI_EXPORT void setSymmetry(const std::shared_ptr thePlane); - - /** \brief Sets a scale transformation using a factor. - * \param[in] theCenterPoint center point. - * \param[in] theScaleFactor scale factor. + + /** \brief Sets the scaling transformation. + * \param[in] theCenter scaling origin. + * \param[in] theScale scaling factor. */ - GEOMAPI_EXPORT void setScale(const std::shared_ptr theCenterPoint, - const double theScaleFactor); + GEOMAPI_EXPORT void setScale(const std::shared_ptr& theCenter, + const double theScale); }; +//! Pointer on the object +typedef std::shared_ptr GeomTrsfPtr; + #endif