1 // File: GeomAdaptor_Curve.lxx
2 // Created: Thu Apr 29 11:54:32 1993
3 // Author: Bruno DUMORTIER
4 // Copyright: OPEN CASCADE 1993
7 #include <Geom_Curve.hxx>
8 #include <Standard_NullObject.hxx>
9 #include <Standard_ConstructionError.hxx>
12 //=======================================================================
13 //function : GeomAdaptor_Curve
15 //=======================================================================
17 inline GeomAdaptor_Curve::GeomAdaptor_Curve()
18 : myTypeCurve(GeomAbs_OtherCurve),
24 //=======================================================================
25 //function : GeomAdaptor_Curve
27 //=======================================================================
29 inline GeomAdaptor_Curve::GeomAdaptor_Curve(const Handle(Geom_Curve)& C)
34 //=======================================================================
35 //function : GeomAdaptor_Curve
37 //=======================================================================
39 inline GeomAdaptor_Curve::GeomAdaptor_Curve(const Handle(Geom_Curve)& C,
40 const Standard_Real UFirst,
41 const Standard_Real ULast)
46 //=======================================================================
49 //=======================================================================
51 inline void GeomAdaptor_Curve::Load(const Handle(Geom_Curve)& C)
53 if ( C.IsNull()) Standard_NullObject::Raise();
55 load(C,C->FirstParameter(),C->LastParameter());
58 //=======================================================================
61 //=======================================================================
63 inline void GeomAdaptor_Curve::Load(const Handle(Geom_Curve)& C,
64 const Standard_Real UFirst,
65 const Standard_Real ULast)
67 if ( C.IsNull()) Standard_NullObject::Raise();
69 if ( UFirst > ULast) Standard_ConstructionError::Raise();
75 //=======================================================================
76 //function : FirstParameter
78 //=======================================================================
80 inline Standard_Real GeomAdaptor_Curve::FirstParameter() const
85 //=======================================================================
86 //function : LastParameter
88 //=======================================================================
90 inline Standard_Real GeomAdaptor_Curve::LastParameter() const
95 //=======================================================================
98 //=======================================================================
100 inline const Handle(Geom_Curve)& GeomAdaptor_Curve::Curve() const
105 //=======================================================================
108 //=======================================================================
110 inline GeomAbs_CurveType GeomAdaptor_Curve::GetType() const