42cf5bc1 |
1 | // Created on: 1995-12-21 |
2 | // Created by: Jean Yves LEBEY |
3 | // Copyright (c) 1995-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 _TopOpeBRepBuild_EdgeBuilder_HeaderFile |
18 | #define _TopOpeBRepBuild_EdgeBuilder_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <TopOpeBRepBuild_Area1dBuilder.hxx> |
25 | #include <Standard_Boolean.hxx> |
26 | #include <Standard_Real.hxx> |
27 | class TopOpeBRepBuild_PaveSet; |
28 | class TopOpeBRepBuild_PaveClassifier; |
29 | class TopOpeBRepBuild_LoopSet; |
30 | class TopOpeBRepBuild_LoopClassifier; |
31 | class TopoDS_Shape; |
32 | |
33 | |
34 | |
35 | class TopOpeBRepBuild_EdgeBuilder : public TopOpeBRepBuild_Area1dBuilder |
36 | { |
37 | public: |
38 | |
39 | DEFINE_STANDARD_ALLOC |
40 | |
41 | |
42 | Standard_EXPORT TopOpeBRepBuild_EdgeBuilder(); |
43 | |
44 | //! Creates a EdgeBuilder to find the areas of |
45 | //! the shapes described by <LS> using the classifier <LC>. |
46 | Standard_EXPORT TopOpeBRepBuild_EdgeBuilder(TopOpeBRepBuild_PaveSet& LS, TopOpeBRepBuild_PaveClassifier& LC, const Standard_Boolean ForceClass = Standard_False); |
47 | |
48 | Standard_EXPORT void InitEdgeBuilder (TopOpeBRepBuild_LoopSet& LS, TopOpeBRepBuild_LoopClassifier& LC, const Standard_Boolean ForceClass = Standard_False); |
49 | |
50 | Standard_EXPORT void InitEdge(); |
51 | |
52 | Standard_EXPORT Standard_Boolean MoreEdge() const; |
53 | |
54 | Standard_EXPORT void NextEdge(); |
55 | |
56 | Standard_EXPORT void InitVertex(); |
57 | |
58 | Standard_EXPORT Standard_Boolean MoreVertex() const; |
59 | |
60 | Standard_EXPORT void NextVertex(); |
61 | |
62 | Standard_EXPORT const TopoDS_Shape& Vertex() const; |
63 | |
64 | Standard_EXPORT Standard_Real Parameter() const; |
65 | |
66 | |
67 | |
68 | |
69 | protected: |
70 | |
71 | |
72 | |
73 | |
74 | |
75 | private: |
76 | |
77 | |
78 | |
79 | |
80 | |
81 | }; |
82 | |
83 | |
84 | |
85 | |
86 | |
87 | |
88 | |
89 | #endif // _TopOpeBRepBuild_EdgeBuilder_HeaderFile |