|
||||
File indexing completed on 2025-01-18 10:03:06
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 0029 //! The Curve2d from BRepAdaptor allows to use an Edge 0030 //! on a Face like a 2d curve. (curve in the 0031 //! parametric space). 0032 //! 0033 //! It has the methods of the class Curve2d from 0034 //! Adpator. 0035 //! 0036 //! It is created or initialized with a Face and an 0037 //! Edge. The methods are inherited from Curve from 0038 //! Geom2dAdaptor. 0039 class BRepAdaptor_Curve2d : public Geom2dAdaptor_Curve 0040 { 0041 DEFINE_STANDARD_RTTIEXT(BRepAdaptor_Curve2d, Geom2dAdaptor_Curve) 0042 public: 0043 0044 //! Creates an uninitialized curve2d. 0045 Standard_EXPORT BRepAdaptor_Curve2d(); 0046 0047 //! Creates with the pcurve of <E> on <F>. 0048 Standard_EXPORT BRepAdaptor_Curve2d(const TopoDS_Edge& E, const TopoDS_Face& F); 0049 0050 //! Shallow copy of adaptor 0051 Standard_EXPORT virtual Handle(Adaptor2d_Curve2d) ShallowCopy() const Standard_OVERRIDE; 0052 0053 //! Initialize with the pcurve of <E> on <F>. 0054 Standard_EXPORT void Initialize (const TopoDS_Edge& E, const TopoDS_Face& F); 0055 0056 //! Returns the Edge. 0057 Standard_EXPORT const TopoDS_Edge& Edge() const; 0058 0059 //! Returns the Face. 0060 Standard_EXPORT const TopoDS_Face& Face() const; 0061 0062 private: 0063 0064 TopoDS_Edge myEdge; 0065 TopoDS_Face myFace; 0066 0067 }; 0068 0069 DEFINE_STANDARD_HANDLE(BRepAdaptor_Curve2d, Geom2dAdaptor_Curve) 0070 0071 #endif // _BRepAdaptor_Curve2d_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |