42cf5bc1 |
1 | // Created on: 1993-06-15 |
2 | // Created by: Jean Yves LEBEY |
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 _TopOpeBRepBuild_PaveSet_HeaderFile |
18 | #define _TopOpeBRepBuild_PaveSet_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <TopoDS_Edge.hxx> |
25 | #include <TopOpeBRepBuild_ListOfPave.hxx> |
26 | #include <TopOpeBRepBuild_ListIteratorOfListOfPave.hxx> |
27 | #include <Standard_Boolean.hxx> |
28 | #include <Standard_Real.hxx> |
29 | #include <TopOpeBRepBuild_LoopSet.hxx> |
30 | class TopoDS_Shape; |
31 | class TopOpeBRepBuild_Pave; |
32 | class TopOpeBRepBuild_Loop; |
33 | class TopoDS_Edge; |
34 | |
35 | |
36 | |
37 | //! class providing an exploration of a set of vertices to build edges. |
38 | //! It is similar to LoopSet from TopOpeBRepBuild where Loop is Pave. |
39 | class TopOpeBRepBuild_PaveSet : public TopOpeBRepBuild_LoopSet |
40 | { |
41 | public: |
42 | |
43 | DEFINE_STANDARD_ALLOC |
44 | |
45 | |
46 | //! Create a Pave set on edge <E>. It contains <E> vertices. |
47 | Standard_EXPORT TopOpeBRepBuild_PaveSet(const TopoDS_Shape& E); |
48 | |
49 | Standard_EXPORT void RemovePV (const Standard_Boolean B); |
50 | |
51 | //! Add <PV> in the Pave set. |
52 | Standard_EXPORT void Append (const Handle(TopOpeBRepBuild_Pave)& PV); |
53 | |
54 | Standard_EXPORT virtual void InitLoop() Standard_OVERRIDE; |
55 | |
56 | Standard_EXPORT virtual Standard_Boolean MoreLoop() const Standard_OVERRIDE; |
57 | |
58 | Standard_EXPORT virtual void NextLoop() Standard_OVERRIDE; |
59 | |
4796758e |
60 | Standard_EXPORT virtual Handle(TopOpeBRepBuild_Loop) Loop() const Standard_OVERRIDE; |
42cf5bc1 |
61 | |
62 | Standard_EXPORT const TopoDS_Edge& Edge() const; |
63 | |
64 | Standard_EXPORT Standard_Boolean HasEqualParameters(); |
65 | |
66 | Standard_EXPORT Standard_Real EqualParameters() const; |
67 | |
68 | Standard_EXPORT Standard_Boolean ClosedVertices(); |
69 | |
70 | Standard_EXPORT static void SortPave (const TopOpeBRepBuild_ListOfPave& Lin, TopOpeBRepBuild_ListOfPave& Lout); |
71 | |
72 | |
73 | |
74 | |
75 | protected: |
76 | |
77 | |
78 | |
79 | |
80 | |
81 | private: |
82 | |
83 | |
84 | Standard_EXPORT void Prepare(); |
85 | |
86 | |
87 | TopoDS_Edge myEdge; |
88 | TopOpeBRepBuild_ListOfPave myVertices; |
89 | TopOpeBRepBuild_ListIteratorOfListOfPave myVerticesIt; |
90 | Standard_Boolean myHasEqualParameters; |
91 | Standard_Real myEqualParameters; |
92 | Standard_Boolean myClosed; |
93 | Standard_Boolean myPrepareDone; |
94 | Standard_Boolean myRemovePV; |
95 | |
96 | |
97 | }; |
98 | |
99 | |
100 | |
101 | |
102 | |
103 | |
104 | |
105 | #endif // _TopOpeBRepBuild_PaveSet_HeaderFile |