summaryrefslogtreecommitdiff
path: root/inc/HLRBRep_BiPnt2D.lxx
blob: dfdbde5f9cccbc523212a3b0b1199df0ed819ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// File:	HLRBRep_BiPnt2D.lxx
// Created:	Tue Aug 25 10:43:05 1992
// Author:	Christophe MARION
//		<cma@sdsun2>

#define EMskRg1Line  ((Standard_Boolean)1)
#define EMskRgNLine  ((Standard_Boolean)2)
#define EMskOutLine  ((Standard_Boolean)4)
#define EMskIntLine  ((Standard_Boolean)8)

//=======================================================================
//function : P1
//purpose  : 
//=======================================================================

inline const gp_Pnt2d & HLRBRep_BiPnt2D::P1 () const
{ return myP1; }

//=======================================================================
//function : P2
//purpose  : 
//=======================================================================

inline const gp_Pnt2d & HLRBRep_BiPnt2D::P2 () const
{ return myP2; }

//=======================================================================
//function : Shape
//purpose  : 
//=======================================================================

inline const TopoDS_Shape & HLRBRep_BiPnt2D::Shape () const
{ return myShape; }

//=======================================================================
//function : Shape
//purpose  : 
//=======================================================================

inline void HLRBRep_BiPnt2D::Shape (const TopoDS_Shape& S)
{ myShape = S; }

//=======================================================================
//function : Rg1Line
//purpose  : 
//=======================================================================

inline Standard_Boolean HLRBRep_BiPnt2D::Rg1Line () const
{ return (myFlags & EMskRg1Line) != 0; }

//=======================================================================
//function : Rg1Line
//purpose  : 
//=======================================================================

inline void HLRBRep_BiPnt2D::Rg1Line (const Standard_Boolean B)
{
  if (B) myFlags |=  EMskRg1Line;
  else   myFlags &= ~EMskRg1Line;
}

//=======================================================================
//function : RgNLine
//purpose  : 
//=======================================================================

inline Standard_Boolean HLRBRep_BiPnt2D::RgNLine () const
{ return (myFlags & EMskRgNLine) != 0; }

//=======================================================================
//function : RgNLine
//purpose  : 
//=======================================================================

inline void HLRBRep_BiPnt2D::RgNLine (const Standard_Boolean B)
{
  if (B) myFlags |=  EMskRgNLine;
  else   myFlags &= ~EMskRgNLine;
}

//=======================================================================
//function : OutLine
//purpose  : 
//=======================================================================

inline Standard_Boolean HLRBRep_BiPnt2D::OutLine () const
{ return (myFlags & EMskOutLine) != 0; }

//=======================================================================
//function : OutLine
//purpose  : 
//=======================================================================

inline void HLRBRep_BiPnt2D::OutLine (const Standard_Boolean B)
{
  if (B) myFlags |=  EMskOutLine;
  else   myFlags &= ~EMskOutLine;
}

//=======================================================================
//function : IntLine
//purpose  : 
//=======================================================================

inline Standard_Boolean HLRBRep_BiPnt2D::IntLine () const
{ return (myFlags & EMskIntLine) != 0; }

//=======================================================================
//function : IntLine
//purpose  : 
//=======================================================================

inline void HLRBRep_BiPnt2D::IntLine (const Standard_Boolean B)
{
  if (B) myFlags |=  EMskIntLine;
  else   myFlags &= ~EMskIntLine;
}