X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FFeaturesAPI%2FFeaturesAPI_Rotation.h;h=88d102db752b450bb6692232b6470f1ec51f6b82;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=47f0185a89fa6adb0ab5b03739d13fd6f7c092ad;hpb=7074394f8f08413d885f63be01df6bd5007b868c;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_Rotation.h b/src/FeaturesAPI/FeaturesAPI_Rotation.h index 47f0185a8..88d102db7 100644 --- a/src/FeaturesAPI/FeaturesAPI_Rotation.h +++ b/src/FeaturesAPI/FeaturesAPI_Rotation.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// 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 @@ -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 // #ifndef FeaturesAPI_Rotation_H_ @@ -25,12 +24,12 @@ #include +#include #include #include +#include -class ModelHighAPI_Double; class ModelHighAPI_Dumper; -class ModelHighAPI_Selection; /// \class FeaturesAPI_Rotation /// \ingroup CPPHighAPI @@ -104,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_