X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Translation.h;h=03b279ca9b4a44dba836a544f3cc7358b272c194;hb=b392d5b4fb3f49a8258ec024cdf1729f80f5629a;hp=3437c5be695285d7cbd1642f62816bc577b5e436;hpb=77d6e03555d0d46232e09ace4178f66f8c9b40ee;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Translation.h b/src/FeaturesPlugin/FeaturesPlugin_Translation.h index 3437c5be6..03b279ca9 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Translation.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Translation.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2021 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,7 +24,7 @@ #include -#include +class GeomAPI_Trsf; /// \class FeaturesPlugin_Translation /// \ingroup Plugins @@ -140,14 +140,17 @@ class FeaturesPlugin_Translation : public ModelAPI_Feature FeaturesPlugin_Translation(); private: - ///Perform the translation using an axis and a distance. - void performTranslationByAxisAndDistance(); + /// Calculate the translation using an axis and a distance. + std::shared_ptr translationByAxisAndDistance(); - ///Perform the translation using three dimensions X, Y and Z - void performTranslationByDimensions(); + /// Calculate the translation using three dimensions X, Y and Z + std::shared_ptr translationByDimensions(); - ///Perform the translation usind two points - void performTranslationByTwoPoints(); + /// Calculate the translation usind two points + std::shared_ptr translationByTwoPoints(); + + /// Perform the translation + void performTranslation(const std::shared_ptr& theTrsf); }; #endif