42cf5bc1 |
1 | // Created on: 1993-01-11 |
2 | // Created by: Christophe MARION |
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 _HLRAlgo_EdgeIterator_HeaderFile |
18 | #define _HLRAlgo_EdgeIterator_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Integer.hxx> |
42cf5bc1 |
25 | #include <Standard_Real.hxx> |
26 | #include <Standard_ShortReal.hxx> |
27 | #include <Standard_Boolean.hxx> |
28 | class HLRAlgo_EdgeStatus; |
29 | |
30 | |
31 | |
32 | class HLRAlgo_EdgeIterator |
33 | { |
34 | public: |
35 | |
36 | DEFINE_STANDARD_ALLOC |
37 | |
38 | |
39 | //! Iterator on the visible or hidden parts of an |
40 | //! edge. |
41 | Standard_EXPORT HLRAlgo_EdgeIterator(); |
42 | |
681f3919 |
43 | Standard_EXPORT void InitHidden (HLRAlgo_EdgeStatus& status); |
42cf5bc1 |
44 | |
45 | Standard_Boolean MoreHidden() const; |
46 | |
47 | Standard_EXPORT void NextHidden(); |
48 | |
49 | //! Returns the bounds and the tolerances |
50 | //! of the current Hidden Interval |
51 | void Hidden (Standard_Real& Start, Standard_ShortReal& TolStart, Standard_Real& End, Standard_ShortReal& TolEnd) const; |
52 | |
681f3919 |
53 | void InitVisible (HLRAlgo_EdgeStatus& status); |
42cf5bc1 |
54 | |
55 | Standard_Boolean MoreVisible() const; |
56 | |
57 | void NextVisible(); |
58 | |
59 | //! Returns the bounds and the tolerances |
60 | //! of the current Visible Interval |
61 | void Visible (Standard_Real& Start, Standard_ShortReal& TolStart, Standard_Real& End, Standard_ShortReal& TolEnd); |
62 | |
63 | |
64 | |
65 | |
66 | protected: |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | private: |
73 | |
74 | |
75 | |
76 | Standard_Integer myNbVis; |
77 | Standard_Integer myNbHid; |
681f3919 |
78 | HLRAlgo_EdgeStatus* EVis; |
79 | HLRAlgo_EdgeStatus* EHid; |
42cf5bc1 |
80 | Standard_Integer iVis; |
81 | Standard_Integer iHid; |
82 | Standard_Real myHidStart; |
83 | Standard_Real myHidEnd; |
84 | Standard_ShortReal myHidTolStart; |
85 | Standard_ShortReal myHidTolEnd; |
86 | |
87 | |
88 | }; |
89 | |
90 | |
91 | #include <HLRAlgo_EdgeIterator.lxx> |
92 | |
93 | |
94 | |
95 | |
96 | |
97 | #endif // _HLRAlgo_EdgeIterator_HeaderFile |