Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-06 08:35:45

0001 // Created on: 1994-04-01
0002 // Created by: Modelistation
0003 // Copyright (c) 1994-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 _BRepTopAdaptor_HVertex_HeaderFile
0018 #define _BRepTopAdaptor_HVertex_HeaderFile
0019 
0020 #include <Adaptor3d_HVertex.hxx>
0021 #include <BRepAdaptor_Curve2d.hxx>
0022 #include <Standard.hxx>
0023 #include <Standard_Type.hxx>
0024 #include <TopAbs_Orientation.hxx>
0025 #include <TopoDS_Vertex.hxx>
0026 
0027 class gp_Pnt2d;
0028 
0029 class BRepTopAdaptor_HVertex;
0030 DEFINE_STANDARD_HANDLE(BRepTopAdaptor_HVertex, Adaptor3d_HVertex)
0031 
0032 class BRepTopAdaptor_HVertex : public Adaptor3d_HVertex
0033 {
0034 
0035 public:
0036   Standard_EXPORT BRepTopAdaptor_HVertex(const TopoDS_Vertex&               Vtx,
0037                                          const Handle(BRepAdaptor_Curve2d)& Curve);
0038 
0039   const TopoDS_Vertex& Vertex() const;
0040 
0041   TopoDS_Vertex& ChangeVertex();
0042 
0043   Standard_EXPORT virtual gp_Pnt2d Value() Standard_OVERRIDE;
0044 
0045   Standard_EXPORT virtual Standard_Real Parameter(const Handle(Adaptor2d_Curve2d)& C)
0046     Standard_OVERRIDE;
0047 
0048   //! Parametric resolution (2d).
0049   Standard_EXPORT virtual Standard_Real Resolution(const Handle(Adaptor2d_Curve2d)& C)
0050     Standard_OVERRIDE;
0051 
0052   Standard_EXPORT virtual TopAbs_Orientation Orientation() Standard_OVERRIDE;
0053 
0054   Standard_EXPORT virtual Standard_Boolean IsSame(const Handle(Adaptor3d_HVertex)& Other)
0055     Standard_OVERRIDE;
0056 
0057   DEFINE_STANDARD_RTTIEXT(BRepTopAdaptor_HVertex, Adaptor3d_HVertex)
0058 
0059 protected:
0060 private:
0061   TopoDS_Vertex               myVtx;
0062   Handle(BRepAdaptor_Curve2d) myCurve;
0063 };
0064 
0065 #include <BRepTopAdaptor_HVertex.lxx>
0066 
0067 #endif // _BRepTopAdaptor_HVertex_HeaderFile