Integration of OCCT 6.5.0 from SVN
[occt.git] / src / PBRep / PBRep_TEdge.cxx
CommitLineData
7fd59977 1// File: PBRep_TEdge.cxx
2// Created: Mon Jul 26 10:29:12 1993
3// Author: Remi LEQUETTE
4// <rle@nonox>
5
6
7#include <PBRep_TEdge.ixx>
8
9static const Standard_Integer ParameterMask = 1;
10static const Standard_Integer RangeMask = 2;
11static const Standard_Integer DegeneratedMask = 4;
12
13//=======================================================================
14//function : PBRep_TEdge
15//purpose :
16//=======================================================================
17
18PBRep_TEdge::PBRep_TEdge()
19{
20}
21
22//=======================================================================
23//function : Tolerance
24//purpose :
25//=======================================================================
26
27Standard_Real PBRep_TEdge::Tolerance()const
28{
29 return myTolerance;
30}
31
32
33//=======================================================================
34//function : Tolerance
35//purpose :
36//=======================================================================
37
38void PBRep_TEdge::Tolerance(const Standard_Real T)
39{
40 myTolerance = T;
41}
42
43
44//=======================================================================
45//function : SameParameter
46//purpose :
47//=======================================================================
48
49Standard_Boolean PBRep_TEdge::SameParameter()const
50{
51 return myFlags & ParameterMask;
52}
53
54
55//=======================================================================
56//function : SameParameter
57//purpose :
58//=======================================================================
59
60void PBRep_TEdge::SameParameter(const Standard_Boolean S)
61{
62 if (S) myFlags |= ParameterMask;
63 else myFlags &= ~ParameterMask;
64}
65
66
67//=======================================================================
68//function : SameRange
69//purpose :
70//=======================================================================
71
72 Standard_Boolean PBRep_TEdge::SameRange()const
73{
74 return myFlags & RangeMask;
75}
76
77
78//=======================================================================
79//function : SameRange
80//purpose :
81//=======================================================================
82
83 void PBRep_TEdge::SameRange(const Standard_Boolean S)
84{
85 if (S) myFlags |= RangeMask;
86 else myFlags &= ~RangeMask;
87}
88
89//=======================================================================
90//function : Degenerated
91//purpose :
92//=======================================================================
93
94Standard_Boolean PBRep_TEdge::Degenerated()const
95{
96 return myFlags & DegeneratedMask;
97}
98
99
100//=======================================================================
101//function : Degenerated
102//purpose :
103//=======================================================================
104
105void PBRep_TEdge::Degenerated(const Standard_Boolean S)
106{
107 if (S) myFlags |= DegeneratedMask;
108 else myFlags &= ~DegeneratedMask;
109}
110
111
112//=======================================================================
113//function : Curves
114//purpose :
115//=======================================================================
116
117Handle(PBRep_CurveRepresentation) PBRep_TEdge::Curves()const
118{
119 return myCurves;
120}
121
122
123//=======================================================================
124//function : Curves
125//purpose :
126//=======================================================================
127
128void PBRep_TEdge::Curves(const Handle(PBRep_CurveRepresentation)& C)
129{
130 myCurves = C;
131}
132
133