1 // File: HLRBRep_AreaLimit.cxx
2 // Created: Thu Apr 17 21:43:21 1997
3 // Author: Christophe MARION
4 // Copyright: OPEN CASCADE 2000
6 #include <HLRBRep_AreaLimit.ixx>
8 //=======================================================================
9 //function : HLRBRep_AreaLimit
11 //=======================================================================
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) :
21 myBoundary (Boundary),
22 myInterference(Interference),
23 myStateBefore (StateBefore),
24 myStateAfter (StateAfter),
25 myEdgeBefore (EdgeBefore),
26 myEdgeAfter (EdgeAfter)
30 //=======================================================================
31 //function : StateBefore
33 //=======================================================================
35 void HLRBRep_AreaLimit::StateBefore(const TopAbs_State Stat)
40 //=======================================================================
41 //function : StateAfter
43 //=======================================================================
45 void HLRBRep_AreaLimit::StateAfter(const TopAbs_State Stat)
50 //=======================================================================
51 //function : EdgeBefore
53 //=======================================================================
55 void HLRBRep_AreaLimit::EdgeBefore(const TopAbs_State Stat)
60 //=======================================================================
61 //function : EdgeAfter
63 //=======================================================================
65 void HLRBRep_AreaLimit::EdgeAfter(const TopAbs_State Stat)
70 //=======================================================================
73 //=======================================================================
75 void HLRBRep_AreaLimit::Previous(const Handle(HLRBRep_AreaLimit)& P)
80 //=======================================================================
83 //=======================================================================
85 void HLRBRep_AreaLimit::Next(const Handle(HLRBRep_AreaLimit)& N)
90 //=======================================================================
93 //=======================================================================
95 const HLRAlgo_Intersection & HLRBRep_AreaLimit::Vertex() const
101 //=======================================================================
102 //function : IsBoundary
104 //=======================================================================
106 Standard_Boolean HLRBRep_AreaLimit::IsBoundary() const
111 //=======================================================================
112 //function : IsInterference
114 //=======================================================================
116 Standard_Boolean HLRBRep_AreaLimit::IsInterference() const
118 return myInterference;
121 //=======================================================================
122 //function : StateBefore
124 //=======================================================================
126 TopAbs_State HLRBRep_AreaLimit::StateBefore() const
128 return myStateBefore;
131 //=======================================================================
132 //function : StateAfter
134 //=======================================================================
136 TopAbs_State HLRBRep_AreaLimit::StateAfter() const
141 //=======================================================================
142 //function : EdgeBefore
144 //=======================================================================
146 TopAbs_State HLRBRep_AreaLimit::EdgeBefore() const
151 //=======================================================================
152 //function : EdgeAfter
154 //=======================================================================
156 TopAbs_State HLRBRep_AreaLimit::EdgeAfter() const
161 //=======================================================================
162 //function : Previous
164 //=======================================================================
166 Handle(HLRBRep_AreaLimit) HLRBRep_AreaLimit::Previous () const
171 //=======================================================================
174 //=======================================================================
176 Handle(HLRBRep_AreaLimit) HLRBRep_AreaLimit::Next () const
181 //=======================================================================
184 //=======================================================================
186 void HLRBRep_AreaLimit::Clear()
188 myPrevious.Nullify();