0022627: Change OCCT memory management defaults
[occt.git] / src / HatchGen / HatchGen_IntersectionPoint.cxx
CommitLineData
7fd59977 1// File: HatchGen_IntersectionPoint.cxx
2// Created: Fri Mar 18 11:06:43 1994
3// Author: Jean Marc LACHAUME
4// <jml@phylox>
5
6
7#include <HatchGen_IntersectionPoint.ixx>
8
9//=======================================================================
10// Function : HatchGen_IntersectionPoint
11// Purpose : Constructor
12//=======================================================================
13
14HatchGen_IntersectionPoint::HatchGen_IntersectionPoint () :
15 myIndex (0) ,
16 myParam (RealLast()) ,
17 myPosit (TopAbs_INTERNAL) ,
18 myBefore (TopAbs_UNKNOWN) ,
19 myAfter (TopAbs_UNKNOWN) ,
20 mySegBeg (Standard_False) ,
21 mySegEnd (Standard_False)
22{
23}
24
25//=======================================================================
26// Function : SetIndex
27// Purpose : Sets the index of the supporting curve.
28//=======================================================================
29
30void HatchGen_IntersectionPoint::SetIndex (const Standard_Integer Index)
31{
32 myIndex = Index ;
33}
34
35//=======================================================================
36// Function : Index
37// Purpose : Returns the index of the supporting curve.
38//=======================================================================
39
40Standard_Integer HatchGen_IntersectionPoint::Index () const
41{
42 return myIndex ;
43}
44
45//=======================================================================
46// Function : SetParameter
47// Purpose : Sets the parameter on the curve.
48//=======================================================================
49
50void HatchGen_IntersectionPoint::SetParameter (const Standard_Real Parameter)
51{
52 myParam = Parameter ;
53}
54
55//=======================================================================
56// Function : Parameter
57// Purpose : Returns the parameter on the curve.
58//=======================================================================
59
60Standard_Real HatchGen_IntersectionPoint::Parameter () const
61{
62 return myParam ;
63}
64
65//=======================================================================
66// Function : SetPosition
67// Purpose : Sets the position of the point on the curve.
68//=======================================================================
69
70void HatchGen_IntersectionPoint::SetPosition (const TopAbs_Orientation Position)
71{
72 myPosit = Position ;
73}
74
75//=======================================================================
76// Function : Position
77// Purpose : Returns the position of the point on the element.
78//=======================================================================
79
80TopAbs_Orientation HatchGen_IntersectionPoint::Position () const
81{
82 return myPosit ;
83}
84
85//=======================================================================
86// Function : SetStateBefore
87// Purpose : Sets the transition state before the intersection.
88//=======================================================================
89
90void HatchGen_IntersectionPoint::SetStateBefore (const TopAbs_State State)
91{
92 myBefore = State ;
93}
94
95//=======================================================================
96// Function : StateBefore
97// Purpose : Returns the transition state before the intersection.
98//=======================================================================
99
100TopAbs_State HatchGen_IntersectionPoint::StateBefore () const
101{
102 return myBefore ;
103}
104
105//=======================================================================
106// Function : SetStateAfter
107// Purpose : Sets the transition state after the intersection.
108//=======================================================================
109
110void HatchGen_IntersectionPoint::SetStateAfter (const TopAbs_State State)
111{
112 myAfter = State ;
113}
114
115//=======================================================================
116// Function : StateAfter
117// Purpose : Returns the transition state after the intersection.
118//=======================================================================
119
120TopAbs_State HatchGen_IntersectionPoint::StateAfter () const
121{
122 return myAfter ;
123}
124
125//=======================================================================
126// Function : SetSegmentBeginning
127// Purpose : Sets the flag that the point is the beginning of a segment.
128//=======================================================================
129
130void HatchGen_IntersectionPoint::SetSegmentBeginning (const Standard_Boolean State)
131{
132 mySegBeg = State ;
133}
134
135//=======================================================================
136// Function : SegmentBeginning
137// Purpose : Returns the flag that the point is the beginning of a
138// segment.
139//=======================================================================
140
141Standard_Boolean HatchGen_IntersectionPoint::SegmentBeginning () const
142{
143 return mySegBeg ;
144}
145
146//=======================================================================
147// Function : SetSegmentEnd
148// Purpose : Sets the flag that the point is the end of a segment.
149//=======================================================================
150
151void HatchGen_IntersectionPoint::SetSegmentEnd (const Standard_Boolean State)
152{
153 mySegEnd = State ;
154}
155
156//=======================================================================
157// Function : SegmentEnd
158// Purpose : Returns the flag that the point is the end of a segment.
159//=======================================================================
160
161Standard_Boolean HatchGen_IntersectionPoint::SegmentEnd () const
162{
163 return mySegEnd ;
164}