b311480e |
1 | // Created on: 2000-01-31 |
2 | // Created by: data exchange team |
973c2be1 |
3 | // Copyright (c) 2000-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | #include <Transfer_TransientProcess.hxx> |
c04c30b3 |
17 | #include <IGESData_IGESEntity.hxx> |
7fd59977 |
18 | |
19 | //======================================================================= |
20 | //function : SetEpsilon |
21 | //purpose : |
22 | //======================================================================= |
23 | |
24 | inline void IGESToBRep_CurveAndSurface::SetEpsilon(const Standard_Real eps) |
25 | { |
26 | myEps = eps; |
27 | } |
28 | |
29 | |
30 | //======================================================================= |
31 | //function : GetEpsilon |
32 | //purpose : |
33 | //======================================================================= |
34 | |
35 | inline Standard_Real IGESToBRep_CurveAndSurface::GetEpsilon() const |
36 | { |
37 | return myEps; |
38 | } |
39 | |
40 | |
41 | //======================================================================= |
42 | //function : SetEpsCoeff |
43 | //purpose : |
44 | //======================================================================= |
45 | |
46 | inline void IGESToBRep_CurveAndSurface::SetEpsCoeff(const Standard_Real eps) |
47 | { |
48 | myEpsCoeff = eps; |
49 | } |
50 | |
51 | |
52 | //======================================================================= |
53 | //function : GetEpsCoeff |
54 | //purpose : |
55 | //======================================================================= |
56 | |
57 | inline Standard_Real IGESToBRep_CurveAndSurface::GetEpsCoeff() const |
58 | { |
59 | return myEpsCoeff; |
60 | } |
61 | |
62 | |
63 | //======================================================================= |
64 | //function : GetEpsGeom |
65 | //purpose : |
66 | //======================================================================= |
67 | |
68 | inline Standard_Real IGESToBRep_CurveAndSurface::GetEpsGeom() const |
69 | { |
70 | return myEpsGeom; |
71 | } |
72 | |
73 | |
74 | //======================================================================= |
75 | //function : SetMinTol |
76 | //purpose : |
77 | //======================================================================= |
78 | |
79 | inline void IGESToBRep_CurveAndSurface::SetMinTol(const Standard_Real mintol) |
80 | { |
81 | myMinTol = mintol; |
82 | } |
83 | |
84 | |
85 | //======================================================================= |
86 | //function : SetMaxTol |
87 | //purpose : |
88 | //======================================================================= |
89 | |
90 | inline void IGESToBRep_CurveAndSurface::SetMaxTol(const Standard_Real maxtol) |
91 | { |
92 | myMaxTol = maxtol; |
93 | } |
94 | |
95 | |
96 | //======================================================================= |
97 | //function : GetMinTol |
98 | //purpose : |
99 | //======================================================================= |
100 | |
101 | inline Standard_Real IGESToBRep_CurveAndSurface::GetMinTol() const |
102 | { |
103 | return myMinTol; |
104 | } |
105 | |
106 | |
107 | //======================================================================= |
108 | //function : GetMaxTol |
109 | //purpose : |
110 | //======================================================================= |
111 | |
112 | inline Standard_Real IGESToBRep_CurveAndSurface::GetMaxTol() const |
113 | { |
114 | return myMaxTol; |
115 | } |
116 | |
117 | |
118 | //======================================================================= |
119 | //function : SetModeApprox |
120 | //purpose : |
121 | //======================================================================= |
122 | |
123 | inline void IGESToBRep_CurveAndSurface::SetModeApprox(const Standard_Boolean mode) |
124 | { |
125 | myModeApprox = mode; |
126 | } |
127 | |
128 | |
129 | //======================================================================= |
130 | //function : GetModeApprox |
131 | //purpose : |
132 | //======================================================================= |
133 | |
134 | inline Standard_Boolean IGESToBRep_CurveAndSurface::GetModeApprox() const |
135 | { |
136 | return myModeApprox; |
137 | } |
138 | |
139 | |
140 | //======================================================================= |
141 | //function : SetModeTransfer |
142 | //purpose : |
143 | //======================================================================= |
144 | |
145 | inline void IGESToBRep_CurveAndSurface::SetModeTransfer(const Standard_Boolean mode) |
146 | { |
147 | myModeIsTopo = mode; |
148 | } |
149 | |
150 | |
151 | //======================================================================= |
152 | //function : GetModeTransfer |
153 | //purpose : |
154 | //======================================================================= |
155 | |
156 | inline Standard_Boolean IGESToBRep_CurveAndSurface::GetModeTransfer() const |
157 | { |
158 | return myModeIsTopo; |
159 | } |
160 | |
161 | |
162 | //======================================================================= |
163 | //function : SetOptimized |
164 | //purpose : |
165 | //======================================================================= |
166 | |
167 | inline void IGESToBRep_CurveAndSurface::SetOptimized(const Standard_Boolean optimized) |
168 | { |
169 | myContIsOpti = optimized; |
170 | } |
171 | |
172 | |
173 | //======================================================================= |
174 | //function : GetOptimized |
175 | //purpose : |
176 | //======================================================================= |
177 | |
178 | inline Standard_Boolean IGESToBRep_CurveAndSurface::GetOptimized() const |
179 | { |
180 | return myContIsOpti; |
181 | } |
182 | |
183 | |
184 | //======================================================================= |
185 | //function : GetUnitFactor |
186 | //purpose : |
187 | //======================================================================= |
188 | |
189 | inline Standard_Real IGESToBRep_CurveAndSurface::GetUnitFactor() const |
190 | { |
191 | return myUnitFactor; |
192 | } |
193 | |
194 | |
195 | //======================================================================= |
196 | //function : SetSurfaceCurve |
197 | //purpose : |
198 | //======================================================================= |
199 | |
200 | inline void IGESToBRep_CurveAndSurface::SetSurfaceCurve(const Standard_Integer ival) |
201 | { |
202 | mySurfaceCurve = ival; |
203 | } |
204 | |
205 | |
206 | //======================================================================= |
207 | //function : GetSurfaceCurve |
208 | //purpose : |
209 | //======================================================================= |
210 | |
211 | inline Standard_Integer IGESToBRep_CurveAndSurface::GetSurfaceCurve() const |
212 | { |
213 | return mySurfaceCurve; |
214 | } |
215 | |
216 | |
217 | //======================================================================= |
218 | //function : GetModel |
219 | //purpose : |
220 | //======================================================================= |
221 | |
222 | inline Handle(IGESData_IGESModel) IGESToBRep_CurveAndSurface::GetModel() const |
223 | { |
224 | return myModel; |
225 | } |
226 | |
227 | |
228 | //======================================================================= |
229 | //function : SetContinuity |
230 | //purpose : |
231 | //======================================================================= |
232 | |
233 | inline void IGESToBRep_CurveAndSurface::SetContinuity(const Standard_Integer continuity) |
234 | { |
235 | myContinuity = continuity; |
236 | } |
237 | |
238 | |
239 | //======================================================================= |
240 | //function : GetContinuity |
241 | //purpose : |
242 | //======================================================================= |
243 | |
244 | inline Standard_Integer IGESToBRep_CurveAndSurface::GetContinuity() const |
245 | { |
246 | return myContinuity; |
247 | } |
248 | |
249 | |
250 | //======================================================================= |
251 | //function : SetTransferProcess |
252 | //purpose : |
253 | //======================================================================= |
254 | |
255 | inline void IGESToBRep_CurveAndSurface::SetTransferProcess(const Handle(Transfer_TransientProcess)& TP) |
256 | { |
257 | myTP = TP; |
258 | } |
259 | |
260 | |
261 | //======================================================================= |
262 | //function : GetTransferProcess |
263 | //purpose : |
264 | //======================================================================= |
265 | |
266 | inline Handle(Transfer_TransientProcess) IGESToBRep_CurveAndSurface::GetTransferProcess() const |
267 | { |
268 | return myTP; |
269 | } |
270 | |
271 | |
272 | //======================================================================= |
273 | //function : SendFail |
274 | //purpose : |
275 | //======================================================================= |
276 | |
277 | inline void IGESToBRep_CurveAndSurface::SendFail (const Handle(IGESData_IGESEntity)& start, |
278 | const Message_Msg& amsg) |
279 | { |
280 | GetTransferProcess()->SendFail(start,amsg); |
281 | } |
282 | |
283 | |
284 | //======================================================================= |
285 | //function : SendWarning |
286 | //purpose : |
287 | //======================================================================= |
288 | |
289 | inline void IGESToBRep_CurveAndSurface::SendWarning (const Handle(IGESData_IGESEntity)& start, |
290 | const Message_Msg& amsg) |
291 | { |
292 | GetTransferProcess()->SendWarning(start,amsg); |
293 | } |
294 | |
295 | |
296 | //======================================================================= |
297 | //function : SendMsg |
298 | //purpose : |
299 | //======================================================================= |
300 | |
301 | inline void IGESToBRep_CurveAndSurface::SendMsg (const Handle(IGESData_IGESEntity)& start, |
302 | const Message_Msg& amsg) |
303 | { |
304 | GetTransferProcess()->SendMsg(start,amsg); |
305 | } |
306 | |
307 | |