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 | |
42cf5bc1 |
17 | |
18 | #include <HLRAlgo_Intersection.hxx> |
19 | #include <HLRBRep_AreaLimit.hxx> |
20 | #include <Standard_Type.hxx> |
7fd59977 |
21 | |
25e59720 |
22 | IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_AreaLimit,Standard_Transient) |
92efcf78 |
23 | |
7fd59977 |
24 | //======================================================================= |
25 | //function : HLRBRep_AreaLimit |
26 | //purpose : |
27 | //======================================================================= |
7fd59977 |
28 | HLRBRep_AreaLimit::HLRBRep_AreaLimit(const HLRAlgo_Intersection& V, |
29 | const Standard_Boolean Boundary, |
30 | const Standard_Boolean Interference, |
31 | const TopAbs_State StateBefore, |
32 | const TopAbs_State StateAfter, |
33 | const TopAbs_State EdgeBefore, |
34 | const TopAbs_State EdgeAfter) : |
35 | myVertex (V), |
36 | myBoundary (Boundary), |
37 | myInterference(Interference), |
38 | myStateBefore (StateBefore), |
39 | myStateAfter (StateAfter), |
40 | myEdgeBefore (EdgeBefore), |
41 | myEdgeAfter (EdgeAfter) |
42 | { |
43 | } |
44 | |
45 | //======================================================================= |
46 | //function : StateBefore |
47 | //purpose : |
48 | //======================================================================= |
49 | |
50 | void HLRBRep_AreaLimit::StateBefore(const TopAbs_State Stat) |
51 | { |
52 | myStateBefore = Stat; |
53 | } |
54 | |
55 | //======================================================================= |
56 | //function : StateAfter |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | void HLRBRep_AreaLimit::StateAfter(const TopAbs_State Stat) |
61 | { |
62 | myStateAfter = Stat; |
63 | } |
64 | |
65 | //======================================================================= |
66 | //function : EdgeBefore |
67 | //purpose : |
68 | //======================================================================= |
69 | |
70 | void HLRBRep_AreaLimit::EdgeBefore(const TopAbs_State Stat) |
71 | { |
72 | myEdgeBefore = Stat; |
73 | } |
74 | |
75 | //======================================================================= |
76 | //function : EdgeAfter |
77 | //purpose : |
78 | //======================================================================= |
79 | |
80 | void HLRBRep_AreaLimit::EdgeAfter(const TopAbs_State Stat) |
81 | { |
82 | myEdgeAfter = Stat; |
83 | } |
84 | |
85 | //======================================================================= |
86 | //function : Previous |
87 | //purpose : |
88 | //======================================================================= |
89 | |
90 | void HLRBRep_AreaLimit::Previous(const Handle(HLRBRep_AreaLimit)& P) |
91 | { |
92 | myPrevious = P; |
93 | } |
94 | |
95 | //======================================================================= |
96 | //function : Next |
97 | //purpose : |
98 | //======================================================================= |
99 | |
100 | void HLRBRep_AreaLimit::Next(const Handle(HLRBRep_AreaLimit)& N) |
101 | { |
102 | myNext = N; |
103 | } |
104 | |
105 | //======================================================================= |
106 | //function : Vertex |
107 | //purpose : |
108 | //======================================================================= |
109 | |
110 | const HLRAlgo_Intersection & HLRBRep_AreaLimit::Vertex() const |
111 | { |
112 | return myVertex; |
113 | } |
114 | |
115 | |
116 | //======================================================================= |
117 | //function : IsBoundary |
118 | //purpose : |
119 | //======================================================================= |
120 | |
121 | Standard_Boolean HLRBRep_AreaLimit::IsBoundary() const |
122 | { |
123 | return myBoundary; |
124 | } |
125 | |
126 | //======================================================================= |
127 | //function : IsInterference |
128 | //purpose : |
129 | //======================================================================= |
130 | |
131 | Standard_Boolean HLRBRep_AreaLimit::IsInterference() const |
132 | { |
133 | return myInterference; |
134 | } |
135 | |
136 | //======================================================================= |
137 | //function : StateBefore |
138 | //purpose : |
139 | //======================================================================= |
140 | |
141 | TopAbs_State HLRBRep_AreaLimit::StateBefore() const |
142 | { |
143 | return myStateBefore; |
144 | } |
145 | |
146 | //======================================================================= |
147 | //function : StateAfter |
148 | //purpose : |
149 | //======================================================================= |
150 | |
151 | TopAbs_State HLRBRep_AreaLimit::StateAfter() const |
152 | { |
153 | return myStateAfter; |
154 | } |
155 | |
156 | //======================================================================= |
157 | //function : EdgeBefore |
158 | //purpose : |
159 | //======================================================================= |
160 | |
161 | TopAbs_State HLRBRep_AreaLimit::EdgeBefore() const |
162 | { |
163 | return myEdgeBefore; |
164 | } |
165 | |
166 | //======================================================================= |
167 | //function : EdgeAfter |
168 | //purpose : |
169 | //======================================================================= |
170 | |
171 | TopAbs_State HLRBRep_AreaLimit::EdgeAfter() const |
172 | { |
173 | return myEdgeAfter; |
174 | } |
175 | |
176 | //======================================================================= |
177 | //function : Previous |
178 | //purpose : |
179 | //======================================================================= |
180 | |
181 | Handle(HLRBRep_AreaLimit) HLRBRep_AreaLimit::Previous () const |
182 | { |
183 | return myPrevious; |
184 | } |
185 | |
186 | //======================================================================= |
187 | //function : Next |
188 | //purpose : |
189 | //======================================================================= |
190 | |
191 | Handle(HLRBRep_AreaLimit) HLRBRep_AreaLimit::Next () const |
192 | { |
193 | return myNext; |
194 | } |
195 | |
196 | //======================================================================= |
197 | //function : Clear |
198 | //purpose : |
199 | //======================================================================= |
200 | |
201 | void HLRBRep_AreaLimit::Clear() |
202 | { |
203 | myPrevious.Nullify(); |
204 | myNext.Nullify(); |
205 | } |