X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesAPI%2FFeaturesAPI_Translation.h;h=5451e214c0eadb5c1d224829e1428b1f83aa65bb;hb=50a8df0c6a66da8067b16155e5ae39f8f26a7ebc;hp=11a7ddf8cb3d9350288f84049158e1b949d8313c;hpb=ced98007eba772ef7ef3a3e7d98fee8477e8de07;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_Translation.h b/src/FeaturesAPI/FeaturesAPI_Translation.h index 11a7ddf8c..5451e214c 100644 --- a/src/FeaturesAPI/FeaturesAPI_Translation.h +++ b/src/FeaturesAPI/FeaturesAPI_Translation.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: FeaturesAPI_Translation.h -// Created: 07 June 2016 -// Author: Dmitry Bobylev +// 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 +// 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_Translation_H_ #define FeaturesAPI_Translation_H_ @@ -11,12 +24,12 @@ #include +#include #include #include +#include -class ModelHighAPI_Double; class ModelHighAPI_Dumper; -class ModelHighAPI_Selection; /// \class FeaturesAPI_Translation /// \ingroup CPPHighAPI @@ -103,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_