-- Created on: 1995-07-18 -- Created by: Modelistation -- Copyright (c) 1995-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. class Curve2dTool from Extrema uses Curve2d from Adaptor2d, Array1OfReal from TColStd, Shape from GeomAbs, CurveType from GeomAbs, Vec2d from gp, Pnt2d from gp, Circ2d from gp, Elips2d from gp, Hypr2d from gp, Parab2d from gp, Lin2d from gp, BezierCurve from Geom2d, BSplineCurve from Geom2d, HCurve2d from Adaptor2d is FirstParameter(myclass; C : Curve2d from Adaptor2d) returns Real ---C++: inline ; LastParameter(myclass; C : Curve2d from Adaptor2d) returns Real ---C++: inline ; Continuity(myclass; C : Curve2d from Adaptor2d) returns Shape from GeomAbs ---C++: inline ; NbIntervals(myclass; C : Curve2d from Adaptor2d; S : Shape from GeomAbs) returns Integer ---Purpose: If necessary, breaks the curve in intervals of -- continuity . And returns the number of -- intervals. ---C++: inline ; Intervals(myclass; C : Curve2d from Adaptor2d; T : in out Array1OfReal from TColStd; S : Shape from GeomAbs); ---Purpose: Stores in the parameters bounding the intervals -- of continuity . ---C++: inline IsClosed(myclass; C : Curve2d from Adaptor2d) returns Boolean ---C++: inline ; IsPeriodic(myclass; C : Curve2d from Adaptor2d) returns Boolean ---C++: inline ; Period(myclass; C : Curve2d from Adaptor2d) returns Real ---C++: inline ; Value(myclass; C : Curve2d from Adaptor2d; U : Real) returns Pnt2d from gp --- Purpose : Computes the point of parameter U on the curve. ---C++: inline ; D0 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp) --- Purpose : Computes the point of parameter U on the curve. ---C++: inline ; D1 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp ; V : out Vec2d from gp) --- Purpose : Computes the point of parameter U on the curve with its -- first derivative. ---C++: inline ; D2 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp; V1, V2 : out Vec2d from gp) --- Purpose : -- Returns the point P of parameter U, the first and second -- derivatives V1 and V2. ---C++: inline ; D3 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp; V1, V2, V3 : out Vec2d from gp) --- Purpose : -- Returns the point P of parameter U, the first, the second -- and the third derivative. ---C++: inline ; DN (myclass; C : Curve2d from Adaptor2d; U : Real; N : Integer) returns Vec2d from gp --- Purpose : -- The returned vector gives the value of the derivative for the -- order of derivation N. ---C++: inline ; Resolution(myclass; C : Curve2d from Adaptor2d ; R3d : Real) returns Real ---Purpose : Returns the parametric resolution corresponding -- to the real space resolution . ---C++: inline ; GetType(myclass; C : Curve2d from Adaptor2d) returns CurveType from GeomAbs ---Purpose: Returns the type of the curve in the current -- interval : Line, Circle, Ellipse, Hyperbola, -- Parabola, BezierCurve, BSplineCurve, OtherCurve. ---C++: inline ; Line(myclass; C : Curve2d from Adaptor2d) returns Lin2d from gp ---C++: inline ; Circle(myclass; C : Curve2d from Adaptor2d) returns Circ2d from gp ---C++: inline ; Ellipse(myclass; C : Curve2d from Adaptor2d) returns Elips2d from gp ---C++: inline ; Hyperbola(myclass; C : Curve2d from Adaptor2d) returns Hypr2d from gp ---C++: inline ; Parabola(myclass; C : Curve2d from Adaptor2d) returns Parab2d from gp ---C++: inline ; Degree(myclass; C : Curve2d from Adaptor2d) returns Integer ---C++: inline ; IsRational(myclass; C : Curve2d from Adaptor2d) returns Boolean ---C++: inline ; NbPoles(myclass; C : Curve2d from Adaptor2d) returns Integer ---C++: inline ; NbKnots(myclass; C : Curve2d from Adaptor2d) returns Integer ---C++: inline ; Bezier(myclass; C : Curve2d from Adaptor2d) returns BezierCurve from Geom2d ---C++: inline ; BSpline(myclass; C : Curve2d from Adaptor2d) returns BSplineCurve from Geom2d ---C++: inline ; end Curve2dTool;