1 // Created on: 1997-04-17
2 // Created by: Christophe MARION
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 //=======================================================================
20 //=======================================================================
22 inline Standard_Boolean HLRBRep_EdgeData::Selected () const
23 { return (myFlags & EMaskSelected) != 0; }
25 //=======================================================================
28 //=======================================================================
30 inline void HLRBRep_EdgeData::Selected (const Standard_Boolean B)
32 if (B) myFlags |= EMaskSelected;
33 else myFlags &= ~EMaskSelected;
36 //=======================================================================
39 //=======================================================================
41 inline Standard_Boolean HLRBRep_EdgeData::Rg1Line () const
42 { return (myFlags & EMaskRg1Line) != 0; }
44 //=======================================================================
47 //=======================================================================
49 inline void HLRBRep_EdgeData::Rg1Line (const Standard_Boolean B)
51 if (B) myFlags |= EMaskRg1Line;
52 else myFlags &= ~EMaskRg1Line;
55 //=======================================================================
58 //=======================================================================
60 inline Standard_Boolean HLRBRep_EdgeData::RgNLine () const
61 { return (myFlags & EMaskRgNLine) != 0; }
63 //=======================================================================
66 //=======================================================================
68 inline void HLRBRep_EdgeData::RgNLine (const Standard_Boolean B)
70 if (B) myFlags |= EMaskRgNLine;
71 else myFlags &= ~EMaskRgNLine;
74 //=======================================================================
77 //=======================================================================
79 inline Standard_Boolean HLRBRep_EdgeData::Vertical () const
80 { return (myFlags & EMaskVertical) != 0; }
82 //=======================================================================
85 //=======================================================================
87 inline void HLRBRep_EdgeData::Vertical(const Standard_Boolean B)
89 if (B) myFlags |= EMaskVertical;
90 else myFlags &= ~EMaskVertical;
93 //=======================================================================
96 //=======================================================================
98 inline Standard_Boolean HLRBRep_EdgeData::Simple () const
99 { return (myFlags & EMaskSimple) != 0; }
101 //=======================================================================
104 //=======================================================================
106 inline void HLRBRep_EdgeData::Simple (const Standard_Boolean B)
108 if (B) myFlags |= EMaskSimple;
109 else myFlags &= ~EMaskSimple;
112 //=======================================================================
113 //function : OutLVSta
115 //=======================================================================
117 inline Standard_Boolean HLRBRep_EdgeData::OutLVSta () const
118 { return (myFlags & EMaskOutLVSta) != 0; }
120 //=======================================================================
121 //function : OutLVSta
123 //=======================================================================
125 inline void HLRBRep_EdgeData::OutLVSta (const Standard_Boolean B)
127 if (B) myFlags |= EMaskOutLVSta;
128 else myFlags &= ~EMaskOutLVSta;
131 //=======================================================================
132 //function : OutLVEnd
134 //=======================================================================
136 inline Standard_Boolean HLRBRep_EdgeData::OutLVEnd () const
137 { return (myFlags & EMaskOutLVEnd) != 0; }
139 //=======================================================================
140 //function : OutLVEnd
142 //=======================================================================
144 inline void HLRBRep_EdgeData::OutLVEnd (const Standard_Boolean B)
146 if (B) myFlags |= EMaskOutLVEnd;
147 else myFlags &= ~EMaskOutLVEnd;
150 //=======================================================================
151 //function : CutAtSta
153 //=======================================================================
155 inline Standard_Boolean HLRBRep_EdgeData::CutAtSta () const
156 { return (myFlags & EMaskCutAtSta) != 0; }
158 //=======================================================================
159 //function : CutAtSta
161 //=======================================================================
163 inline void HLRBRep_EdgeData::CutAtSta (const Standard_Boolean B)
165 if (B) myFlags |= EMaskCutAtSta;
166 else myFlags &= ~EMaskCutAtSta;
169 //=======================================================================
170 //function : CutAtEnd
172 //=======================================================================
174 inline Standard_Boolean HLRBRep_EdgeData::CutAtEnd () const
175 { return (myFlags & EMaskCutAtEnd) != 0; }
177 //=======================================================================
178 //function : CutAtEnd
180 //=======================================================================
182 inline void HLRBRep_EdgeData::CutAtEnd (const Standard_Boolean B)
184 if (B) myFlags |= EMaskCutAtEnd;
185 else myFlags &= ~EMaskCutAtEnd;
188 //=======================================================================
189 //function : VerAtSta
191 //=======================================================================
193 inline Standard_Boolean HLRBRep_EdgeData::VerAtSta () const
194 { return (myFlags & EMaskVerAtSta) != 0; }
196 //=======================================================================
197 //function : VerAtSta
199 //=======================================================================
201 inline void HLRBRep_EdgeData::VerAtSta (const Standard_Boolean B)
203 if (B) myFlags |= EMaskVerAtSta;
204 else myFlags &= ~EMaskVerAtSta;
207 //=======================================================================
208 //function : VerAtEnd
210 //=======================================================================
212 inline Standard_Boolean HLRBRep_EdgeData::VerAtEnd () const
213 { return (myFlags & EMaskVerAtEnd) != 0; }
215 //=======================================================================
216 //function : VerAtEnd
218 //=======================================================================
220 inline void HLRBRep_EdgeData::VerAtEnd (const Standard_Boolean B)
222 if (B) myFlags |= EMaskVerAtEnd;
223 else myFlags &= ~EMaskVerAtEnd;
226 //=======================================================================
227 //function : AutoIntersectionDone
229 //=======================================================================
231 inline Standard_Boolean HLRBRep_EdgeData::AutoIntersectionDone () const
232 { return (myFlags & EMaskIntDone) != 0; }
234 //=======================================================================
235 //function : AutoIntersectionDone
237 //=======================================================================
240 HLRBRep_EdgeData::AutoIntersectionDone (const Standard_Boolean B)
242 if (B) myFlags |= EMaskIntDone;
243 else myFlags &= ~EMaskIntDone;
246 //=======================================================================
249 //=======================================================================
251 inline Standard_Boolean HLRBRep_EdgeData::Used () const
252 { return (myFlags & EMaskUsed) != 0; }
254 //=======================================================================
257 //=======================================================================
259 inline void HLRBRep_EdgeData::Used (const Standard_Boolean B)
261 if (B) myFlags |= EMaskUsed;
262 else myFlags &= ~EMaskUsed;
265 //=======================================================================
266 //function : HideCount
268 //=======================================================================
270 inline Standard_Integer HLRBRep_EdgeData::HideCount () const
271 { return myHideCount; }
273 //=======================================================================
274 //function : HideCount
276 //=======================================================================
278 inline void HLRBRep_EdgeData::HideCount (const Standard_Integer I)
281 //=======================================================================
284 //=======================================================================
286 inline Standard_Integer HLRBRep_EdgeData::VSta() const
289 //=======================================================================
292 //=======================================================================
294 inline void HLRBRep_EdgeData::VSta (const Standard_Integer I)
297 //=======================================================================
300 //=======================================================================
302 inline Standard_Integer HLRBRep_EdgeData::VEnd () const
305 //=======================================================================
308 //=======================================================================
310 inline void HLRBRep_EdgeData::VEnd (const Standard_Integer I)
313 //=======================================================================
316 //=======================================================================
318 inline HLRAlgo_EdgeStatus & HLRBRep_EdgeData::Status ()
321 //=======================================================================
322 //function : ChangeGeometry
324 //=======================================================================
326 inline HLRBRep_Curve & HLRBRep_EdgeData::ChangeGeometry ()
327 { return myGeometry; }
329 //=======================================================================
330 //function : Geometry
332 //=======================================================================
334 inline const HLRBRep_Curve & HLRBRep_EdgeData::Geometry () const
335 { return myGeometry; }
337 //=======================================================================
338 //function : Tolerance
340 //=======================================================================
342 inline Standard_ShortReal HLRBRep_EdgeData::Tolerance () const
343 { return myTolerance; }