1 // Created on: 1997-04-17
2 // Created by: Christophe MARION
3 // Copyright (c) 1997-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 _HLRBRep_VertexList_HeaderFile
18 #define _HLRBRep_VertexList_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <HLRAlgo_ListIteratorOfInterferenceList.hxx>
25 #include <HLRBRep_EdgeInterferenceTool.hxx>
26 #include <Standard_Boolean.hxx>
27 #include <TopAbs_Orientation.hxx>
28 class HLRBRep_EdgeInterferenceTool;
29 class HLRAlgo_Intersection;
33 class HLRBRep_VertexList
40 Standard_EXPORT HLRBRep_VertexList(const HLRBRep_EdgeInterferenceTool& T, const HLRAlgo_ListIteratorOfInterferenceList& I);
42 //! Returns True when the curve is periodic.
43 Standard_EXPORT Standard_Boolean IsPeriodic() const;
45 //! Returns True when there are more vertices.
46 Standard_EXPORT Standard_Boolean More() const;
48 //! Proceeds to the next vertex.
49 Standard_EXPORT void Next();
51 //! Returns the current vertex
52 Standard_EXPORT const HLRAlgo_Intersection& Current() const;
54 //! Returns True if the current vertex is is on the
55 //! boundary of the edge.
56 Standard_EXPORT Standard_Boolean IsBoundary() const;
58 //! Returns True if the current vertex is an
60 Standard_EXPORT Standard_Boolean IsInterference() const;
62 //! Returns the orientation of the current vertex if
63 //! it is on the boundary of the edge.
64 Standard_EXPORT TopAbs_Orientation Orientation() const;
66 //! Returns the transition of the current vertex if
67 //! it is an interference.
68 Standard_EXPORT TopAbs_Orientation Transition() const;
70 //! Returns the transition of the current vertex
71 //! relative to the boundary if it is an interference.
72 Standard_EXPORT TopAbs_Orientation BoundaryTransition() const;
87 HLRAlgo_ListIteratorOfInterferenceList myIterator;
88 HLRBRep_EdgeInterferenceTool myTool;
89 Standard_Boolean fromEdge;
90 Standard_Boolean fromInterf;
101 #endif // _HLRBRep_VertexList_HeaderFile