b311480e |
1 | // Copyright (c) 1995-1999 Matra Datavision |
973c2be1 |
2 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
3 | // |
973c2be1 |
4 | // This file is part of Open CASCADE Technology software library. |
b311480e |
5 | // |
d5f74e42 |
6 | // This library is free software; you can redistribute it and/or modify it under |
7 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
8 | // by the Free Software Foundation, with special exception defined in the file |
9 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
10 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
11 | // |
973c2be1 |
12 | // Alternatively, this file may be used under the terms of Open CASCADE |
13 | // commercial license or contractual agreement. |
7fd59977 |
14 | |
15 | //======================================================================= |
16 | //function : Intersection |
17 | //purpose : |
18 | //======================================================================= |
19 | |
20 | inline void TopBas_Interference::Intersection(const TheSubShape& I) |
21 | { |
22 | myIntersection = I; |
23 | } |
24 | |
25 | //======================================================================= |
26 | //function : Boundary |
27 | //purpose : |
28 | //======================================================================= |
29 | |
30 | inline void TopBas_Interference::Boundary(const TheShape& B) |
31 | { |
32 | myBoundary = B; |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : Orientation |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | inline void TopBas_Interference::Orientation(const TopAbs_Orientation Or) |
41 | { |
42 | myOrientation = Or; |
43 | } |
44 | |
45 | //======================================================================= |
46 | //function : Transition |
47 | //purpose : |
48 | //======================================================================= |
49 | |
50 | inline void TopBas_Interference::Transition(const TopAbs_Orientation Or) |
51 | { |
52 | myTransition = Or; |
53 | } |
54 | |
55 | //======================================================================= |
56 | //function : BoundaryTransition |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | inline void TopBas_Interference::BoundaryTransition |
61 | (const TopAbs_Orientation Or) |
62 | { |
63 | myBTransition = Or; |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : Intersection |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | inline const TheSubShape& TopBas_Interference::Intersection() const |
72 | { |
73 | return myIntersection; |
74 | } |
75 | |
76 | //======================================================================= |
77 | //function : ChangeIntersection |
78 | //purpose : |
79 | //======================================================================= |
80 | |
81 | inline TheSubShape& TopBas_Interference::ChangeIntersection() |
82 | { |
83 | return myIntersection; |
84 | } |
85 | |
86 | //======================================================================= |
87 | //function : Boundary |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | inline const TheShape& TopBas_Interference::Boundary() const |
92 | { |
93 | return myBoundary; |
94 | } |
95 | |
96 | //======================================================================= |
97 | //function : ChangeBoundary |
98 | //purpose : |
99 | //======================================================================= |
100 | |
101 | inline TheShape& TopBas_Interference::ChangeBoundary() |
102 | { |
103 | return myBoundary; |
104 | } |
105 | |
106 | //======================================================================= |
107 | //function : Orientation |
108 | //purpose : |
109 | //======================================================================= |
110 | |
111 | inline TopAbs_Orientation TopBas_Interference::Orientation() const |
112 | { |
113 | return myOrientation; |
114 | } |
115 | |
116 | //======================================================================= |
117 | //function : Transition |
118 | //purpose : |
119 | //======================================================================= |
120 | |
121 | inline TopAbs_Orientation TopBas_Interference::Transition() const |
122 | { |
123 | return myTransition; |
124 | } |
125 | |
126 | //======================================================================= |
127 | //function : BoundaryTransition |
128 | //purpose : |
129 | //======================================================================= |
130 | |
131 | inline TopAbs_Orientation TopBas_Interference::BoundaryTransition() const |
132 | { |
133 | return myBTransition; |
134 | } |