X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Translation.h;h=467cf22ff041a9bf37adaa9502f548e969ba4d2b;hb=62fb18b24aa4ec18f5d011b1f5127ae490a59e09;hp=f7b3be95e627a2dcbe0eb621d9550a2075829c90;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Translation.h b/src/GeomAlgoAPI/GeomAlgoAPI_Translation.h index f7b3be95e..467cf22ff 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Translation.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Translation.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 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 @@ -21,24 +21,17 @@ #define GeomAlgoAPI_Translation_H_ #include -#include +#include -#include -#include +class GeomAPI_Ax1; +class GeomAPI_Pnt; /// \class GeomAlgoAPI_Translation /// \ingroup DataAlgo /// \brief Creates a copy of the object by moving it along the axis. -class GeomAlgoAPI_Translation : public GeomAlgoAPI_MakeShape +class GeomAlgoAPI_Translation : public GeomAlgoAPI_Transform { public: - /// Type of translation operation - enum MethodType { - BY_DISTANCE, ///< Translation by axis and distance - BY_DIM, ///< Translation by dimensions in X, Y and Z - BY_POINTS ///< Translation by two points - }; - /// \brief Creates an object which is obtained from current object by moving it along the axis. /// \param[in] theSourceShape a shape to be moved. /// \param[in] theAxis movement axis. @@ -66,23 +59,6 @@ public: GEOMALGOAPI_EXPORT GeomAlgoAPI_Translation(std::shared_ptr theSourceShape, std::shared_ptr theStartPoint, std::shared_ptr theEndPoint); - - /// Checks if data for the translation execution is OK. - GEOMALGOAPI_EXPORT bool check(); - - /// Execute the translation. - GEOMALGOAPI_EXPORT void build(); - -private: - MethodType myMethodType; /// Type of method used. - std::shared_ptr mySourceShape; /// Shape to be moved. - std::shared_ptr myAxis; /// Movement axis. - double myDistance; /// Movement distance. - double myDx; /// Movement dimension on X. - double myDy; /// Movement dimension on Y. - double myDz; /// Movement dimension on Z. - std::shared_ptr myStartPoint; /// Movement start point. - std::shared_ptr myEndPoint; /// Movement end point. }; #endif