summaryrefslogtreecommitdiff
path: root/src/HatchGen/HatchGen_IntersectionPoint.cxx
blob: d383118cfa73abce338f3a7c44843db91633fd8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// File:	HatchGen_IntersectionPoint.cxx
// Created:	Fri Mar 18 11:06:43 1994
// Author:	Jean Marc LACHAUME
//		<jml@phylox>


#include <HatchGen_IntersectionPoint.ixx>

//=======================================================================
// Function : HatchGen_IntersectionPoint
// Purpose  : Constructor
//=======================================================================

HatchGen_IntersectionPoint::HatchGen_IntersectionPoint () :
       myIndex  (0) ,
       myParam  (RealLast()) ,
       myPosit  (TopAbs_INTERNAL) ,
       myBefore (TopAbs_UNKNOWN) ,
       myAfter  (TopAbs_UNKNOWN) ,
       mySegBeg (Standard_False) ,
       mySegEnd (Standard_False)
{
}

//=======================================================================
// Function : SetIndex
// Purpose  : Sets the index of the supporting curve.
//=======================================================================

void HatchGen_IntersectionPoint::SetIndex (const Standard_Integer Index)
{
  myIndex = Index ;
}

//=======================================================================
// Function : Index
// Purpose  : Returns the index of the supporting curve.
//=======================================================================

Standard_Integer HatchGen_IntersectionPoint::Index () const
{
  return myIndex ;
}

//=======================================================================
// Function : SetParameter
// Purpose  : Sets the parameter on the curve.
//=======================================================================

void HatchGen_IntersectionPoint::SetParameter (const Standard_Real Parameter)
{
  myParam = Parameter ;
}

//=======================================================================
// Function : Parameter
// Purpose  : Returns the parameter on the curve.
//=======================================================================

Standard_Real HatchGen_IntersectionPoint::Parameter () const
{
  return myParam ;
}

//=======================================================================
// Function : SetPosition
// Purpose  : Sets the position of the point on the curve.
//=======================================================================

void HatchGen_IntersectionPoint::SetPosition (const TopAbs_Orientation Position)
{
  myPosit = Position ;
}

//=======================================================================
// Function : Position
// Purpose  : Returns the position of the point on the element.
//=======================================================================

TopAbs_Orientation HatchGen_IntersectionPoint::Position () const
{
  return myPosit ;
}

//=======================================================================
// Function : SetStateBefore
// Purpose  : Sets the transition state before the intersection.
//=======================================================================

void HatchGen_IntersectionPoint::SetStateBefore (const TopAbs_State State)
{
  myBefore = State ;
}

//=======================================================================
// Function : StateBefore
// Purpose  : Returns the transition state before the intersection.
//=======================================================================

TopAbs_State HatchGen_IntersectionPoint::StateBefore () const
{
  return myBefore ;
}

//=======================================================================
// Function : SetStateAfter
// Purpose  : Sets the transition state after the intersection.
//=======================================================================

void HatchGen_IntersectionPoint::SetStateAfter (const TopAbs_State State)
{
  myAfter = State ;
}

//=======================================================================
// Function : StateAfter
// Purpose  : Returns the transition state after the intersection.
//=======================================================================

TopAbs_State HatchGen_IntersectionPoint::StateAfter () const
{
  return myAfter ;
}

//=======================================================================
// Function : SetSegmentBeginning
// Purpose  : Sets the flag that the point is the beginning of a segment.
//=======================================================================

void HatchGen_IntersectionPoint::SetSegmentBeginning (const Standard_Boolean State)
{
  mySegBeg = State ;
}

//=======================================================================
// Function : SegmentBeginning
// Purpose  : Returns the flag that the point is the beginning of a
//            segment.
//=======================================================================

Standard_Boolean HatchGen_IntersectionPoint::SegmentBeginning () const
{
  return mySegBeg ;
}

//=======================================================================
// Function : SetSegmentEnd
// Purpose  : Sets the flag that the point is the end of a segment.
//=======================================================================

void HatchGen_IntersectionPoint::SetSegmentEnd (const Standard_Boolean State)
{
  mySegEnd = State ;
}

//=======================================================================
// Function : SegmentEnd
// Purpose  : Returns the flag that the point is the end of a segment.
//=======================================================================

Standard_Boolean HatchGen_IntersectionPoint::SegmentEnd () const
{
  return mySegEnd ;
}