summaryrefslogtreecommitdiff
path: root/inc/HLRAlgo_BiPoint.lxx
blob: 2a626c9f712aadc8b213ff5179e758e81d704c85 (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
119
120
121
122
123
124
125
126
127
128
129
130
131
// File:	HLRAlgo_BiPoint.lxx
// Created:	Thu Jun 22 12:35:03 1995
// Author:	Christophe MARION
//		<cma@ecolox>

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

//=======================================================================
//function : HLRAlgo_BiPoint
//purpose  : 
//=======================================================================

inline HLRAlgo_BiPoint::HLRAlgo_BiPoint ()
{
}

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

inline Standard_Boolean HLRAlgo_BiPoint::Rg1Line () const
{ return (myIndices[9] & EMskRg1Line) != 0; }

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

inline void HLRAlgo_BiPoint::Rg1Line (const Standard_Boolean B)
{
  if (B) myIndices[9] |=  EMskRg1Line;
  else   myIndices[9] &= ~EMskRg1Line;
}

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

inline Standard_Boolean HLRAlgo_BiPoint::RgNLine () const
{ return (myIndices[9] & EMskRgNLine) != 0; }

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

inline void HLRAlgo_BiPoint::RgNLine (const Standard_Boolean B)
{
  if (B) myIndices[9] |=  EMskRgNLine;
  else   myIndices[9] &= ~EMskRgNLine;
}

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

inline Standard_Boolean HLRAlgo_BiPoint::OutLine () const
{ return (myIndices[9] & EMskOutLine) != 0; }

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

inline void HLRAlgo_BiPoint::OutLine (const Standard_Boolean B)
{
  if (B) myIndices[9] |=  EMskOutLine;
  else   myIndices[9] &= ~EMskOutLine;
}

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

inline Standard_Boolean HLRAlgo_BiPoint::IntLine () const
{ return (myIndices[9] & EMskIntLine) != 0; }

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

inline void HLRAlgo_BiPoint::IntLine (const Standard_Boolean B)
{
  if (B) myIndices[9] |=  EMskIntLine;
  else   myIndices[9] &= ~EMskIntLine;
}

//=======================================================================
//function : Hidden
//purpose  : 
//=======================================================================

inline Standard_Boolean HLRAlgo_BiPoint::Hidden () const
{ return (myIndices[9] & EMskHidden) != 0; }

//=======================================================================
//function : Hidden
//purpose  : 
//=======================================================================

inline void HLRAlgo_BiPoint::Hidden (const Standard_Boolean B)
{
  if (B) myIndices[9] |=  EMskHidden;
  else   myIndices[9] &= ~EMskHidden;
}

//=======================================================================
//function : Indices
//purpose  : 
//=======================================================================

inline Standard_Address HLRAlgo_BiPoint::Indices () const
{ return (Standard_Address)myIndices; }

//=======================================================================
//function : Coordinates
//purpose  : 
//=======================================================================

inline Standard_Address HLRAlgo_BiPoint::Coordinates () const
{ return (Standard_Address)myCoordinates; }