X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesAPI%2FFeaturesAPI_Rotation.h;h=88d102db752b450bb6692232b6470f1ec51f6b82;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=a8b17d302001a009aaeddc841a3cc2a49b9f19ec;hpb=19775bccacb4bd6eaef4898035d534b89df5e29e;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_Rotation.h b/src/FeaturesAPI/FeaturesAPI_Rotation.h index a8b17d302..88d102db7 100644 --- a/src/FeaturesAPI/FeaturesAPI_Rotation.h +++ b/src/FeaturesAPI/FeaturesAPI_Rotation.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: FeaturesAPI_Rotation.h -// Created: 07 June 2016 -// Author: Dmitry Bobylev +// Copyright (C) 2014-2024 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 FeaturesAPI_Rotation_H_ #define FeaturesAPI_Rotation_H_ @@ -11,12 +24,12 @@ #include +#include #include #include +#include -class ModelHighAPI_Double; class ModelHighAPI_Dumper; -class ModelHighAPI_Selection; /// \class FeaturesAPI_Rotation /// \ingroup CPPHighAPI @@ -90,21 +103,19 @@ public: /// Pointer on Rotation object. typedef std::shared_ptr RotationPtr; -/// \ingroup CPPHighAPI -/// \brief Create Rotation feature. -FEATURESAPI_EXPORT -RotationPtr addRotation(const std::shared_ptr& thePart, - const std::list& theMainObjects, - const ModelHighAPI_Selection& theAxisObject, - const ModelHighAPI_Double& theAngle); + +#define DUMMY std::pair() /// \ingroup CPPHighAPI /// \brief Create Rotation feature. -FEATURESAPI_EXPORT -RotationPtr addRotation(const std::shared_ptr& thePart, - const std::list& theMainObjects, - const ModelHighAPI_Selection& theCenterPoint, - const ModelHighAPI_Selection& theStartPoint, - const ModelHighAPI_Selection& theEndPoint); +FEATURESAPI_EXPORT RotationPtr addRotation( + const std::shared_ptr& part, + const std::list& objects, + const ModelHighAPI_Selection& axis = ModelHighAPI_Selection(), + const std::pair& angle = DUMMY, + const ModelHighAPI_Selection& center = ModelHighAPI_Selection(), + const ModelHighAPI_Selection& start = ModelHighAPI_Selection(), + const ModelHighAPI_Selection& end = ModelHighAPI_Selection(), + const bool keepSubResults = false); #endif // FeaturesAPI_Rotation_H_