X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Symmetry.h;h=884261a2d85f38843d6c38f187da40f89f9acbff;hb=d5d78920316491975a67f76578982b401cdfe71d;hp=8eac85251b9e29ac18702eb9ddbd4da360fcb44e;hpb=20bfce4045f146fa9fe16148628ac0b7f4e72a0e;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h index 8eac85251..884261a2d 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h @@ -1,33 +1,39 @@ -// Copyright (C) 2014-2016 CEA/DEN, EDF R&D - -// File: GeomAlgoAPI_Symmetry.h -// Created: 30 Nov 2016 -// Author: Clarisse Genrault (CEA) +// Copyright (C) 2014-2019 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 GEOMALGOAPI_SYMMETRY_H_ #define GEOMALGOAPI_SYMMETRY_H_ #include -#include +#include -#include -#include -#include +class GeomAPI_Ax1; +class GeomAPI_Ax2; +class GeomAPI_Pnt; /// \class GeomAlgoAPI_Symmetry /// \ingroup DataAlgo /// \brief Creates a copy of the object by performing a symmetry operation by a point, /// by an axis or by a plane. -class GeomAlgoAPI_Symmetry : public GeomAlgoAPI_MakeShape +class GeomAlgoAPI_Symmetry : public GeomAlgoAPI_Transform { public: - /// Type of symmetry operation - enum MethodType { - BY_POINT, ///< Symmetry by point. - BY_AXIS, ///< Symmetry by axis. - BY_PLANE ///< Symmetry by plane. - }; - /// \brief Creates an object which is obtained from current object by performing /// a symmetry operation by a point. /// \param[in] theSourceShape the shape to be moved. @@ -48,19 +54,6 @@ public: /// \param[in] thePlane the symmetry plane. GEOMALGOAPI_EXPORT GeomAlgoAPI_Symmetry(std::shared_ptr theSourceShape, std::shared_ptr thePlane); - - /// Checks if data for the symmetry execution is OK. - GEOMALGOAPI_EXPORT bool check(); - - /// Execute the symmetry. - GEOMALGOAPI_EXPORT void build(); - -private: - MethodType myMethodType; /// Type of method used. - std::shared_ptr mySourceShape; /// Shape to be moved. - std::shared_ptr myPoint; /// Reflection point. - std::shared_ptr myAxis; /// Reflection axis. - std::shared_ptr myPlane; /// Reflection plane. }; #endif // GEOMALGOAPI_SYMMETRY_H_