| 1 | // Created on: 1999-11-29 |
| 2 | // Created by: Peter KURNEV |
| 3 | // Copyright (c) 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_VertexInfo_HeaderFile |
| 18 | #define _TopOpeBRepBuild_VertexInfo_HeaderFile |
| 19 | |
| 20 | #include <Standard.hxx> |
| 21 | #include <Standard_DefineAlloc.hxx> |
| 22 | #include <Standard_Handle.hxx> |
| 23 | |
| 24 | #include <TopoDS_Vertex.hxx> |
| 25 | #include <TopoDS_Edge.hxx> |
| 26 | #include <Standard_Boolean.hxx> |
| 27 | #include <TopTools_IndexedMapOfOrientedShape.hxx> |
| 28 | #include <TopTools_ListOfShape.hxx> |
| 29 | #include <Standard_Integer.hxx> |
| 30 | class TopoDS_Vertex; |
| 31 | class TopoDS_Edge; |
| 32 | |
| 33 | |
| 34 | |
| 35 | class TopOpeBRepBuild_VertexInfo |
| 36 | { |
| 37 | public: |
| 38 | |
| 39 | DEFINE_STANDARD_ALLOC |
| 40 | |
| 41 | |
| 42 | Standard_EXPORT TopOpeBRepBuild_VertexInfo(); |
| 43 | |
| 44 | Standard_EXPORT void SetVertex (const TopoDS_Vertex& aV); |
| 45 | |
| 46 | Standard_EXPORT const TopoDS_Vertex& Vertex() const; |
| 47 | |
| 48 | Standard_EXPORT void SetSmart (const Standard_Boolean aFlag); |
| 49 | |
| 50 | Standard_EXPORT Standard_Boolean Smart() const; |
| 51 | |
| 52 | Standard_EXPORT Standard_Integer NbCases() const; |
| 53 | |
| 54 | Standard_EXPORT Standard_Integer FoundOut() const; |
| 55 | |
| 56 | Standard_EXPORT void AddIn (const TopoDS_Edge& anE); |
| 57 | |
| 58 | Standard_EXPORT void AddOut (const TopoDS_Edge& anE); |
| 59 | |
| 60 | Standard_EXPORT void SetCurrentIn (const TopoDS_Edge& anE); |
| 61 | |
| 62 | Standard_EXPORT const TopTools_IndexedMapOfOrientedShape& EdgesIn() const; |
| 63 | |
| 64 | Standard_EXPORT const TopTools_IndexedMapOfOrientedShape& EdgesOut() const; |
| 65 | |
| 66 | Standard_EXPORT TopTools_IndexedMapOfOrientedShape& ChangeEdgesOut(); |
| 67 | |
| 68 | Standard_EXPORT void Dump() const; |
| 69 | |
| 70 | Standard_EXPORT const TopoDS_Edge& CurrentOut(); |
| 71 | |
| 72 | Standard_EXPORT void AppendPassed (const TopoDS_Edge& anE); |
| 73 | |
| 74 | Standard_EXPORT void RemovePassed(); |
| 75 | |
| 76 | Standard_EXPORT const TopTools_ListOfShape& ListPassed() const; |
| 77 | |
| 78 | Standard_EXPORT void Prepare (const TopTools_ListOfShape& aL); |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | protected: |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | private: |
| 90 | |
| 91 | |
| 92 | |
| 93 | TopoDS_Vertex myVertex; |
| 94 | TopoDS_Edge myCurrent; |
| 95 | TopoDS_Edge myCurrentIn; |
| 96 | Standard_Boolean mySmart; |
| 97 | TopTools_IndexedMapOfOrientedShape myEdgesIn; |
| 98 | TopTools_IndexedMapOfOrientedShape myEdgesOut; |
| 99 | TopTools_IndexedMapOfOrientedShape myLocalEdgesOut; |
| 100 | TopTools_ListOfShape myEdgesPassed; |
| 101 | Standard_Integer myFoundOut; |
| 102 | |
| 103 | |
| 104 | }; |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | #endif // _TopOpeBRepBuild_VertexInfo_HeaderFile |