0024157: Parallelization of assembly part of BO
[occt.git] / src / HLRAlgo / HLRAlgo_BiPoint.lxx
CommitLineData
b311480e 1// Created on: 1995-06-22
2// Created by: Christophe MARION
3// Copyright (c) 1995-1999 Matra Datavision
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
22#define EMskRg1Line ((Standard_Boolean)1)
23#define EMskRgNLine ((Standard_Boolean)2)
24#define EMskOutLine ((Standard_Boolean)4)
25#define EMskIntLine ((Standard_Boolean)8)
26#define EMskHidden ((Standard_Boolean)16)
27
28//=======================================================================
29//function : HLRAlgo_BiPoint
30//purpose :
31//=======================================================================
32
33inline HLRAlgo_BiPoint::HLRAlgo_BiPoint ()
34{
35}
36
37//=======================================================================
38//function : Rg1Line
39//purpose :
40//=======================================================================
41
42inline Standard_Boolean HLRAlgo_BiPoint::Rg1Line () const
43{ return (myIndices[9] & EMskRg1Line) != 0; }
44
45//=======================================================================
46//function : Rg1Line
47//purpose :
48//=======================================================================
49
50inline void HLRAlgo_BiPoint::Rg1Line (const Standard_Boolean B)
51{
52 if (B) myIndices[9] |= EMskRg1Line;
53 else myIndices[9] &= ~EMskRg1Line;
54}
55
56//=======================================================================
57//function : RgNLine
58//purpose :
59//=======================================================================
60
61inline Standard_Boolean HLRAlgo_BiPoint::RgNLine () const
62{ return (myIndices[9] & EMskRgNLine) != 0; }
63
64//=======================================================================
65//function : RgNLine
66//purpose :
67//=======================================================================
68
69inline void HLRAlgo_BiPoint::RgNLine (const Standard_Boolean B)
70{
71 if (B) myIndices[9] |= EMskRgNLine;
72 else myIndices[9] &= ~EMskRgNLine;
73}
74
75//=======================================================================
76//function : OutLine
77//purpose :
78//=======================================================================
79
80inline Standard_Boolean HLRAlgo_BiPoint::OutLine () const
81{ return (myIndices[9] & EMskOutLine) != 0; }
82
83//=======================================================================
84//function : OutLine
85//purpose :
86//=======================================================================
87
88inline void HLRAlgo_BiPoint::OutLine (const Standard_Boolean B)
89{
90 if (B) myIndices[9] |= EMskOutLine;
91 else myIndices[9] &= ~EMskOutLine;
92}
93
94//=======================================================================
95//function : IntLine
96//purpose :
97//=======================================================================
98
99inline Standard_Boolean HLRAlgo_BiPoint::IntLine () const
100{ return (myIndices[9] & EMskIntLine) != 0; }
101
102//=======================================================================
103//function : IntLine
104//purpose :
105//=======================================================================
106
107inline void HLRAlgo_BiPoint::IntLine (const Standard_Boolean B)
108{
109 if (B) myIndices[9] |= EMskIntLine;
110 else myIndices[9] &= ~EMskIntLine;
111}
112
113//=======================================================================
114//function : Hidden
115//purpose :
116//=======================================================================
117
118inline Standard_Boolean HLRAlgo_BiPoint::Hidden () const
119{ return (myIndices[9] & EMskHidden) != 0; }
120
121//=======================================================================
122//function : Hidden
123//purpose :
124//=======================================================================
125
126inline void HLRAlgo_BiPoint::Hidden (const Standard_Boolean B)
127{
128 if (B) myIndices[9] |= EMskHidden;
129 else myIndices[9] &= ~EMskHidden;
130}
131
132//=======================================================================
133//function : Indices
134//purpose :
135//=======================================================================
136
137inline Standard_Address HLRAlgo_BiPoint::Indices () const
138{ return (Standard_Address)myIndices; }
139
140//=======================================================================
141//function : Coordinates
142//purpose :
143//=======================================================================
144
145inline Standard_Address HLRAlgo_BiPoint::Coordinates () const
146{ return (Standard_Address)myCoordinates; }