b311480e |
1 | // Created on: 1997-04-17 |
2 | // Created by: Christophe MARION |
3 | // Copyright (c) 1997-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | #include <HLRAlgo_WiresBlock.hxx> |
18 | #include <HLRAlgo_EdgesBlock.hxx> |
19 | |
20 | //======================================================================= |
21 | //function : MoreEdge |
22 | //purpose : |
23 | //======================================================================= |
24 | |
25 | inline Standard_Boolean HLRBRep_FaceIterator::MoreEdge () const |
26 | { return iWire <= nbWires;} |
27 | |
28 | //======================================================================= |
29 | //function : BeginningOfWire |
30 | //purpose : |
31 | //======================================================================= |
32 | |
33 | inline Standard_Boolean HLRBRep_FaceIterator::BeginningOfWire () const |
34 | { return iEdge == 1;} |
35 | |
36 | //======================================================================= |
37 | //function : EndOfWire |
38 | //purpose : |
39 | //======================================================================= |
40 | |
41 | inline Standard_Boolean HLRBRep_FaceIterator::EndOfWire () const |
42 | { return iEdge == nbEdges;} |
43 | |
44 | //======================================================================= |
45 | //function : SkipWire |
46 | //purpose : |
47 | //======================================================================= |
48 | |
49 | inline void HLRBRep_FaceIterator::SkipWire () |
50 | { |
51 | iEdge = nbEdges; |
52 | NextEdge(); |
53 | } |
54 | |
55 | //======================================================================= |
56 | //function : Wire |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | inline Handle(HLRAlgo_EdgesBlock) HLRBRep_FaceIterator::Wire() const |
61 | { return myWires->Wire(iWire); } |
62 | |
63 | //======================================================================= |
64 | //function : Edge |
65 | //purpose : |
66 | //======================================================================= |
67 | |
68 | inline Standard_Integer HLRBRep_FaceIterator::Edge () const |
69 | { return myEdges->Edge(iEdge); } |
70 | |
71 | //======================================================================= |
72 | //function : Orientation |
73 | //purpose : |
74 | //======================================================================= |
75 | |
76 | inline TopAbs_Orientation HLRBRep_FaceIterator::Orientation() const |
77 | { return myEdges->Orientation(iEdge); } |
78 | |
79 | //======================================================================= |
80 | //function : OutLine |
81 | //purpose : |
82 | //======================================================================= |
83 | |
84 | inline Standard_Boolean HLRBRep_FaceIterator::OutLine() const |
85 | { return myEdges->OutLine(iEdge); } |
86 | |
87 | //======================================================================= |
88 | //function : Internal |
89 | //purpose : |
90 | //======================================================================= |
91 | |
92 | inline Standard_Boolean HLRBRep_FaceIterator::Internal() const |
93 | { return myEdges->Internal(iEdge); } |
94 | |
95 | //======================================================================= |
96 | //function : Double |
97 | //purpose : |
98 | //======================================================================= |
99 | |
100 | inline Standard_Boolean HLRBRep_FaceIterator::Double() const |
101 | { return myEdges->Double(iEdge); } |
102 | |
103 | //======================================================================= |
104 | //function : IsoLine |
105 | //purpose : |
106 | //======================================================================= |
107 | |
108 | inline Standard_Boolean HLRBRep_FaceIterator::IsoLine() const |
109 | { return myEdges->IsoLine(iEdge); } |