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_FaceIterator_HeaderFile
18 #define _HLRBRep_FaceIterator_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
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;
33 class HLRBRep_FaceIterator
40 Standard_EXPORT HLRBRep_FaceIterator();
42 //! Begin an exploration of the edges of the face <fd>
43 Standard_EXPORT void InitEdge (HLRBRep_FaceData& fd);
45 Standard_Boolean MoreEdge() const;
47 Standard_EXPORT void NextEdge();
49 //! Returns True if the current edge is the first of a
51 Standard_Boolean BeginningOfWire() const;
53 //! Returns True if the current edge is the last of a
55 Standard_Boolean EndOfWire() const;
57 //! Skip the current wire in the exploration.
60 //! Returns the edges of the current wire.
61 Handle(HLRAlgo_EdgesBlock) Wire() const;
63 Standard_Integer Edge() const;
65 TopAbs_Orientation Orientation() const;
67 Standard_Boolean OutLine() const;
69 Standard_Boolean Internal() const;
71 Standard_Boolean Double() const;
73 Standard_Boolean IsoLine() const;
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;
99 #include <HLRBRep_FaceIterator.lxx>
105 #endif // _HLRBRep_FaceIterator_HeaderFile