b311480e |
1 | // Created on: 1997-04-17 |
2 | // Created by: Christophe MARION |
3 | // Copyright (c) 1997-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | #include <HLRBRep_AreaLimit.ixx> |
18 | |
19 | //======================================================================= |
20 | //function : HLRBRep_AreaLimit |
21 | //purpose : |
22 | //======================================================================= |
23 | |
24 | HLRBRep_AreaLimit::HLRBRep_AreaLimit(const HLRAlgo_Intersection& V, |
25 | const Standard_Boolean Boundary, |
26 | const Standard_Boolean Interference, |
27 | const TopAbs_State StateBefore, |
28 | const TopAbs_State StateAfter, |
29 | const TopAbs_State EdgeBefore, |
30 | const TopAbs_State EdgeAfter) : |
31 | myVertex (V), |
32 | myBoundary (Boundary), |
33 | myInterference(Interference), |
34 | myStateBefore (StateBefore), |
35 | myStateAfter (StateAfter), |
36 | myEdgeBefore (EdgeBefore), |
37 | myEdgeAfter (EdgeAfter) |
38 | { |
39 | } |
40 | |
41 | //======================================================================= |
42 | //function : StateBefore |
43 | //purpose : |
44 | //======================================================================= |
45 | |
46 | void HLRBRep_AreaLimit::StateBefore(const TopAbs_State Stat) |
47 | { |
48 | myStateBefore = Stat; |
49 | } |
50 | |
51 | //======================================================================= |
52 | //function : StateAfter |
53 | //purpose : |
54 | //======================================================================= |
55 | |
56 | void HLRBRep_AreaLimit::StateAfter(const TopAbs_State Stat) |
57 | { |
58 | myStateAfter = Stat; |
59 | } |
60 | |
61 | //======================================================================= |
62 | //function : EdgeBefore |
63 | //purpose : |
64 | //======================================================================= |
65 | |
66 | void HLRBRep_AreaLimit::EdgeBefore(const TopAbs_State Stat) |
67 | { |
68 | myEdgeBefore = Stat; |
69 | } |
70 | |
71 | //======================================================================= |
72 | //function : EdgeAfter |
73 | //purpose : |
74 | //======================================================================= |
75 | |
76 | void HLRBRep_AreaLimit::EdgeAfter(const TopAbs_State Stat) |
77 | { |
78 | myEdgeAfter = Stat; |
79 | } |
80 | |
81 | //======================================================================= |
82 | //function : Previous |
83 | //purpose : |
84 | //======================================================================= |
85 | |
86 | void HLRBRep_AreaLimit::Previous(const Handle(HLRBRep_AreaLimit)& P) |
87 | { |
88 | myPrevious = P; |
89 | } |
90 | |
91 | //======================================================================= |
92 | //function : Next |
93 | //purpose : |
94 | //======================================================================= |
95 | |
96 | void HLRBRep_AreaLimit::Next(const Handle(HLRBRep_AreaLimit)& N) |
97 | { |
98 | myNext = N; |
99 | } |
100 | |
101 | //======================================================================= |
102 | //function : Vertex |
103 | //purpose : |
104 | //======================================================================= |
105 | |
106 | const HLRAlgo_Intersection & HLRBRep_AreaLimit::Vertex() const |
107 | { |
108 | return myVertex; |
109 | } |
110 | |
111 | |
112 | //======================================================================= |
113 | //function : IsBoundary |
114 | //purpose : |
115 | //======================================================================= |
116 | |
117 | Standard_Boolean HLRBRep_AreaLimit::IsBoundary() const |
118 | { |
119 | return myBoundary; |
120 | } |
121 | |
122 | //======================================================================= |
123 | //function : IsInterference |
124 | //purpose : |
125 | //======================================================================= |
126 | |
127 | Standard_Boolean HLRBRep_AreaLimit::IsInterference() const |
128 | { |
129 | return myInterference; |
130 | } |
131 | |
132 | //======================================================================= |
133 | //function : StateBefore |
134 | //purpose : |
135 | //======================================================================= |
136 | |
137 | TopAbs_State HLRBRep_AreaLimit::StateBefore() const |
138 | { |
139 | return myStateBefore; |
140 | } |
141 | |
142 | //======================================================================= |
143 | //function : StateAfter |
144 | //purpose : |
145 | //======================================================================= |
146 | |
147 | TopAbs_State HLRBRep_AreaLimit::StateAfter() const |
148 | { |
149 | return myStateAfter; |
150 | } |
151 | |
152 | //======================================================================= |
153 | //function : EdgeBefore |
154 | //purpose : |
155 | //======================================================================= |
156 | |
157 | TopAbs_State HLRBRep_AreaLimit::EdgeBefore() const |
158 | { |
159 | return myEdgeBefore; |
160 | } |
161 | |
162 | //======================================================================= |
163 | //function : EdgeAfter |
164 | //purpose : |
165 | //======================================================================= |
166 | |
167 | TopAbs_State HLRBRep_AreaLimit::EdgeAfter() const |
168 | { |
169 | return myEdgeAfter; |
170 | } |
171 | |
172 | //======================================================================= |
173 | //function : Previous |
174 | //purpose : |
175 | //======================================================================= |
176 | |
177 | Handle(HLRBRep_AreaLimit) HLRBRep_AreaLimit::Previous () const |
178 | { |
179 | return myPrevious; |
180 | } |
181 | |
182 | //======================================================================= |
183 | //function : Next |
184 | //purpose : |
185 | //======================================================================= |
186 | |
187 | Handle(HLRBRep_AreaLimit) HLRBRep_AreaLimit::Next () const |
188 | { |
189 | return myNext; |
190 | } |
191 | |
192 | //======================================================================= |
193 | //function : Clear |
194 | //purpose : |
195 | //======================================================================= |
196 | |
197 | void HLRBRep_AreaLimit::Clear() |
198 | { |
199 | myPrevious.Nullify(); |
200 | myNext.Nullify(); |
201 | } |