1 // Created on: 1994-03-18
2 // Created by: Jean Marc LACHAUME
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 #include <HatchGen_IntersectionPoint.hxx>
20 //=======================================================================
21 // Function : HatchGen_IntersectionPoint
22 // Purpose : Constructor
23 //=======================================================================
24 HatchGen_IntersectionPoint::HatchGen_IntersectionPoint () :
26 myParam (RealLast()) ,
27 myPosit (TopAbs_INTERNAL) ,
28 myBefore (TopAbs_UNKNOWN) ,
29 myAfter (TopAbs_UNKNOWN) ,
30 mySegBeg (Standard_False) ,
31 mySegEnd (Standard_False)
35 //=======================================================================
36 // Function : SetIndex
37 // Purpose : Sets the index of the supporting curve.
38 //=======================================================================
40 void HatchGen_IntersectionPoint::SetIndex (const Standard_Integer Index)
45 //=======================================================================
47 // Purpose : Returns the index of the supporting curve.
48 //=======================================================================
50 Standard_Integer HatchGen_IntersectionPoint::Index () const
55 //=======================================================================
56 // Function : SetParameter
57 // Purpose : Sets the parameter on the curve.
58 //=======================================================================
60 void HatchGen_IntersectionPoint::SetParameter (const Standard_Real Parameter)
65 //=======================================================================
66 // Function : Parameter
67 // Purpose : Returns the parameter on the curve.
68 //=======================================================================
70 Standard_Real HatchGen_IntersectionPoint::Parameter () const
75 //=======================================================================
76 // Function : SetPosition
77 // Purpose : Sets the position of the point on the curve.
78 //=======================================================================
80 void HatchGen_IntersectionPoint::SetPosition (const TopAbs_Orientation Position)
85 //=======================================================================
86 // Function : Position
87 // Purpose : Returns the position of the point on the element.
88 //=======================================================================
90 TopAbs_Orientation HatchGen_IntersectionPoint::Position () const
95 //=======================================================================
96 // Function : SetStateBefore
97 // Purpose : Sets the transition state before the intersection.
98 //=======================================================================
100 void HatchGen_IntersectionPoint::SetStateBefore (const TopAbs_State State)
105 //=======================================================================
106 // Function : StateBefore
107 // Purpose : Returns the transition state before the intersection.
108 //=======================================================================
110 TopAbs_State HatchGen_IntersectionPoint::StateBefore () const
115 //=======================================================================
116 // Function : SetStateAfter
117 // Purpose : Sets the transition state after the intersection.
118 //=======================================================================
120 void HatchGen_IntersectionPoint::SetStateAfter (const TopAbs_State State)
125 //=======================================================================
126 // Function : StateAfter
127 // Purpose : Returns the transition state after the intersection.
128 //=======================================================================
130 TopAbs_State HatchGen_IntersectionPoint::StateAfter () const
135 //=======================================================================
136 // Function : SetSegmentBeginning
137 // Purpose : Sets the flag that the point is the beginning of a segment.
138 //=======================================================================
140 void HatchGen_IntersectionPoint::SetSegmentBeginning (const Standard_Boolean State)
145 //=======================================================================
146 // Function : SegmentBeginning
147 // Purpose : Returns the flag that the point is the beginning of a
149 //=======================================================================
151 Standard_Boolean HatchGen_IntersectionPoint::SegmentBeginning () const
156 //=======================================================================
157 // Function : SetSegmentEnd
158 // Purpose : Sets the flag that the point is the end of a segment.
159 //=======================================================================
161 void HatchGen_IntersectionPoint::SetSegmentEnd (const Standard_Boolean State)
166 //=======================================================================
167 // Function : SegmentEnd
168 // Purpose : Returns the flag that the point is the end of a segment.
169 //=======================================================================
171 Standard_Boolean HatchGen_IntersectionPoint::SegmentEnd () const