0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / HatchGen / HatchGen_IntersectionPoint.cxx
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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <HatchGen_IntersectionPoint.hxx>
19
20 //=======================================================================
21 // Function : HatchGen_IntersectionPoint
22 // Purpose  : Constructor
23 //=======================================================================
24 HatchGen_IntersectionPoint::HatchGen_IntersectionPoint () :
25        myIndex  (0) ,
26        myParam  (RealLast()) ,
27        myPosit  (TopAbs_INTERNAL) ,
28        myBefore (TopAbs_UNKNOWN) ,
29        myAfter  (TopAbs_UNKNOWN) ,
30        mySegBeg (Standard_False) ,
31        mySegEnd (Standard_False)
32 {
33 }
34
35 //=======================================================================
36 // Function : SetIndex
37 // Purpose  : Sets the index of the supporting curve.
38 //=======================================================================
39
40 void HatchGen_IntersectionPoint::SetIndex (const Standard_Integer Index)
41 {
42   myIndex = Index ;
43 }
44
45 //=======================================================================
46 // Function : Index
47 // Purpose  : Returns the index of the supporting curve.
48 //=======================================================================
49
50 Standard_Integer HatchGen_IntersectionPoint::Index () const
51 {
52   return myIndex ;
53 }
54
55 //=======================================================================
56 // Function : SetParameter
57 // Purpose  : Sets the parameter on the curve.
58 //=======================================================================
59
60 void HatchGen_IntersectionPoint::SetParameter (const Standard_Real Parameter)
61 {
62   myParam = Parameter ;
63 }
64
65 //=======================================================================
66 // Function : Parameter
67 // Purpose  : Returns the parameter on the curve.
68 //=======================================================================
69
70 Standard_Real HatchGen_IntersectionPoint::Parameter () const
71 {
72   return myParam ;
73 }
74
75 //=======================================================================
76 // Function : SetPosition
77 // Purpose  : Sets the position of the point on the curve.
78 //=======================================================================
79
80 void HatchGen_IntersectionPoint::SetPosition (const TopAbs_Orientation Position)
81 {
82   myPosit = Position ;
83 }
84
85 //=======================================================================
86 // Function : Position
87 // Purpose  : Returns the position of the point on the element.
88 //=======================================================================
89
90 TopAbs_Orientation HatchGen_IntersectionPoint::Position () const
91 {
92   return myPosit ;
93 }
94
95 //=======================================================================
96 // Function : SetStateBefore
97 // Purpose  : Sets the transition state before the intersection.
98 //=======================================================================
99
100 void HatchGen_IntersectionPoint::SetStateBefore (const TopAbs_State State)
101 {
102   myBefore = State ;
103 }
104
105 //=======================================================================
106 // Function : StateBefore
107 // Purpose  : Returns the transition state before the intersection.
108 //=======================================================================
109
110 TopAbs_State HatchGen_IntersectionPoint::StateBefore () const
111 {
112   return myBefore ;
113 }
114
115 //=======================================================================
116 // Function : SetStateAfter
117 // Purpose  : Sets the transition state after the intersection.
118 //=======================================================================
119
120 void HatchGen_IntersectionPoint::SetStateAfter (const TopAbs_State State)
121 {
122   myAfter = State ;
123 }
124
125 //=======================================================================
126 // Function : StateAfter
127 // Purpose  : Returns the transition state after the intersection.
128 //=======================================================================
129
130 TopAbs_State HatchGen_IntersectionPoint::StateAfter () const
131 {
132   return myAfter ;
133 }
134
135 //=======================================================================
136 // Function : SetSegmentBeginning
137 // Purpose  : Sets the flag that the point is the beginning of a segment.
138 //=======================================================================
139
140 void HatchGen_IntersectionPoint::SetSegmentBeginning (const Standard_Boolean State)
141 {
142   mySegBeg = State ;
143 }
144
145 //=======================================================================
146 // Function : SegmentBeginning
147 // Purpose  : Returns the flag that the point is the beginning of a
148 //            segment.
149 //=======================================================================
150
151 Standard_Boolean HatchGen_IntersectionPoint::SegmentBeginning () const
152 {
153   return mySegBeg ;
154 }
155
156 //=======================================================================
157 // Function : SetSegmentEnd
158 // Purpose  : Sets the flag that the point is the end of a segment.
159 //=======================================================================
160
161 void HatchGen_IntersectionPoint::SetSegmentEnd (const Standard_Boolean State)
162 {
163   mySegEnd = State ;
164 }
165
166 //=======================================================================
167 // Function : SegmentEnd
168 // Purpose  : Returns the flag that the point is the end of a segment.
169 //=======================================================================
170
171 Standard_Boolean HatchGen_IntersectionPoint::SegmentEnd () const
172 {
173   return mySegEnd ;
174 }