1 // Created on: 1994-03-18
2 // Created by: Jean Marc LACHAUME
3 // Copyright (c) 1994-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 <HatchGen_IntersectionPoint.ixx>
25 //=======================================================================
26 // Function : HatchGen_IntersectionPoint
27 // Purpose : Constructor
28 //=======================================================================
30 HatchGen_IntersectionPoint::HatchGen_IntersectionPoint () :
32 myParam (RealLast()) ,
33 myPosit (TopAbs_INTERNAL) ,
34 myBefore (TopAbs_UNKNOWN) ,
35 myAfter (TopAbs_UNKNOWN) ,
36 mySegBeg (Standard_False) ,
37 mySegEnd (Standard_False)
41 //=======================================================================
42 // Function : SetIndex
43 // Purpose : Sets the index of the supporting curve.
44 //=======================================================================
46 void HatchGen_IntersectionPoint::SetIndex (const Standard_Integer Index)
51 //=======================================================================
53 // Purpose : Returns the index of the supporting curve.
54 //=======================================================================
56 Standard_Integer HatchGen_IntersectionPoint::Index () const
61 //=======================================================================
62 // Function : SetParameter
63 // Purpose : Sets the parameter on the curve.
64 //=======================================================================
66 void HatchGen_IntersectionPoint::SetParameter (const Standard_Real Parameter)
71 //=======================================================================
72 // Function : Parameter
73 // Purpose : Returns the parameter on the curve.
74 //=======================================================================
76 Standard_Real HatchGen_IntersectionPoint::Parameter () const
81 //=======================================================================
82 // Function : SetPosition
83 // Purpose : Sets the position of the point on the curve.
84 //=======================================================================
86 void HatchGen_IntersectionPoint::SetPosition (const TopAbs_Orientation Position)
91 //=======================================================================
92 // Function : Position
93 // Purpose : Returns the position of the point on the element.
94 //=======================================================================
96 TopAbs_Orientation HatchGen_IntersectionPoint::Position () const
101 //=======================================================================
102 // Function : SetStateBefore
103 // Purpose : Sets the transition state before the intersection.
104 //=======================================================================
106 void HatchGen_IntersectionPoint::SetStateBefore (const TopAbs_State State)
111 //=======================================================================
112 // Function : StateBefore
113 // Purpose : Returns the transition state before the intersection.
114 //=======================================================================
116 TopAbs_State HatchGen_IntersectionPoint::StateBefore () const
121 //=======================================================================
122 // Function : SetStateAfter
123 // Purpose : Sets the transition state after the intersection.
124 //=======================================================================
126 void HatchGen_IntersectionPoint::SetStateAfter (const TopAbs_State State)
131 //=======================================================================
132 // Function : StateAfter
133 // Purpose : Returns the transition state after the intersection.
134 //=======================================================================
136 TopAbs_State HatchGen_IntersectionPoint::StateAfter () const
141 //=======================================================================
142 // Function : SetSegmentBeginning
143 // Purpose : Sets the flag that the point is the beginning of a segment.
144 //=======================================================================
146 void HatchGen_IntersectionPoint::SetSegmentBeginning (const Standard_Boolean State)
151 //=======================================================================
152 // Function : SegmentBeginning
153 // Purpose : Returns the flag that the point is the beginning of a
155 //=======================================================================
157 Standard_Boolean HatchGen_IntersectionPoint::SegmentBeginning () const
162 //=======================================================================
163 // Function : SetSegmentEnd
164 // Purpose : Sets the flag that the point is the end of a segment.
165 //=======================================================================
167 void HatchGen_IntersectionPoint::SetSegmentEnd (const Standard_Boolean State)
172 //=======================================================================
173 // Function : SegmentEnd
174 // Purpose : Returns the flag that the point is the end of a segment.
175 //=======================================================================
177 Standard_Boolean HatchGen_IntersectionPoint::SegmentEnd () const