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 5 // 6 // This file is part of Open CASCADE Technology software library. 7 // 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. 13 // 14 // Alternatively, this file may be used under the terms of Open CASCADE 15 // commercial license or contractual agreement. 16 17 #ifndef _BRepAdaptor_Curve2d_HeaderFile 18 #define _BRepAdaptor_Curve2d_HeaderFile 19 20 #include <Standard.hxx> 21 #include <Standard_DefineAlloc.hxx> 22 #include <Standard_Handle.hxx> 23 24 #include <TopoDS_Edge.hxx> 25 #include <TopoDS_Face.hxx> 26 #include <Geom2dAdaptor_Curve.hxx> 27 class Standard_NullObject; 28 class TopoDS_Edge; 29 class TopoDS_Face; 30 31 32 //! The Curve2d from BRepAdaptor allows to use an Edge 33 //! on a Face like a 2d curve. (curve in the 34 //! parametric space). 35 //! 36 //! It has the methods of the class Curve2d from 37 //! Adpator. 38 //! 39 //! It is created or initialized with a Face and an 40 //! Edge. The methods are inherited from Curve from 41 //! Geom2dAdaptor. 42 class BRepAdaptor_Curve2d : public Geom2dAdaptor_Curve 43 { 44 public: 45 46 DEFINE_STANDARD_ALLOC 47 48 49 //! Creates an uninitialized curve2d. 50 Standard_EXPORT BRepAdaptor_Curve2d(); 51 52 //! Creates with the pcurve of <E> on <F>. 53 Standard_EXPORT BRepAdaptor_Curve2d(const TopoDS_Edge& E, const TopoDS_Face& F); 54 55 //! Initialize with the pcurve of <E> on <F>. 56 Standard_EXPORT void Initialize (const TopoDS_Edge& E, const TopoDS_Face& F); 57 58 //! Returns the Edge. 59 Standard_EXPORT const TopoDS_Edge& Edge() const; 60 61 //! Returns the Face. 62 Standard_EXPORT const TopoDS_Face& Face() const; 63 64 65 66 67 protected: 68 69 70 71 72 73 private: 74 75 76 77 TopoDS_Edge myEdge; 78 TopoDS_Face myFace; 79 80 81 }; 82 83 84 85 86 87 88 89 #endif // _BRepAdaptor_Curve2d_HeaderFile 90