0022623: Use of uninitialized variables in HLRBRep_Curve::UpdateMinMax in debug mode
[occt.git] / src / HLRBRep / HLRBRep_AreaLimit.cxx
1 // File:      HLRBRep_AreaLimit.cxx
2 // Created:   Thu Apr 17 21:43:21 1997
3 // Author:    Christophe MARION
4 // Copyright: OPEN CASCADE 2000
5
6 #include <HLRBRep_AreaLimit.ixx>
7
8 //=======================================================================
9 //function : HLRBRep_AreaLimit
10 //purpose  : 
11 //=======================================================================
12
13 HLRBRep_AreaLimit::HLRBRep_AreaLimit(const HLRAlgo_Intersection& V, 
14                                      const Standard_Boolean Boundary, 
15                                      const Standard_Boolean Interference, 
16                                      const TopAbs_State StateBefore,
17                                      const TopAbs_State StateAfter,
18                                      const TopAbs_State EdgeBefore,
19                                      const TopAbs_State EdgeAfter) :
20                                      myVertex      (V),
21                                      myBoundary    (Boundary),
22                                      myInterference(Interference),
23                                      myStateBefore (StateBefore),
24                                      myStateAfter  (StateAfter),
25                                      myEdgeBefore  (EdgeBefore),
26                                      myEdgeAfter   (EdgeAfter)
27 {
28 }
29
30 //=======================================================================
31 //function : StateBefore
32 //purpose  : 
33 //=======================================================================
34
35 void HLRBRep_AreaLimit::StateBefore(const TopAbs_State Stat)
36 {
37   myStateBefore = Stat;
38 }
39
40 //=======================================================================
41 //function : StateAfter
42 //purpose  : 
43 //=======================================================================
44
45 void HLRBRep_AreaLimit::StateAfter(const TopAbs_State Stat)
46 {
47   myStateAfter = Stat;
48 }
49
50 //=======================================================================
51 //function : EdgeBefore
52 //purpose  : 
53 //=======================================================================
54
55 void HLRBRep_AreaLimit::EdgeBefore(const TopAbs_State Stat)
56 {
57   myEdgeBefore = Stat;
58 }
59
60 //=======================================================================
61 //function : EdgeAfter
62 //purpose  : 
63 //=======================================================================
64
65 void HLRBRep_AreaLimit::EdgeAfter(const TopAbs_State Stat)
66 {
67   myEdgeAfter = Stat;
68 }
69
70 //=======================================================================
71 //function : Previous
72 //purpose  : 
73 //=======================================================================
74
75 void HLRBRep_AreaLimit::Previous(const Handle(HLRBRep_AreaLimit)& P)
76 {
77   myPrevious = P;
78 }
79
80 //=======================================================================
81 //function : Next
82 //purpose  : 
83 //=======================================================================
84
85 void HLRBRep_AreaLimit::Next(const Handle(HLRBRep_AreaLimit)& N)
86 {
87   myNext = N;
88 }
89
90 //=======================================================================
91 //function : Vertex
92 //purpose  : 
93 //=======================================================================
94
95 const HLRAlgo_Intersection & HLRBRep_AreaLimit::Vertex() const
96 {
97   return myVertex;
98 }
99
100
101 //=======================================================================
102 //function : IsBoundary
103 //purpose  : 
104 //=======================================================================
105
106 Standard_Boolean  HLRBRep_AreaLimit::IsBoundary() const
107 {
108   return myBoundary;
109 }
110
111 //=======================================================================
112 //function : IsInterference
113 //purpose  : 
114 //=======================================================================
115
116 Standard_Boolean  HLRBRep_AreaLimit::IsInterference() const
117 {
118   return myInterference;
119 }
120
121 //=======================================================================
122 //function : StateBefore
123 //purpose  : 
124 //=======================================================================
125
126 TopAbs_State  HLRBRep_AreaLimit::StateBefore() const
127 {
128   return myStateBefore;
129 }
130
131 //=======================================================================
132 //function : StateAfter
133 //purpose  : 
134 //=======================================================================
135
136 TopAbs_State  HLRBRep_AreaLimit::StateAfter() const
137 {
138   return myStateAfter;
139 }
140
141 //=======================================================================
142 //function : EdgeBefore
143 //purpose  : 
144 //=======================================================================
145
146 TopAbs_State  HLRBRep_AreaLimit::EdgeBefore() const
147 {
148   return myEdgeBefore;
149 }
150
151 //=======================================================================
152 //function : EdgeAfter
153 //purpose  : 
154 //=======================================================================
155
156 TopAbs_State  HLRBRep_AreaLimit::EdgeAfter() const
157 {
158   return myEdgeAfter;
159 }
160
161 //=======================================================================
162 //function : Previous
163 //purpose  : 
164 //=======================================================================
165
166 Handle(HLRBRep_AreaLimit) HLRBRep_AreaLimit::Previous () const
167 {
168   return myPrevious;
169 }
170
171 //=======================================================================
172 //function : Next
173 //purpose  : 
174 //=======================================================================
175
176 Handle(HLRBRep_AreaLimit) HLRBRep_AreaLimit::Next () const
177 {
178   return myNext;
179 }
180
181 //=======================================================================
182 //function : Clear
183 //purpose  : 
184 //=======================================================================
185
186 void HLRBRep_AreaLimit::Clear()
187 {
188   myPrevious.Nullify();
189   myNext.Nullify();
190 }