42cf5bc1 |
1 | // Created on: 1993-05-27 |
2 | // Created by: Yves FRICAUD |
3 | // Copyright (c) 1993-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 _MAT_Zone_HeaderFile |
18 | #define _MAT_Zone_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <MAT_SequenceOfArc.hxx> |
24 | #include <Standard_Boolean.hxx> |
25e59720 |
25 | #include <Standard_Transient.hxx> |
42cf5bc1 |
26 | #include <Standard_Integer.hxx> |
27 | #include <MAT_Side.hxx> |
28 | class MAT_BasicElt; |
29 | class MAT_Arc; |
30 | class MAT_Node; |
31 | |
32 | |
33 | class MAT_Zone; |
25e59720 |
34 | DEFINE_STANDARD_HANDLE(MAT_Zone, Standard_Transient) |
42cf5bc1 |
35 | |
36 | |
37 | //! Definition of Zone of Proximity of a BasicElt : |
38 | //! ---------------------------------------------- |
39 | //! A Zone of proximity is the set of the points which are |
40 | //! more near from the BasicElt than any other. |
25e59720 |
41 | class MAT_Zone : public Standard_Transient |
42cf5bc1 |
42 | { |
43 | |
44 | public: |
45 | |
46 | |
47 | Standard_EXPORT MAT_Zone(); |
48 | |
49 | //! Compute the frontier of the Zone of proximity. |
50 | Standard_EXPORT MAT_Zone(const Handle(MAT_BasicElt)& aBasicElt); |
51 | |
52 | //! Compute the frontier of the Zone of proximity. |
53 | Standard_EXPORT void Perform (const Handle(MAT_BasicElt)& aBasicElt); |
54 | |
55 | //! Return the number Of Arcs On the frontier of <me>. |
56 | Standard_EXPORT Standard_Integer NumberOfArcs() const; |
57 | |
58 | //! Return the Arc number <Index> on the frontier. |
59 | //! of <me>. |
60 | Standard_EXPORT Handle(MAT_Arc) ArcOnFrontier (const Standard_Integer Index) const; |
61 | |
62 | //! Return TRUE if <me> is not empty . |
63 | Standard_EXPORT Standard_Boolean NoEmptyZone() const; |
64 | |
65 | //! Return TRUE if <me> is Limited. |
66 | Standard_EXPORT Standard_Boolean Limited() const; |
67 | |
68 | |
69 | |
70 | |
25e59720 |
71 | DEFINE_STANDARD_RTTIEXT(MAT_Zone,Standard_Transient) |
42cf5bc1 |
72 | |
73 | protected: |
74 | |
75 | |
76 | |
77 | |
78 | private: |
79 | |
80 | |
81 | Standard_EXPORT Handle(MAT_Node) NodeForTurn (const Handle(MAT_Arc)& anArc, const Handle(MAT_BasicElt)& aBasicElt, const MAT_Side aSide) const; |
82 | |
83 | MAT_SequenceOfArc frontier; |
84 | Standard_Boolean limited; |
85 | |
86 | |
87 | }; |
88 | |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | |
95 | #endif // _MAT_Zone_HeaderFile |