Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-22 08:57:05

0001 // Created on: 1993-07-13
0002 // Created by: Remi LEQUETTE
0003 // Copyright (c) 1993-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 _BRepAdaptor_Curve2d_HeaderFile
0018 #define _BRepAdaptor_Curve2d_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TopoDS_Edge.hxx>
0025 #include <TopoDS_Face.hxx>
0026 #include <Geom2dAdaptor_Curve.hxx>
0027 
0028 //! The Curve2d from BRepAdaptor allows to use an Edge
0029 //! on a Face like a 2d curve (curve in the parametric
0030 //! space).
0031 //!
0032 //! It has the methods of the class Curve2d from
0033 //! Adpator.
0034 //!
0035 //! It is created or initialized with a Face and an
0036 //! Edge. The methods are inherited from Curve from
0037 //! Geom2dAdaptor.
0038 class BRepAdaptor_Curve2d : public Geom2dAdaptor_Curve
0039 {
0040   DEFINE_STANDARD_RTTIEXT(BRepAdaptor_Curve2d, Geom2dAdaptor_Curve)
0041 public:
0042   //! Creates an uninitialized curve2d.
0043   Standard_EXPORT BRepAdaptor_Curve2d();
0044 
0045   //! Creates with the pcurve of <E> on <F>.
0046   Standard_EXPORT BRepAdaptor_Curve2d(const TopoDS_Edge& E, const TopoDS_Face& F);
0047 
0048   //! Shallow copy of adaptor
0049   Standard_EXPORT occ::handle<Adaptor2d_Curve2d> ShallowCopy() const override;
0050 
0051   //! Initialize with the pcurve of <E> on <F>.
0052   Standard_EXPORT void Initialize(const TopoDS_Edge& E, const TopoDS_Face& F);
0053 
0054   //! Returns the Edge.
0055   Standard_EXPORT const TopoDS_Edge& Edge() const;
0056 
0057   //! Returns the Face.
0058   Standard_EXPORT const TopoDS_Face& Face() const;
0059 
0060 private:
0061   TopoDS_Edge myEdge;
0062   TopoDS_Face myFace;
0063 };
0064 
0065 #endif // _BRepAdaptor_Curve2d_HeaderFile