Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:53

0001 // Created on: 1997-04-17
0002 // Created by: Christophe MARION
0003 // Copyright (c) 1997-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _HLRBRep_VertexList_HeaderFile
0018 #define _HLRBRep_VertexList_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <HLRAlgo_ListIteratorOfInterferenceList.hxx>
0025 #include <HLRBRep_EdgeInterferenceTool.hxx>
0026 #include <Standard_Boolean.hxx>
0027 #include <TopAbs_Orientation.hxx>
0028 class HLRAlgo_Intersection;
0029 
0030 
0031 
0032 class HLRBRep_VertexList 
0033 {
0034 public:
0035 
0036   DEFINE_STANDARD_ALLOC
0037 
0038   
0039   Standard_EXPORT HLRBRep_VertexList(const HLRBRep_EdgeInterferenceTool& T, const HLRAlgo_ListIteratorOfInterferenceList& I);
0040   
0041   //! Returns True when the curve is periodic.
0042   Standard_EXPORT Standard_Boolean IsPeriodic() const;
0043   
0044   //! Returns True when there are more vertices.
0045   Standard_EXPORT Standard_Boolean More() const;
0046   
0047   //! Proceeds to the next vertex.
0048   Standard_EXPORT void Next();
0049   
0050   //! Returns the current vertex
0051   Standard_EXPORT const HLRAlgo_Intersection& Current() const;
0052   
0053   //! Returns True if the current vertex is on the boundary of the edge.
0054   Standard_EXPORT Standard_Boolean IsBoundary() const;
0055   
0056   //! Returns  True   if   the current    vertex  is  an
0057   //! interference.
0058   Standard_EXPORT Standard_Boolean IsInterference() const;
0059   
0060   //! Returns the  orientation of the  current vertex if
0061   //! it is on the boundary of the edge.
0062   Standard_EXPORT TopAbs_Orientation Orientation() const;
0063   
0064   //! Returns  the transition  of the  current vertex if
0065   //! it is an interference.
0066   Standard_EXPORT TopAbs_Orientation Transition() const;
0067   
0068   //! Returns  the  transition  of  the  current  vertex
0069   //! relative to the boundary if it is an interference.
0070   Standard_EXPORT TopAbs_Orientation BoundaryTransition() const;
0071 
0072 
0073 
0074 
0075 protected:
0076 
0077 
0078 
0079 
0080 
0081 private:
0082 
0083 
0084 
0085   HLRAlgo_ListIteratorOfInterferenceList myIterator;
0086   HLRBRep_EdgeInterferenceTool myTool;
0087   Standard_Boolean fromEdge;
0088   Standard_Boolean fromInterf;
0089 
0090 
0091 };
0092 
0093 
0094 
0095 
0096 
0097 
0098 
0099 #endif // _HLRBRep_VertexList_HeaderFile