Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IGESToBRep / IGESToBRep_CurveAndSurface.lxx
1 // File:        IGESToBRep_CurveAndSurface.lxx
2 // Created:     Mon Jan 31 15:34:59 2000
3 // Author:      data exchange team
4 //              <det@kinox>
5
6 #include <Transfer_TransientProcess.hxx>
7
8 //=======================================================================
9 //function : SetEpsilon
10 //purpose  : 
11 //=======================================================================
12
13 inline  void IGESToBRep_CurveAndSurface::SetEpsilon(const Standard_Real eps) 
14 {
15   myEps = eps;
16 }
17
18  
19 //=======================================================================
20 //function : GetEpsilon
21 //purpose  : 
22 //=======================================================================
23
24 inline  Standard_Real IGESToBRep_CurveAndSurface::GetEpsilon() const
25 {
26   return myEps;
27 }
28
29  
30 //=======================================================================
31 //function : SetEpsCoeff
32 //purpose  : 
33 //=======================================================================
34
35 inline  void IGESToBRep_CurveAndSurface::SetEpsCoeff(const Standard_Real eps) 
36 {
37   myEpsCoeff = eps;
38 }
39
40  
41 //=======================================================================
42 //function : GetEpsCoeff
43 //purpose  : 
44 //=======================================================================
45
46 inline  Standard_Real IGESToBRep_CurveAndSurface::GetEpsCoeff() const
47 {
48   return myEpsCoeff;
49 }
50
51  
52 //=======================================================================
53 //function : GetEpsGeom
54 //purpose  : 
55 //=======================================================================
56
57 inline  Standard_Real IGESToBRep_CurveAndSurface::GetEpsGeom() const
58 {
59   return myEpsGeom;
60 }
61
62  
63 //=======================================================================
64 //function : SetMinTol
65 //purpose  : 
66 //=======================================================================
67
68 inline  void IGESToBRep_CurveAndSurface::SetMinTol(const Standard_Real mintol) 
69 {
70   myMinTol = mintol;
71 }
72
73  
74 //=======================================================================
75 //function : SetMaxTol
76 //purpose  : 
77 //=======================================================================
78
79 inline  void IGESToBRep_CurveAndSurface::SetMaxTol(const Standard_Real maxtol) 
80 {
81   myMaxTol = maxtol;
82 }
83
84  
85 //=======================================================================
86 //function : GetMinTol
87 //purpose  : 
88 //=======================================================================
89
90 inline  Standard_Real IGESToBRep_CurveAndSurface::GetMinTol() const
91 {
92   return myMinTol;
93 }
94
95  
96 //=======================================================================
97 //function : GetMaxTol
98 //purpose  : 
99 //=======================================================================
100
101 inline  Standard_Real IGESToBRep_CurveAndSurface::GetMaxTol() const
102 {
103   return myMaxTol;
104 }
105
106  
107 //=======================================================================
108 //function : SetModeApprox
109 //purpose  : 
110 //=======================================================================
111
112 inline  void IGESToBRep_CurveAndSurface::SetModeApprox(const Standard_Boolean mode) 
113 {
114   myModeApprox = mode; 
115 }
116
117  
118 //=======================================================================
119 //function : GetModeApprox
120 //purpose  : 
121 //=======================================================================
122
123 inline  Standard_Boolean IGESToBRep_CurveAndSurface::GetModeApprox() const
124 {
125   return myModeApprox;
126 }
127
128  
129 //=======================================================================
130 //function : SetModeTransfer
131 //purpose  : 
132 //=======================================================================
133
134 inline  void IGESToBRep_CurveAndSurface::SetModeTransfer(const Standard_Boolean mode) 
135 {
136   myModeIsTopo = mode;
137 }
138
139  
140 //=======================================================================
141 //function : GetModeTransfer
142 //purpose  : 
143 //=======================================================================
144
145 inline  Standard_Boolean IGESToBRep_CurveAndSurface::GetModeTransfer() const
146 {
147   return myModeIsTopo;
148 }
149
150  
151 //=======================================================================
152 //function : SetOptimized
153 //purpose  : 
154 //=======================================================================
155
156 inline  void IGESToBRep_CurveAndSurface::SetOptimized(const Standard_Boolean optimized) 
157 {
158   myContIsOpti = optimized;
159 }
160
161  
162 //=======================================================================
163 //function : GetOptimized
164 //purpose  : 
165 //=======================================================================
166
167 inline  Standard_Boolean IGESToBRep_CurveAndSurface::GetOptimized() const
168 {
169   return myContIsOpti;
170 }
171
172  
173 //=======================================================================
174 //function : GetUnitFactor
175 //purpose  : 
176 //=======================================================================
177
178 inline  Standard_Real IGESToBRep_CurveAndSurface::GetUnitFactor() const
179 {
180   return myUnitFactor;
181 }
182
183  
184 //=======================================================================
185 //function : SetSurfaceCurve
186 //purpose  : 
187 //=======================================================================
188
189 inline  void IGESToBRep_CurveAndSurface::SetSurfaceCurve(const Standard_Integer ival) 
190 {
191   mySurfaceCurve = ival;
192 }
193
194  
195 //=======================================================================
196 //function : GetSurfaceCurve
197 //purpose  : 
198 //=======================================================================
199
200 inline  Standard_Integer IGESToBRep_CurveAndSurface::GetSurfaceCurve() const
201 {
202   return mySurfaceCurve;
203 }
204
205  
206 //=======================================================================
207 //function : GetModel
208 //purpose  : 
209 //=======================================================================
210
211 inline  Handle(IGESData_IGESModel) IGESToBRep_CurveAndSurface::GetModel() const
212 {
213   return myModel;
214 }
215
216  
217 //=======================================================================
218 //function : SetContinuity
219 //purpose  : 
220 //=======================================================================
221
222 inline  void IGESToBRep_CurveAndSurface::SetContinuity(const Standard_Integer continuity) 
223 {
224   myContinuity = continuity;
225 }
226
227  
228 //=======================================================================
229 //function : GetContinuity
230 //purpose  : 
231 //=======================================================================
232
233 inline  Standard_Integer IGESToBRep_CurveAndSurface::GetContinuity() const
234 {
235   return myContinuity;
236 }
237
238  
239 //=======================================================================
240 //function : SetTransferProcess
241 //purpose  : 
242 //=======================================================================
243
244 inline  void IGESToBRep_CurveAndSurface::SetTransferProcess(const Handle(Transfer_TransientProcess)& TP) 
245 {
246   myTP = TP;
247 }
248
249  
250 //=======================================================================
251 //function : GetTransferProcess
252 //purpose  : 
253 //=======================================================================
254
255 inline  Handle(Transfer_TransientProcess) IGESToBRep_CurveAndSurface::GetTransferProcess() const
256 {
257   return myTP;
258 }
259
260  
261 //=======================================================================
262 //function : SendFail
263 //purpose  : 
264 //=======================================================================
265
266 inline  void IGESToBRep_CurveAndSurface::SendFail (const Handle(IGESData_IGESEntity)& start,
267                                                    const Message_Msg& amsg)
268 {
269   GetTransferProcess()->SendFail(start,amsg);
270 }
271
272
273 //=======================================================================
274 //function : SendWarning
275 //purpose  : 
276 //=======================================================================
277
278 inline  void IGESToBRep_CurveAndSurface::SendWarning (const Handle(IGESData_IGESEntity)& start,
279                                                       const Message_Msg& amsg)
280 {
281   GetTransferProcess()->SendWarning(start,amsg);
282 }
283
284
285 //=======================================================================
286 //function : SendMsg
287 //purpose  : 
288 //=======================================================================
289
290 inline  void IGESToBRep_CurveAndSurface::SendMsg (const Handle(IGESData_IGESEntity)& start,
291                                                   const Message_Msg& amsg)
292 {
293   GetTransferProcess()->SendMsg(start,amsg);
294 }
295
296