1 // Created on: 1997-04-17
2 // Created by: Christophe MARION
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _HLRBRep_AreaLimit_HeaderFile
18 #define _HLRBRep_AreaLimit_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <HLRAlgo_Intersection.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <TopAbs_State.hxx>
26 #include <MMgt_TShared.hxx>
27 class HLRAlgo_Intersection;
30 class HLRBRep_AreaLimit;
31 DEFINE_STANDARD_HANDLE(HLRBRep_AreaLimit, MMgt_TShared)
33 //! The private nested class AreaLimit represents a --
34 //! vertex on the Edge with the state on the left and --
36 class HLRBRep_AreaLimit : public MMgt_TShared
42 //! The previous and next field are set to NULL.
43 Standard_EXPORT HLRBRep_AreaLimit(const HLRAlgo_Intersection& V, const Standard_Boolean Boundary, const Standard_Boolean Interference, const TopAbs_State StateBefore, const TopAbs_State StateAfter, const TopAbs_State EdgeBefore, const TopAbs_State EdgeAfter);
45 Standard_EXPORT void StateBefore (const TopAbs_State St);
47 Standard_EXPORT void StateAfter (const TopAbs_State St);
49 Standard_EXPORT void EdgeBefore (const TopAbs_State St);
51 Standard_EXPORT void EdgeAfter (const TopAbs_State St);
53 Standard_EXPORT void Previous (const Handle(HLRBRep_AreaLimit)& P);
55 Standard_EXPORT void Next (const Handle(HLRBRep_AreaLimit)& N);
57 Standard_EXPORT const HLRAlgo_Intersection& Vertex() const;
59 Standard_EXPORT Standard_Boolean IsBoundary() const;
61 Standard_EXPORT Standard_Boolean IsInterference() const;
63 Standard_EXPORT TopAbs_State StateBefore() const;
65 Standard_EXPORT TopAbs_State StateAfter() const;
67 Standard_EXPORT TopAbs_State EdgeBefore() const;
69 Standard_EXPORT TopAbs_State EdgeAfter() const;
71 Standard_EXPORT Handle(HLRBRep_AreaLimit) Previous() const;
73 Standard_EXPORT Handle(HLRBRep_AreaLimit) Next() const;
75 Standard_EXPORT void Clear();
80 DEFINE_STANDARD_RTTIEXT(HLRBRep_AreaLimit,MMgt_TShared)
90 HLRAlgo_Intersection myVertex;
91 Standard_Boolean myBoundary;
92 Standard_Boolean myInterference;
93 TopAbs_State myStateBefore;
94 TopAbs_State myStateAfter;
95 TopAbs_State myEdgeBefore;
96 TopAbs_State myEdgeAfter;
97 Handle(HLRBRep_AreaLimit) myPrevious;
98 Handle(HLRBRep_AreaLimit) myNext;
109 #endif // _HLRBRep_AreaLimit_HeaderFile