b311480e |
1 | // Copyright (c) 1995-1999 Matra Datavision |
2 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
3 | // |
4 | // The content of this file is subject to the Open CASCADE Technology Public |
5 | // License Version 6.5 (the "License"). You may not use the content of this file |
6 | // except in compliance with the License. Please obtain a copy of the License |
7 | // at http://www.opencascade.org and read it completely before using this file. |
8 | // |
9 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
10 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
11 | // |
12 | // The Original Code and all software distributed under the License is |
13 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
14 | // Initial Developer hereby disclaims all such warranties, including without |
15 | // limitation, any warranties of merchantability, fitness for a particular |
16 | // purpose or non-infringement. Please see the License for the specific terms |
17 | // and conditions governing the rights and limitations under the License. |
18 | |
7fd59977 |
19 | |
20 | //======================================================================= |
21 | //function : Intersection |
22 | //purpose : |
23 | //======================================================================= |
24 | |
25 | inline void TopBas_Interference::Intersection(const TheSubShape& I) |
26 | { |
27 | myIntersection = I; |
28 | } |
29 | |
30 | //======================================================================= |
31 | //function : Boundary |
32 | //purpose : |
33 | //======================================================================= |
34 | |
35 | inline void TopBas_Interference::Boundary(const TheShape& B) |
36 | { |
37 | myBoundary = B; |
38 | } |
39 | |
40 | //======================================================================= |
41 | //function : Orientation |
42 | //purpose : |
43 | //======================================================================= |
44 | |
45 | inline void TopBas_Interference::Orientation(const TopAbs_Orientation Or) |
46 | { |
47 | myOrientation = Or; |
48 | } |
49 | |
50 | //======================================================================= |
51 | //function : Transition |
52 | //purpose : |
53 | //======================================================================= |
54 | |
55 | inline void TopBas_Interference::Transition(const TopAbs_Orientation Or) |
56 | { |
57 | myTransition = Or; |
58 | } |
59 | |
60 | //======================================================================= |
61 | //function : BoundaryTransition |
62 | //purpose : |
63 | //======================================================================= |
64 | |
65 | inline void TopBas_Interference::BoundaryTransition |
66 | (const TopAbs_Orientation Or) |
67 | { |
68 | myBTransition = Or; |
69 | } |
70 | |
71 | //======================================================================= |
72 | //function : Intersection |
73 | //purpose : |
74 | //======================================================================= |
75 | |
76 | inline const TheSubShape& TopBas_Interference::Intersection() const |
77 | { |
78 | return myIntersection; |
79 | } |
80 | |
81 | //======================================================================= |
82 | //function : ChangeIntersection |
83 | //purpose : |
84 | //======================================================================= |
85 | |
86 | inline TheSubShape& TopBas_Interference::ChangeIntersection() |
87 | { |
88 | return myIntersection; |
89 | } |
90 | |
91 | //======================================================================= |
92 | //function : Boundary |
93 | //purpose : |
94 | //======================================================================= |
95 | |
96 | inline const TheShape& TopBas_Interference::Boundary() const |
97 | { |
98 | return myBoundary; |
99 | } |
100 | |
101 | //======================================================================= |
102 | //function : ChangeBoundary |
103 | //purpose : |
104 | //======================================================================= |
105 | |
106 | inline TheShape& TopBas_Interference::ChangeBoundary() |
107 | { |
108 | return myBoundary; |
109 | } |
110 | |
111 | //======================================================================= |
112 | //function : Orientation |
113 | //purpose : |
114 | //======================================================================= |
115 | |
116 | inline TopAbs_Orientation TopBas_Interference::Orientation() const |
117 | { |
118 | return myOrientation; |
119 | } |
120 | |
121 | //======================================================================= |
122 | //function : Transition |
123 | //purpose : |
124 | //======================================================================= |
125 | |
126 | inline TopAbs_Orientation TopBas_Interference::Transition() const |
127 | { |
128 | return myTransition; |
129 | } |
130 | |
131 | //======================================================================= |
132 | //function : BoundaryTransition |
133 | //purpose : |
134 | //======================================================================= |
135 | |
136 | inline TopAbs_Orientation TopBas_Interference::BoundaryTransition() const |
137 | { |
138 | return myBTransition; |
139 | } |