0027772: Foundation Classes - define Standard_Boolean using C++ type "bool" instead...
[occt.git] / src / HLRBRep / HLRBRep_AreaLimit.hxx
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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _HLRBRep_AreaLimit_HeaderFile
18 #define _HLRBRep_AreaLimit_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <HLRAlgo_Intersection.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <TopAbs_State.hxx>
26 #include <MMgt_TShared.hxx>
27 class HLRAlgo_Intersection;
28
29
30 class HLRBRep_AreaLimit;
31 DEFINE_STANDARD_HANDLE(HLRBRep_AreaLimit, MMgt_TShared)
32
33 //! The  private  nested class AreaLimit represents   a --
34 //! vertex on  the Edge with the  state on the left and --
35 //! the right.
36 class HLRBRep_AreaLimit : public MMgt_TShared
37 {
38
39 public:
40
41   
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);
44   
45   Standard_EXPORT void StateBefore (const TopAbs_State St);
46   
47   Standard_EXPORT void StateAfter (const TopAbs_State St);
48   
49   Standard_EXPORT void EdgeBefore (const TopAbs_State St);
50   
51   Standard_EXPORT void EdgeAfter (const TopAbs_State St);
52   
53   Standard_EXPORT void Previous (const Handle(HLRBRep_AreaLimit)& P);
54   
55   Standard_EXPORT void Next (const Handle(HLRBRep_AreaLimit)& N);
56   
57   Standard_EXPORT const HLRAlgo_Intersection& Vertex() const;
58   
59   Standard_EXPORT Standard_Boolean IsBoundary() const;
60   
61   Standard_EXPORT Standard_Boolean IsInterference() const;
62   
63   Standard_EXPORT TopAbs_State StateBefore() const;
64   
65   Standard_EXPORT TopAbs_State StateAfter() const;
66   
67   Standard_EXPORT TopAbs_State EdgeBefore() const;
68   
69   Standard_EXPORT TopAbs_State EdgeAfter() const;
70   
71   Standard_EXPORT Handle(HLRBRep_AreaLimit) Previous() const;
72   
73   Standard_EXPORT Handle(HLRBRep_AreaLimit) Next() const;
74   
75   Standard_EXPORT void Clear();
76
77
78
79
80   DEFINE_STANDARD_RTTIEXT(HLRBRep_AreaLimit,MMgt_TShared)
81
82 protected:
83
84
85
86
87 private:
88
89
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;
99
100
101 };
102
103
104
105
106
107
108
109 #endif // _HLRBRep_AreaLimit_HeaderFile