X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Translation.h;h=bff3542b3a7b4251015e6be8a84f02541bfd3f09;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=257c681e09ca47bb78a14d0643e0f57f4c8056f9;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Translation.h b/src/FeaturesPlugin/FeaturesPlugin_Translation.h index 257c681e0..bff3542b3 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-2023 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 @@ -130,7 +130,7 @@ class FeaturesPlugin_Translation : public ModelAPI_Feature return MY_KIND; } - /// Creates a new part document if needed. + /// Performs the algorithm and stores results it in the data structure. FEATURESPLUGIN_EXPORT virtual void execute(); /// Request for initialization of data model of the feature: adding all attributes. @@ -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