0024048: "Basic Runtime Checks" option of VS projects should be equal to "RTC1"
[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-2012 OPEN CASCADE SAS
5 //
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.
10 //
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.
13 //
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.
20
21
22
23 #include <HatchGen_IntersectionPoint.ixx>
24
25 //=======================================================================
26 // Function : HatchGen_IntersectionPoint
27 // Purpose  : Constructor
28 //=======================================================================
29
30 HatchGen_IntersectionPoint::HatchGen_IntersectionPoint () :
31        myIndex  (0) ,
32        myParam  (RealLast()) ,
33        myPosit  (TopAbs_INTERNAL) ,
34        myBefore (TopAbs_UNKNOWN) ,
35        myAfter  (TopAbs_UNKNOWN) ,
36        mySegBeg (Standard_False) ,
37        mySegEnd (Standard_False)
38 {
39 }
40
41 //=======================================================================
42 // Function : SetIndex
43 // Purpose  : Sets the index of the supporting curve.
44 //=======================================================================
45
46 void HatchGen_IntersectionPoint::SetIndex (const Standard_Integer Index)
47 {
48   myIndex = Index ;
49 }
50
51 //=======================================================================
52 // Function : Index
53 // Purpose  : Returns the index of the supporting curve.
54 //=======================================================================
55
56 Standard_Integer HatchGen_IntersectionPoint::Index () const
57 {
58   return myIndex ;
59 }
60
61 //=======================================================================
62 // Function : SetParameter
63 // Purpose  : Sets the parameter on the curve.
64 //=======================================================================
65
66 void HatchGen_IntersectionPoint::SetParameter (const Standard_Real Parameter)
67 {
68   myParam = Parameter ;
69 }
70
71 //=======================================================================
72 // Function : Parameter
73 // Purpose  : Returns the parameter on the curve.
74 //=======================================================================
75
76 Standard_Real HatchGen_IntersectionPoint::Parameter () const
77 {
78   return myParam ;
79 }
80
81 //=======================================================================
82 // Function : SetPosition
83 // Purpose  : Sets the position of the point on the curve.
84 //=======================================================================
85
86 void HatchGen_IntersectionPoint::SetPosition (const TopAbs_Orientation Position)
87 {
88   myPosit = Position ;
89 }
90
91 //=======================================================================
92 // Function : Position
93 // Purpose  : Returns the position of the point on the element.
94 //=======================================================================
95
96 TopAbs_Orientation HatchGen_IntersectionPoint::Position () const
97 {
98   return myPosit ;
99 }
100
101 //=======================================================================
102 // Function : SetStateBefore
103 // Purpose  : Sets the transition state before the intersection.
104 //=======================================================================
105
106 void HatchGen_IntersectionPoint::SetStateBefore (const TopAbs_State State)
107 {
108   myBefore = State ;
109 }
110
111 //=======================================================================
112 // Function : StateBefore
113 // Purpose  : Returns the transition state before the intersection.
114 //=======================================================================
115
116 TopAbs_State HatchGen_IntersectionPoint::StateBefore () const
117 {
118   return myBefore ;
119 }
120
121 //=======================================================================
122 // Function : SetStateAfter
123 // Purpose  : Sets the transition state after the intersection.
124 //=======================================================================
125
126 void HatchGen_IntersectionPoint::SetStateAfter (const TopAbs_State State)
127 {
128   myAfter = State ;
129 }
130
131 //=======================================================================
132 // Function : StateAfter
133 // Purpose  : Returns the transition state after the intersection.
134 //=======================================================================
135
136 TopAbs_State HatchGen_IntersectionPoint::StateAfter () const
137 {
138   return myAfter ;
139 }
140
141 //=======================================================================
142 // Function : SetSegmentBeginning
143 // Purpose  : Sets the flag that the point is the beginning of a segment.
144 //=======================================================================
145
146 void HatchGen_IntersectionPoint::SetSegmentBeginning (const Standard_Boolean State)
147 {
148   mySegBeg = State ;
149 }
150
151 //=======================================================================
152 // Function : SegmentBeginning
153 // Purpose  : Returns the flag that the point is the beginning of a
154 //            segment.
155 //=======================================================================
156
157 Standard_Boolean HatchGen_IntersectionPoint::SegmentBeginning () const
158 {
159   return mySegBeg ;
160 }
161
162 //=======================================================================
163 // Function : SetSegmentEnd
164 // Purpose  : Sets the flag that the point is the end of a segment.
165 //=======================================================================
166
167 void HatchGen_IntersectionPoint::SetSegmentEnd (const Standard_Boolean State)
168 {
169   mySegEnd = State ;
170 }
171
172 //=======================================================================
173 // Function : SegmentEnd
174 // Purpose  : Returns the flag that the point is the end of a segment.
175 //=======================================================================
176
177 Standard_Boolean HatchGen_IntersectionPoint::SegmentEnd () const
178 {
179   return mySegEnd ;
180 }