42cf5bc1 |
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 |
6 | // |
7 | // This file is part of Open CASCADE Technology software library. |
8 | // |
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. |
14 | // |
15 | // Alternatively, this file may be used under the terms of Open CASCADE |
16 | // commercial license or contractual agreement. |
17 | |
18 | #ifndef _BOPDS_IteratorSI_HeaderFile |
19 | #define _BOPDS_IteratorSI_HeaderFile |
20 | |
21 | #include <Standard.hxx> |
22 | #include <Standard_DefineAlloc.hxx> |
23 | #include <Standard_Handle.hxx> |
24 | |
25 | #include <BOPDS_Iterator.hxx> |
26 | #include <BOPCol_BaseAllocator.hxx> |
27 | #include <Standard_Integer.hxx> |
28 | |
29 | |
30 | |
31 | //! The class BOPDS_IteratorSI is |
32 | //! 1.to compute self-intersections between BRep sub-shapes |
33 | //! of each argument of an operation (see the class BOPDS_DS) |
34 | //! in terms of theirs bounding boxes |
35 | //! 2.provides interface to iterare the pairs of |
36 | //! intersected sub-shapes of given type |
37 | class BOPDS_IteratorSI : public BOPDS_Iterator |
38 | { |
39 | public: |
40 | |
41 | DEFINE_STANDARD_ALLOC |
42 | |
43 | |
44 | |
45 | //! Empty contructor |
46 | Standard_EXPORT BOPDS_IteratorSI(); |
47 | Standard_EXPORT virtual ~BOPDS_IteratorSI(); |
48 | |
49 | |
50 | //! Contructor |
51 | //! theAllocator - the allocator to manage the memory |
52 | Standard_EXPORT BOPDS_IteratorSI(const BOPCol_BaseAllocator& theAllocator); |
53 | |
54 | //! Updates the lists of possible intersections |
55 | //! according to the value of <theLevel>. |
56 | //! It defines which interferferences will be checked: |
57 | //! 0 - only V/V; |
58 | //! 1 - V/V and V/E; |
59 | //! 2 - V/V, V/E and E/E; |
60 | //! 3 - V/V, V/E, E/E and V/F; |
61 | //! 4 - V/V, V/E, E/E, V/F and E/F; |
62 | //! other - all interferences. |
63 | Standard_EXPORT void UpdateByLevelOfCheck (const Standard_Integer theLevel); |
64 | |
65 | |
66 | |
67 | |
68 | protected: |
69 | |
70 | |
71 | Standard_EXPORT virtual void Intersect() Standard_OVERRIDE; |
72 | |
73 | |
74 | |
75 | |
76 | private: |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | }; |
83 | |
84 | |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | #endif // _BOPDS_IteratorSI_HeaderFile |