X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Boolean.h;h=32224162bc0d10a1d38f0f3571be27ded0212f2e;hb=09365c927ebe8d881de2eda7f96bc33a2d9511c8;hp=e5367ec679b29a168b23f0f8b0dc6a6e811c14bb;hpb=cb3dfcada87c2912b4a85ce3cb2f7c5e3a5926a8;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h index e5367ec67..32224162b 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// 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 @@ -12,10 +12,9 @@ // // 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 +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef GeomAlgoAPI_Boolean_H_ @@ -23,6 +22,7 @@ #include #include +#include #include @@ -31,31 +31,23 @@ /// \brief Allows to perform of boolean operations class GeomAlgoAPI_Boolean : public GeomAlgoAPI_MakeShape { -public: - /// Type of booelan operation - enum OperationType { - BOOL_CUT, ///< Cut objects - BOOL_FUSE, ///< Fuse objects - BOOL_COMMON ///< Take common part of objects - }; - public: /// Constructor. GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const GeomShapePtr theObject, const GeomShapePtr theTool, - const OperationType theOperationType); + const GeomAlgoAPI_Tools::BOPType theOperationType); /// Constructor. GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const GeomShapePtr theObject, const ListOfShape& theTools, - const OperationType theOperationType); + const GeomAlgoAPI_Tools::BOPType theOperationType); /// Constructor. GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const ListOfShape& theObjects, const ListOfShape& theTools, - const OperationType theOperationType); + const GeomAlgoAPI_Tools::BOPType theOperationType); /// Redefinition of the generic method for the Fuse problem: OCCT 30481 GEOMALGOAPI_EXPORT virtual void modified(const GeomShapePtr theOldShape, @@ -65,7 +57,7 @@ private: /// Builds resulting shape. void build(const ListOfShape& theObjects, const ListOfShape& theTools, - const OperationType theOperationType); + const GeomAlgoAPI_Tools::BOPType theOperationType); }; #endif