X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Boolean.h;h=32224162bc0d10a1d38f0f3571be27ded0212f2e;hb=f813e863f0a60ee69846227f99f0dd6a84f8498c;hp=39175ee2e6a1f45de9442bcdd39a6edd65cb5706;hpb=40677b43bb137a6f014fafbc5ce4f647dc597f39;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h index 39175ee2e..32224162b 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h @@ -1,14 +1,28 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAlgoAPI_Boolean.h -// Created: 02 Sept 2014 -// Author: Vitaly Smetannikov +// 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_Boolean_H_ #define GeomAlgoAPI_Boolean_H_ #include #include +#include #include @@ -18,25 +32,32 @@ 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 GeomAlgoAPI_Tools::BOPType theOperationType); + + /// Constructor. + GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const GeomShapePtr theObject, + const ListOfShape& theTools, + 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, + ListOfShape& theNewShapes); private: /// Builds resulting shape. void build(const ListOfShape& theObjects, const ListOfShape& theTools, - const OperationType theOperationType); + const GeomAlgoAPI_Tools::BOPType theOperationType); }; #endif