1 // Created on: 1993-07-26
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
23 #include <PBRep_TEdge.ixx>
25 static const Standard_Integer ParameterMask = 1;
26 static const Standard_Integer RangeMask = 2;
27 static const Standard_Integer DegeneratedMask = 4;
29 //=======================================================================
30 //function : PBRep_TEdge
32 //=======================================================================
34 PBRep_TEdge::PBRep_TEdge()
38 //=======================================================================
39 //function : Tolerance
41 //=======================================================================
43 Standard_Real PBRep_TEdge::Tolerance()const
49 //=======================================================================
50 //function : Tolerance
52 //=======================================================================
54 void PBRep_TEdge::Tolerance(const Standard_Real T)
60 //=======================================================================
61 //function : SameParameter
63 //=======================================================================
65 Standard_Boolean PBRep_TEdge::SameParameter()const
67 return myFlags & ParameterMask;
71 //=======================================================================
72 //function : SameParameter
74 //=======================================================================
76 void PBRep_TEdge::SameParameter(const Standard_Boolean S)
78 if (S) myFlags |= ParameterMask;
79 else myFlags &= ~ParameterMask;
83 //=======================================================================
84 //function : SameRange
86 //=======================================================================
88 Standard_Boolean PBRep_TEdge::SameRange()const
90 return myFlags & RangeMask;
94 //=======================================================================
95 //function : SameRange
97 //=======================================================================
99 void PBRep_TEdge::SameRange(const Standard_Boolean S)
101 if (S) myFlags |= RangeMask;
102 else myFlags &= ~RangeMask;
105 //=======================================================================
106 //function : Degenerated
108 //=======================================================================
110 Standard_Boolean PBRep_TEdge::Degenerated()const
112 return myFlags & DegeneratedMask;
116 //=======================================================================
117 //function : Degenerated
119 //=======================================================================
121 void PBRep_TEdge::Degenerated(const Standard_Boolean S)
123 if (S) myFlags |= DegeneratedMask;
124 else myFlags &= ~DegeneratedMask;
128 //=======================================================================
131 //=======================================================================
133 Handle(PBRep_CurveRepresentation) PBRep_TEdge::Curves()const
139 //=======================================================================
142 //=======================================================================
144 void PBRep_TEdge::Curves(const Handle(PBRep_CurveRepresentation)& C)