42cf5bc1 |
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_FaceIterator_HeaderFile |
18 | #define _HLRBRep_FaceIterator_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Integer.hxx> |
25 | #include <Standard_Boolean.hxx> |
26 | #include <TopAbs_Orientation.hxx> |
27 | class HLRAlgo_WiresBlock; |
28 | class HLRAlgo_EdgesBlock; |
29 | class HLRBRep_FaceData; |
30 | |
31 | |
32 | |
33 | class HLRBRep_FaceIterator |
34 | { |
35 | public: |
36 | |
37 | DEFINE_STANDARD_ALLOC |
38 | |
39 | |
40 | Standard_EXPORT HLRBRep_FaceIterator(); |
41 | |
42 | //! Begin an exploration of the edges of the face <fd> |
43 | Standard_EXPORT void InitEdge (HLRBRep_FaceData& fd); |
44 | |
45 | Standard_Boolean MoreEdge() const; |
46 | |
47 | Standard_EXPORT void NextEdge(); |
48 | |
49 | //! Returns True if the current edge is the first of a |
50 | //! wire. |
51 | Standard_Boolean BeginningOfWire() const; |
52 | |
53 | //! Returns True if the current edge is the last of a |
54 | //! wire. |
55 | Standard_Boolean EndOfWire() const; |
56 | |
57 | //! Skip the current wire in the exploration. |
58 | void SkipWire(); |
59 | |
60 | //! Returns the edges of the current wire. |
61 | Handle(HLRAlgo_EdgesBlock) Wire() const; |
62 | |
63 | Standard_Integer Edge() const; |
64 | |
65 | TopAbs_Orientation Orientation() const; |
66 | |
67 | Standard_Boolean OutLine() const; |
68 | |
69 | Standard_Boolean Internal() const; |
70 | |
71 | Standard_Boolean Double() const; |
72 | |
73 | Standard_Boolean IsoLine() const; |
74 | |
75 | |
76 | |
77 | |
78 | protected: |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | private: |
85 | |
86 | |
87 | |
88 | Standard_Integer iWire; |
89 | Standard_Integer nbWires; |
90 | Standard_Integer iEdge; |
91 | Standard_Integer nbEdges; |
92 | Handle(HLRAlgo_WiresBlock) myWires; |
93 | Handle(HLRAlgo_EdgesBlock) myEdges; |
94 | |
95 | |
96 | }; |
97 | |
98 | |
99 | #include <HLRBRep_FaceIterator.lxx> |
100 | |
101 | |
102 | |
103 | |
104 | |
105 | #endif // _HLRBRep_FaceIterator_HeaderFile |