1 // Created on: 1992-08-25
2 // Created by: Christophe MARION
3 // Copyright (c) 1992-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 #define EMskRg1Line ((Standard_Boolean)1)
18 #define EMskRgNLine ((Standard_Boolean)2)
19 #define EMskOutLine ((Standard_Boolean)4)
20 #define EMskIntLine ((Standard_Boolean)8)
22 //=======================================================================
25 //=======================================================================
27 inline const gp_Pnt2d & HLRBRep_BiPnt2D::P1 () const
30 //=======================================================================
33 //=======================================================================
35 inline const gp_Pnt2d & HLRBRep_BiPnt2D::P2 () const
38 //=======================================================================
41 //=======================================================================
43 inline const TopoDS_Shape & HLRBRep_BiPnt2D::Shape () const
46 //=======================================================================
49 //=======================================================================
51 inline void HLRBRep_BiPnt2D::Shape (const TopoDS_Shape& S)
54 //=======================================================================
57 //=======================================================================
59 inline Standard_Boolean HLRBRep_BiPnt2D::Rg1Line () const
60 { return (myFlags & EMskRg1Line) != 0; }
62 //=======================================================================
65 //=======================================================================
67 inline void HLRBRep_BiPnt2D::Rg1Line (const Standard_Boolean B)
69 if (B) myFlags |= EMskRg1Line;
70 else myFlags &= ~EMskRg1Line;
73 //=======================================================================
76 //=======================================================================
78 inline Standard_Boolean HLRBRep_BiPnt2D::RgNLine () const
79 { return (myFlags & EMskRgNLine) != 0; }
81 //=======================================================================
84 //=======================================================================
86 inline void HLRBRep_BiPnt2D::RgNLine (const Standard_Boolean B)
88 if (B) myFlags |= EMskRgNLine;
89 else myFlags &= ~EMskRgNLine;
92 //=======================================================================
95 //=======================================================================
97 inline Standard_Boolean HLRBRep_BiPnt2D::OutLine () const
98 { return (myFlags & EMskOutLine) != 0; }
100 //=======================================================================
103 //=======================================================================
105 inline void HLRBRep_BiPnt2D::OutLine (const Standard_Boolean B)
107 if (B) myFlags |= EMskOutLine;
108 else myFlags &= ~EMskOutLine;
111 //=======================================================================
114 //=======================================================================
116 inline Standard_Boolean HLRBRep_BiPnt2D::IntLine () const
117 { return (myFlags & EMskIntLine) != 0; }
119 //=======================================================================
122 //=======================================================================
124 inline void HLRBRep_BiPnt2D::IntLine (const Standard_Boolean B)
126 if (B) myFlags |= EMskIntLine;
127 else myFlags &= ~EMskIntLine;