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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _TopOpeBRepBuild_VertexInfo_HeaderFile
18 #define _TopOpeBRepBuild_VertexInfo_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
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>
33 class TopOpeBRepBuild_VertexInfo
40 Standard_EXPORT TopOpeBRepBuild_VertexInfo();
42 Standard_EXPORT void SetVertex (const TopoDS_Vertex& aV);
44 Standard_EXPORT const TopoDS_Vertex& Vertex() const;
46 Standard_EXPORT void SetSmart (const Standard_Boolean aFlag);
48 Standard_EXPORT Standard_Boolean Smart() const;
50 Standard_EXPORT Standard_Integer NbCases() const;
52 Standard_EXPORT Standard_Integer FoundOut() const;
54 Standard_EXPORT void AddIn (const TopoDS_Edge& anE);
56 Standard_EXPORT void AddOut (const TopoDS_Edge& anE);
58 Standard_EXPORT void SetCurrentIn (const TopoDS_Edge& anE);
60 Standard_EXPORT const TopTools_IndexedMapOfOrientedShape& EdgesIn() const;
62 Standard_EXPORT const TopTools_IndexedMapOfOrientedShape& EdgesOut() const;
64 Standard_EXPORT TopTools_IndexedMapOfOrientedShape& ChangeEdgesOut();
66 Standard_EXPORT void Dump() const;
68 Standard_EXPORT const TopoDS_Edge& CurrentOut();
70 Standard_EXPORT void AppendPassed (const TopoDS_Edge& anE);
72 Standard_EXPORT void RemovePassed();
74 Standard_EXPORT const TopTools_ListOfShape& ListPassed() const;
76 Standard_EXPORT void Prepare (const TopTools_ListOfShape& aL);
91 TopoDS_Vertex myVertex;
92 TopoDS_Edge myCurrent;
93 TopoDS_Edge myCurrentIn;
94 Standard_Boolean mySmart;
95 TopTools_IndexedMapOfOrientedShape myEdgesIn;
96 TopTools_IndexedMapOfOrientedShape myEdgesOut;
97 TopTools_IndexedMapOfOrientedShape myLocalEdgesOut;
98 TopTools_ListOfShape myEdgesPassed;
99 Standard_Integer myFoundOut;
110 #endif // _TopOpeBRepBuild_VertexInfo_HeaderFile