b311480e |
1 | // Created on: 2000-11-21 |
2 | // Created by: Peter KURNEV |
3 | // Copyright (c) 2000-2012 OPEN CASCADE SAS |
4 | // |
5 | // The content of this file is subject to the Open CASCADE Technology Public |
6 | // License Version 6.5 (the "License"). You may not use the content of this file |
7 | // except in compliance with the License. Please obtain a copy of the License |
8 | // at http://www.opencascade.org and read it completely before using this file. |
9 | // |
10 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | // |
13 | // The Original Code and all software distributed under the License is |
14 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | // Initial Developer hereby disclaims all such warranties, including without |
16 | // limitation, any warranties of merchantability, fitness for a particular |
17 | // purpose or non-infringement. Please see the License for the specific terms |
18 | // and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
21 | #include <BOPTools_Interference.ixx> |
22 | |
23 | //======================================================================= |
24 | //function : BOPTools_Interference::BOPTools_Interference |
25 | //purpose : |
26 | //======================================================================= |
b311480e |
27 | BOPTools_Interference::BOPTools_Interference() |
7fd59977 |
28 | : |
29 | myWith(0), |
30 | myType(BooleanOperations_UnknownInterference), |
31 | myIndex(0) |
32 | { |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : BOPTools_Interference::BOPTools_Interference |
37 | //purpose : |
38 | //======================================================================= |
39 | BOPTools_Interference::BOPTools_Interference(const Standard_Integer aWith, |
40 | const BooleanOperations_KindOfInterference aType, |
41 | const Standard_Integer anIndex) |
42 | : |
43 | myWith(aWith), |
44 | myType(aType), |
45 | myIndex(anIndex) |
46 | { |
47 | } |
48 | //======================================================================= |
49 | //function : SetWith |
50 | //purpose : |
51 | //======================================================================= |
52 | void BOPTools_Interference::SetWith(const Standard_Integer aWith) |
53 | { |
54 | myWith=aWith; |
55 | } |
56 | |
57 | //======================================================================= |
58 | //function : SetType |
59 | //purpose : |
60 | //======================================================================= |
61 | void BOPTools_Interference::SetType(const BooleanOperations_KindOfInterference aType) |
62 | { |
63 | myType=aType; |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : SetIndex |
68 | //purpose : |
69 | //======================================================================= |
70 | void BOPTools_Interference::SetIndex(const Standard_Integer anIndex) |
71 | { |
72 | myIndex=anIndex; |
73 | } |
74 | |
75 | //======================================================================= |
76 | //function : With |
77 | //purpose : |
78 | //======================================================================= |
79 | Standard_Integer BOPTools_Interference::With() const |
80 | { |
81 | return myWith; |
82 | } |
83 | |
84 | //======================================================================= |
85 | //function : Type |
86 | //purpose : |
87 | //======================================================================= |
88 | BooleanOperations_KindOfInterference BOPTools_Interference::Type() const |
89 | { |
90 | return myType; |
91 | } |
92 | |
93 | //======================================================================= |
94 | //function : Index |
95 | //purpose : |
96 | //======================================================================= |
97 | Standard_Integer BOPTools_Interference::Index() const |
98 | { |
99 | return myIndex; |
100 | } |