1 // Created by: Peter Kurnev
2 // Copyright (c) 2010-2014 OPEN CASCADE SAS
3 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5 // EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7 // This file is part of Open CASCADE Technology software library.
9 // This library is free software; you can redistribute it and/or modify it under
10 // the terms of the GNU Lesser General Public License version 2.1 as published
11 // by the Free Software Foundation, with special exception defined in the file
12 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
13 // distribution for complete text of the license and disclaimer of any warranty.
15 // Alternatively, this file may be used under the terms of Open CASCADE
16 // commercial license or contractual agreement.
18 #ifndef _BOPAlgo_CheckerSI_HeaderFile
19 #define _BOPAlgo_CheckerSI_HeaderFile
21 #include <Standard.hxx>
22 #include <Standard_DefineAlloc.hxx>
23 #include <Standard_Handle.hxx>
25 #include <Standard_Integer.hxx>
26 #include <Standard_Boolean.hxx>
27 #include <BOPCol_DataMapOfShapeShape.hxx>
28 #include <BOPAlgo_PaveFiller.hxx>
31 //! Checks shape on self-interference.
32 class BOPAlgo_CheckerSI : public BOPAlgo_PaveFiller
39 Standard_EXPORT BOPAlgo_CheckerSI();
40 Standard_EXPORT virtual ~BOPAlgo_CheckerSI();
42 Standard_EXPORT virtual void Perform() Standard_OVERRIDE;
44 //! Sets the level of checking shape on self-interference.
45 //! It defines which interferferences will be checked:
48 //! 2 - V/V, V/E and E/E;
49 //! 3 - V/V, V/E, E/E and V/F;
50 //! 4 - V/V, V/E, E/E, V/F and E/F;
51 //! 5 - all interferences, default value.
52 Standard_EXPORT void SetLevelOfCheck (const Standard_Integer theLevel);
57 Standard_EXPORT virtual void Init() Standard_OVERRIDE;
59 //! Provides post-treatment actions
60 Standard_EXPORT void PostTreat();
62 Standard_EXPORT virtual void PrepareCopy();
64 //! Provides post-treatment actions for the copy
65 Standard_EXPORT void PostTreatCopy();
68 Standard_Integer myLevelOfCheck;
69 BOPCol_DataMapOfShapeShape myNewOldMap;
86 #endif // _BOPAlgo_CheckerSI_HeaderFile