0027793: Visualization - object drifts at zoom within Graphic3d_TMF_TriedronPers...
[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
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
17#define EMskRg1Line ((Standard_Boolean)1)
18#define EMskRgNLine ((Standard_Boolean)2)
19#define EMskOutLine ((Standard_Boolean)4)
20#define EMskIntLine ((Standard_Boolean)8)
21#define EMskHidden ((Standard_Boolean)16)
22
23//=======================================================================
24//function : HLRAlgo_BiPoint
25//purpose :
26//=======================================================================
27
28inline HLRAlgo_BiPoint::HLRAlgo_BiPoint ()
29{
30}
31
32//=======================================================================
33//function : Rg1Line
34//purpose :
35//=======================================================================
36
37inline Standard_Boolean HLRAlgo_BiPoint::Rg1Line () const
38{ return (myIndices[9] & EMskRg1Line) != 0; }
39
40//=======================================================================
41//function : Rg1Line
42//purpose :
43//=======================================================================
44
45inline void HLRAlgo_BiPoint::Rg1Line (const Standard_Boolean B)
46{
47 if (B) myIndices[9] |= EMskRg1Line;
48 else myIndices[9] &= ~EMskRg1Line;
49}
50
51//=======================================================================
52//function : RgNLine
53//purpose :
54//=======================================================================
55
56inline Standard_Boolean HLRAlgo_BiPoint::RgNLine () const
57{ return (myIndices[9] & EMskRgNLine) != 0; }
58
59//=======================================================================
60//function : RgNLine
61//purpose :
62//=======================================================================
63
64inline void HLRAlgo_BiPoint::RgNLine (const Standard_Boolean B)
65{
66 if (B) myIndices[9] |= EMskRgNLine;
67 else myIndices[9] &= ~EMskRgNLine;
68}
69
70//=======================================================================
71//function : OutLine
72//purpose :
73//=======================================================================
74
75inline Standard_Boolean HLRAlgo_BiPoint::OutLine () const
76{ return (myIndices[9] & EMskOutLine) != 0; }
77
78//=======================================================================
79//function : OutLine
80//purpose :
81//=======================================================================
82
83inline void HLRAlgo_BiPoint::OutLine (const Standard_Boolean B)
84{
85 if (B) myIndices[9] |= EMskOutLine;
86 else myIndices[9] &= ~EMskOutLine;
87}
88
89//=======================================================================
90//function : IntLine
91//purpose :
92//=======================================================================
93
94inline Standard_Boolean HLRAlgo_BiPoint::IntLine () const
95{ return (myIndices[9] & EMskIntLine) != 0; }
96
97//=======================================================================
98//function : IntLine
99//purpose :
100//=======================================================================
101
102inline void HLRAlgo_BiPoint::IntLine (const Standard_Boolean B)
103{
104 if (B) myIndices[9] |= EMskIntLine;
105 else myIndices[9] &= ~EMskIntLine;
106}
107
108//=======================================================================
109//function : Hidden
110//purpose :
111//=======================================================================
112
113inline Standard_Boolean HLRAlgo_BiPoint::Hidden () const
114{ return (myIndices[9] & EMskHidden) != 0; }
115
116//=======================================================================
117//function : Hidden
118//purpose :
119//=======================================================================
120
121inline void HLRAlgo_BiPoint::Hidden (const Standard_Boolean B)
122{
123 if (B) myIndices[9] |= EMskHidden;
124 else myIndices[9] &= ~EMskHidden;
125}
126
127//=======================================================================
128//function : Indices
129//purpose :
130//=======================================================================
131
132inline Standard_Address HLRAlgo_BiPoint::Indices () const
133{ return (Standard_Address)myIndices; }
134
135//=======================================================================
136//function : Coordinates
137//purpose :
138//=======================================================================
139
140inline Standard_Address HLRAlgo_BiPoint::Coordinates () const
141{ return (Standard_Address)myCoordinates; }