X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesAPI%2FFeaturesAPI_Rotation.h;h=9a8baa43d4b0f5b8dd08c709f1f5f502747dd5b8;hb=63d86e00e1e6a482fcad527ae0b883deccceed11;hp=f11c8e35faca727885e1820edbb7abd19b5231ce;hpb=6e421e939851e0de46554ae45a3ca0e1f67cd91d;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_Rotation.h b/src/FeaturesAPI/FeaturesAPI_Rotation.h index f11c8e35f..9a8baa43d 100644 --- a/src/FeaturesAPI/FeaturesAPI_Rotation.h +++ b/src/FeaturesAPI/FeaturesAPI_Rotation.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 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 @@ -24,12 +24,12 @@ #include +#include #include #include +#include -class ModelHighAPI_Double; class ModelHighAPI_Dumper; -class ModelHighAPI_Selection; /// \class FeaturesAPI_Rotation /// \ingroup CPPHighAPI @@ -103,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_