X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesAPI%2FFeaturesAPI_Translation.h;h=7fc4aa6d43410714ab0fdb6fa6fbfd7c072d55f2;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=10e20a36806f5782aafed941d0779f673687c4ab;hpb=6e421e939851e0de46554ae45a3ca0e1f67cd91d;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_Translation.h b/src/FeaturesAPI/FeaturesAPI_Translation.h index 10e20a368..7fc4aa6d4 100644 --- a/src/FeaturesAPI/FeaturesAPI_Translation.h +++ b/src/FeaturesAPI/FeaturesAPI_Translation.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 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 @@ -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_