1 // Created on: 1993-04-29
2 // Created by: Bruno DUMORTIER
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.
18 #include <Geom_Curve.hxx>
19 #include <Standard_NullObject.hxx>
20 #include <Standard_ConstructionError.hxx>
23 //=======================================================================
24 //function : GeomAdaptor_Curve
26 //=======================================================================
28 inline GeomAdaptor_Curve::GeomAdaptor_Curve()
29 : myTypeCurve(GeomAbs_OtherCurve),
35 //=======================================================================
36 //function : GeomAdaptor_Curve
38 //=======================================================================
40 inline GeomAdaptor_Curve::GeomAdaptor_Curve(const Handle(Geom_Curve)& C)
45 //=======================================================================
46 //function : GeomAdaptor_Curve
48 //=======================================================================
50 inline GeomAdaptor_Curve::GeomAdaptor_Curve(const Handle(Geom_Curve)& C,
51 const Standard_Real UFirst,
52 const Standard_Real ULast)
57 //=======================================================================
60 //=======================================================================
62 inline void GeomAdaptor_Curve::Load(const Handle(Geom_Curve)& C)
64 if ( C.IsNull()) throw Standard_NullObject();
66 load(C,C->FirstParameter(),C->LastParameter());
69 //=======================================================================
72 //=======================================================================
74 inline void GeomAdaptor_Curve::Load(const Handle(Geom_Curve)& C,
75 const Standard_Real UFirst,
76 const Standard_Real ULast)
78 if ( C.IsNull()) throw Standard_NullObject();
80 if ( UFirst > ULast) throw Standard_ConstructionError();
86 //=======================================================================
87 //function : FirstParameter
89 //=======================================================================
91 inline Standard_Real GeomAdaptor_Curve::FirstParameter() const
96 //=======================================================================
97 //function : LastParameter
99 //=======================================================================
101 inline Standard_Real GeomAdaptor_Curve::LastParameter() const
106 //=======================================================================
109 //=======================================================================
111 inline const Handle(Geom_Curve)& GeomAdaptor_Curve::Curve() const
116 //=======================================================================
119 //=======================================================================
121 inline GeomAbs_CurveType GeomAdaptor_Curve::GetType() const