0022623: Use of uninitialized variables in HLRBRep_Curve::UpdateMinMax in debug mode
[occt.git] / src / HLRAlgo / HLRAlgo_BiPoint.lxx
CommitLineData
733a0e55
S
1// File: HLRAlgo_BiPoint.lxx
2// Created: Thu Jun 22 12:35:03 1995
3// Author: Christophe MARION
4// Copyright: OPEN CASCADE 2000
7fd59977 5
6#define EMskRg1Line ((Standard_Boolean)1)
7#define EMskRgNLine ((Standard_Boolean)2)
8#define EMskOutLine ((Standard_Boolean)4)
9#define EMskIntLine ((Standard_Boolean)8)
10#define EMskHidden ((Standard_Boolean)16)
11
12//=======================================================================
13//function : HLRAlgo_BiPoint
14//purpose :
15//=======================================================================
16
17inline HLRAlgo_BiPoint::HLRAlgo_BiPoint ()
18{
19}
20
21//=======================================================================
22//function : Rg1Line
23//purpose :
24//=======================================================================
25
26inline Standard_Boolean HLRAlgo_BiPoint::Rg1Line () const
27{ return (myIndices[9] & EMskRg1Line) != 0; }
28
29//=======================================================================
30//function : Rg1Line
31//purpose :
32//=======================================================================
33
34inline void HLRAlgo_BiPoint::Rg1Line (const Standard_Boolean B)
35{
36 if (B) myIndices[9] |= EMskRg1Line;
37 else myIndices[9] &= ~EMskRg1Line;
38}
39
40//=======================================================================
41//function : RgNLine
42//purpose :
43//=======================================================================
44
45inline Standard_Boolean HLRAlgo_BiPoint::RgNLine () const
46{ return (myIndices[9] & EMskRgNLine) != 0; }
47
48//=======================================================================
49//function : RgNLine
50//purpose :
51//=======================================================================
52
53inline void HLRAlgo_BiPoint::RgNLine (const Standard_Boolean B)
54{
55 if (B) myIndices[9] |= EMskRgNLine;
56 else myIndices[9] &= ~EMskRgNLine;
57}
58
59//=======================================================================
60//function : OutLine
61//purpose :
62//=======================================================================
63
64inline Standard_Boolean HLRAlgo_BiPoint::OutLine () const
65{ return (myIndices[9] & EMskOutLine) != 0; }
66
67//=======================================================================
68//function : OutLine
69//purpose :
70//=======================================================================
71
72inline void HLRAlgo_BiPoint::OutLine (const Standard_Boolean B)
73{
74 if (B) myIndices[9] |= EMskOutLine;
75 else myIndices[9] &= ~EMskOutLine;
76}
77
78//=======================================================================
79//function : IntLine
80//purpose :
81//=======================================================================
82
83inline Standard_Boolean HLRAlgo_BiPoint::IntLine () const
84{ return (myIndices[9] & EMskIntLine) != 0; }
85
86//=======================================================================
87//function : IntLine
88//purpose :
89//=======================================================================
90
91inline void HLRAlgo_BiPoint::IntLine (const Standard_Boolean B)
92{
93 if (B) myIndices[9] |= EMskIntLine;
94 else myIndices[9] &= ~EMskIntLine;
95}
96
97//=======================================================================
98//function : Hidden
99//purpose :
100//=======================================================================
101
102inline Standard_Boolean HLRAlgo_BiPoint::Hidden () const
103{ return (myIndices[9] & EMskHidden) != 0; }
104
105//=======================================================================
106//function : Hidden
107//purpose :
108//=======================================================================
109
110inline void HLRAlgo_BiPoint::Hidden (const Standard_Boolean B)
111{
112 if (B) myIndices[9] |= EMskHidden;
113 else myIndices[9] &= ~EMskHidden;
114}
115
116//=======================================================================
117//function : Indices
118//purpose :
119//=======================================================================
120
121inline Standard_Address HLRAlgo_BiPoint::Indices () const
122{ return (Standard_Address)myIndices; }
123
124//=======================================================================
125//function : Coordinates
126//purpose :
127//=======================================================================
128
129inline Standard_Address HLRAlgo_BiPoint::Coordinates () const
130{ return (Standard_Address)myCoordinates; }