0027793: Visualization - object drifts at zoom within Graphic3d_TMF_TriedronPers...
[occt.git] / src / HLRBRep / HLRBRep_BiPoint.lxx
CommitLineData
b311480e 1// Created on: 1992-08-25
2// Created by: Christophe MARION
3// Copyright (c) 1992-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
22//=======================================================================
23//function : P1
24//purpose :
25//=======================================================================
26
27inline const gp_Pnt & HLRBRep_BiPoint::P1 () const
28{ return myP1; }
29
30//=======================================================================
31//function : P2
32//purpose :
33//=======================================================================
34
35inline const gp_Pnt & HLRBRep_BiPoint::P2 () const
36{ return myP2; }
37
38//=======================================================================
39//function : Shape
40//purpose :
41//=======================================================================
42
43inline const TopoDS_Shape & HLRBRep_BiPoint::Shape () const
44{ return myShape; }
45
46//=======================================================================
47//function : Shape
48//purpose :
49//=======================================================================
50
51inline void HLRBRep_BiPoint::Shape (const TopoDS_Shape& S)
52{ myShape = S; }
53
54//=======================================================================
55//function : Rg1Line
56//purpose :
57//=======================================================================
58
59inline Standard_Boolean HLRBRep_BiPoint::Rg1Line () const
60{ return (myFlags & EMskRg1Line) != 0; }
61
62//=======================================================================
63//function : Rg1Line
64//purpose :
65//=======================================================================
66
67inline void HLRBRep_BiPoint::Rg1Line (const Standard_Boolean B)
68{
69 if (B) myFlags |= EMskRg1Line;
70 else myFlags &= ~EMskRg1Line;
71}
72
73//=======================================================================
74//function : RgNLine
75//purpose :
76//=======================================================================
77
78inline Standard_Boolean HLRBRep_BiPoint::RgNLine () const
79{ return (myFlags & EMskRgNLine) != 0; }
80
81//=======================================================================
82//function : RgNLine
83//purpose :
84//=======================================================================
85
86inline void HLRBRep_BiPoint::RgNLine (const Standard_Boolean B)
87{
88 if (B) myFlags |= EMskRgNLine;
89 else myFlags &= ~EMskRgNLine;
90}
91
92//=======================================================================
93//function : OutLine
94//purpose :
95//=======================================================================
96
97inline Standard_Boolean HLRBRep_BiPoint::OutLine () const
98{ return (myFlags & EMskOutLine) != 0; }
99
100//=======================================================================
101//function : OutLine
102//purpose :
103//=======================================================================
104
105inline void HLRBRep_BiPoint::OutLine (const Standard_Boolean B)
106{
107 if (B) myFlags |= EMskOutLine;
108 else myFlags &= ~EMskOutLine;
109}
110
111//=======================================================================
112//function : IntLine
113//purpose :
114//=======================================================================
115
116inline Standard_Boolean HLRBRep_BiPoint::IntLine () const
117{ return (myFlags & EMskIntLine) != 0; }
118
119//=======================================================================
120//function : IntLine
121//purpose :
122//=======================================================================
123
124inline void HLRBRep_BiPoint::IntLine (const Standard_Boolean B)
125{
126 if (B) myFlags |= EMskIntLine;
127 else myFlags &= ~EMskIntLine;
128}