1 -- File: Extrema_Curve2dTool.cdl
2 -- Created: Tue Jul 18 14:54:37 1995
3 -- Author: Modelistation
5 ---Copyright: Matra Datavision 1995
8 class Curve2dTool from Extrema
11 Curve2d from Adaptor2d,
12 Array1OfReal from TColStd,
14 CurveType from GeomAbs,
22 BezierCurve from Geom2d,
23 BSplineCurve from Geom2d,
24 HCurve2d from Adaptor2d
28 FirstParameter(myclass; C : Curve2d from Adaptor2d) returns Real
32 LastParameter(myclass; C : Curve2d from Adaptor2d) returns Real
36 Continuity(myclass; C : Curve2d from Adaptor2d) returns Shape from GeomAbs
40 NbIntervals(myclass; C : Curve2d from Adaptor2d; S : Shape from GeomAbs) returns Integer
41 ---Purpose: If necessary, breaks the curve in intervals of
42 -- continuity <S>. And returns the number of
47 Intervals(myclass; C : Curve2d from Adaptor2d;
48 T : in out Array1OfReal from TColStd;
49 S : Shape from GeomAbs);
50 ---Purpose: Stores in <T> the parameters bounding the intervals
55 IsClosed(myclass; C : Curve2d from Adaptor2d) returns Boolean
59 IsPeriodic(myclass; C : Curve2d from Adaptor2d) returns Boolean
63 Period(myclass; C : Curve2d from Adaptor2d) returns Real
67 Value(myclass; C : Curve2d from Adaptor2d; U : Real) returns Pnt2d from gp
68 --- Purpose : Computes the point of parameter U on the curve.
72 D0 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp)
73 --- Purpose : Computes the point of parameter U on the curve.
77 D1 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp ; V : out Vec2d from gp)
78 --- Purpose : Computes the point of parameter U on the curve with its
83 D2 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp; V1, V2 : out Vec2d from gp)
85 -- Returns the point P of parameter U, the first and second
86 -- derivatives V1 and V2.
90 D3 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp; V1, V2, V3 : out Vec2d from gp)
92 -- Returns the point P of parameter U, the first, the second
93 -- and the third derivative.
97 DN (myclass; C : Curve2d from Adaptor2d; U : Real; N : Integer) returns Vec2d from gp
99 -- The returned vector gives the value of the derivative for the
100 -- order of derivation N.
104 Resolution(myclass; C : Curve2d from Adaptor2d ; R3d : Real) returns Real
105 ---Purpose : Returns the parametric resolution corresponding
106 -- to the real space resolution <R3d>.
110 GetType(myclass; C : Curve2d from Adaptor2d) returns CurveType from GeomAbs
111 ---Purpose: Returns the type of the curve in the current
112 -- interval : Line, Circle, Ellipse, Hyperbola,
113 -- Parabola, BezierCurve, BSplineCurve, OtherCurve.
118 Line(myclass; C : Curve2d from Adaptor2d) returns Lin2d from gp
122 Circle(myclass; C : Curve2d from Adaptor2d) returns Circ2d from gp
126 Ellipse(myclass; C : Curve2d from Adaptor2d) returns Elips2d from gp
130 Hyperbola(myclass; C : Curve2d from Adaptor2d) returns Hypr2d from gp
134 Parabola(myclass; C : Curve2d from Adaptor2d) returns Parab2d from gp
138 Degree(myclass; C : Curve2d from Adaptor2d) returns Integer
142 IsRational(myclass; C : Curve2d from Adaptor2d) returns Boolean
146 NbPoles(myclass; C : Curve2d from Adaptor2d) returns Integer
150 NbKnots(myclass; C : Curve2d from Adaptor2d) returns Integer
154 Bezier(myclass; C : Curve2d from Adaptor2d) returns BezierCurve from Geom2d
158 BSpline(myclass; C : Curve2d from Adaptor2d) returns BSplineCurve from Geom2d