1 // Created on: 1993-03-10
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 _Geom_BoundedCurve_HeaderFile
18 #define _Geom_BoundedCurve_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Geom_Curve.hxx>
27 class Geom_BoundedCurve;
28 DEFINE_STANDARD_HANDLE(Geom_BoundedCurve, Geom_Curve)
30 //! The abstract class BoundedCurve describes the
31 //! common behavior of bounded curves in 3D 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 Geom package provides three concrete classes of bounded curves:
39 //! - two frequently used mathematical formulations of complex curves:
40 //! - Geom_BezierCurve,
41 //! - Geom_BSplineCurve, and
42 //! - Geom_TrimmedCurve to trim a curve, i.e. to only
43 //! take part of the curve limited by two values of the
44 //! parameter of the basis curve.
45 class Geom_BoundedCurve : public Geom_Curve
51 //! Returns the end point of the curve.
52 Standard_EXPORT virtual gp_Pnt EndPoint() const = 0;
54 //! Returns the start point of the curve.
55 Standard_EXPORT virtual gp_Pnt StartPoint() const = 0;
57 //! Dumps the content of me into the stream
58 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
63 DEFINE_STANDARD_RTTIEXT(Geom_BoundedCurve,Geom_Curve)
83 #endif // _Geom_BoundedCurve_HeaderFile