1 // Created on: 1993-07-13
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-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 _BRepAdaptor_Curve2d_HeaderFile
18 #define _BRepAdaptor_Curve2d_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TopoDS_Edge.hxx>
25 #include <TopoDS_Face.hxx>
26 #include <Geom2dAdaptor_Curve.hxx>
27 class Standard_NullObject;
32 //! The Curve2d from BRepAdaptor allows to use an Edge
33 //! on a Face like a 2d curve. (curve in the
34 //! parametric space).
36 //! It has the methods of the class Curve2d from
39 //! It is created or initialized with a Face and an
40 //! Edge. The methods are inherited from Curve from
42 class BRepAdaptor_Curve2d : public Geom2dAdaptor_Curve
49 //! Creates an uninitialized curve2d.
50 Standard_EXPORT BRepAdaptor_Curve2d();
52 //! Creates with the pcurve of <E> on <F>.
53 Standard_EXPORT BRepAdaptor_Curve2d(const TopoDS_Edge& E, const TopoDS_Face& F);
55 //! Initialize with the pcurve of <E> on <F>.
56 Standard_EXPORT void Initialize (const TopoDS_Edge& E, const TopoDS_Face& F);
59 Standard_EXPORT const TopoDS_Edge& Edge() const;
62 Standard_EXPORT const TopoDS_Face& Face() const;
89 #endif // _BRepAdaptor_Curve2d_HeaderFile