1 // Created on: 1993-03-24 2 // Created by: JCV 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 _Geom2d_BoundedCurve_HeaderFile 18 #define _Geom2d_BoundedCurve_HeaderFile 19 20 #include <Standard.hxx> 21 #include <Standard_Type.hxx> 22 23 #include <Geom2d_Curve.hxx> 24 class gp_Pnt2d; 25 26 27 class Geom2d_BoundedCurve; 28 DEFINE_STANDARD_HANDLE(Geom2d_BoundedCurve, Geom2d_Curve) 29 30 //! The abstract class BoundedCurve describes the 31 //! common behavior of bounded curves in 2D space. A 32 //! bounded curve is limited by two finite values of the 33 //! parameter, termed respectively "first parameter" and 34 //! "last parameter". The "first parameter" gives the "start 35 //! point" of the bounded curve, and the "last parameter" 36 //! gives the "end point" of the bounded curve. 37 //! The length of a bounded curve is finite. 38 //! The Geom2d package provides three concrete 39 //! classes of bounded curves: 40 //! - two frequently used mathematical formulations of complex curves: 41 //! - Geom2d_BezierCurve, 42 //! - Geom2d_BSplineCurve, and 43 //! - Geom2d_TrimmedCurve to trim a curve, i.e. to 44 //! only take part of the curve limited by two values of 45 //! the parameter of the basis curve. 46 class Geom2d_BoundedCurve : public Geom2d_Curve 47 { 48 49 public: 50 51 52 53 //! Returns the end point of the curve. 54 //! The end point is the value of the curve for the 55 //! "LastParameter" of the curve. 56 Standard_EXPORT virtual gp_Pnt2d EndPoint() const = 0; 57 58 59 //! Returns the start point of the curve. 60 //! The start point is the value of the curve for the 61 //! "FirstParameter" of the curve. 62 Standard_EXPORT virtual gp_Pnt2d StartPoint() const = 0; 63 64 65 66 67 DEFINE_STANDARD_RTTIEXT(Geom2d_BoundedCurve,Geom2d_Curve) 68 69 protected: 70 71 72 73 74 private: 75 76 77 78 79 }; 80 81 82 83 84 85 86 87 #endif // _Geom2d_BoundedCurve_HeaderFile 88