X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesAPI%2FFeaturesAPI_Translation.h;h=7fc4aa6d43410714ab0fdb6fa6fbfd7c072d55f2;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=02fcbe5a5c4f320417364424c86cee155f642040;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_Translation.h b/src/FeaturesAPI/FeaturesAPI_Translation.h index 02fcbe5a5..7fc4aa6d4 100644 --- a/src/FeaturesAPI/FeaturesAPI_Translation.h +++ b/src/FeaturesAPI/FeaturesAPI_Translation.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,9 +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_Translation_H_ @@ -24,12 +24,12 @@ #include +#include #include #include +#include -class ModelHighAPI_Double; class ModelHighAPI_Dumper; -class ModelHighAPI_Selection; /// \class FeaturesAPI_Translation /// \ingroup CPPHighAPI @@ -116,29 +116,21 @@ public: /// Pointer on Translation object. typedef std::shared_ptr TranslationPtr; -/// \ingroup CPPHighAPI -/// \brief Create Translation feature. -FEATURESAPI_EXPORT -TranslationPtr addTranslation(const std::shared_ptr& thePart, - const std::list& theMainObjects, - const ModelHighAPI_Selection& theAxisObject, - const ModelHighAPI_Double& theDistance); - -/// \ingroup CPPHighAPI -/// \brief Create Translation feature. -FEATURESAPI_EXPORT -TranslationPtr addTranslation(const std::shared_ptr& thePart, - const std::list& theMainObjects, - const ModelHighAPI_Double& theDx, - const ModelHighAPI_Double& theDy, - const ModelHighAPI_Double& theDz); +#define DUMMY std::pair() /// \ingroup CPPHighAPI /// \brief Create Translation feature. -FEATURESAPI_EXPORT -TranslationPtr addTranslation(const std::shared_ptr& thePart, - const std::list& theMainObjects, - const ModelHighAPI_Selection& theStartPoint, - const ModelHighAPI_Selection& theEndPoint); +FEATURESAPI_EXPORT TranslationPtr addTranslation( + const std::shared_ptr& part, + const std::list& objects, + const std::pair& deprecated1 = DUMMY, + const std::pair& deprecated2 = DUMMY, + const std::pair& deprecated3 = DUMMY, + const ModelHighAPI_Selection& axis = ModelHighAPI_Selection(), + const ModelHighAPI_Double& distance = ModelHighAPI_Double(0.0), + const std::list& vector = std::list(), + const ModelHighAPI_Selection& startPoint = ModelHighAPI_Selection(), + const ModelHighAPI_Selection& endPoint = ModelHighAPI_Selection(), + const bool keepSubResults = false ); #endif // FeaturesAPI_Translation_H_