-- File: PGeom2d_BSplineCurve.cdl -- Created: Tue Apr 6 16:34:20 1993 -- Author: Philippe DAUTRY -- -- Copyright: Matra Datavision 1993 class BSplineCurve from PGeom2d inherits BoundedCurve from PGeom2d ---Purpose : Definition of a B_spline curve (it can be -- periodic, rational and non uniform : NURBS). -- ---See Also : BSplineCurve from Geom2d. uses HArray1OfInteger from PColStd, HArray1OfReal from PColStd, HArray1OfPnt2d from PColgp is Create returns mutable BSplineCurve from PGeom2d; ---Purpose: Creates a BSplineCurve with default values. ---Level: Internal Create ( aRational : Boolean from Standard; aPeriodic : Boolean from Standard; aSpineDegree : Integer from Standard; aPoles : HArray1OfPnt2d from PColgp; aWeights : HArray1OfReal from PColStd; aKnots : HArray1OfReal from PColStd; aMultiplicities : HArray1OfInteger from PColStd) returns mutable BSplineCurve from PGeom2d; ---Purpose: Creates a BSplineCurve with these field values. ---Level: Internal Periodic (me: mutable; aPeriodic: Boolean from Standard); ---Purpose :Set the field periodic with . ---Level: Internal Periodic (me) returns Boolean from Standard; ---Purpose :Returns the value of the field periodic. ---Level: Internal Rational (me: mutable; aRational: Boolean from Standard); ---Purpose :Set the value of the field rational with -- . ---Level: Internal Rational (me) returns Boolean from Standard; ---Purpose :Returns the value of the field rational. ---Level: Internal SpineDegree (me: mutable; aSpineDegree: Integer from Standard); ---Purpose: Set the value of the field spineDegree with . ---Level: Internal SpineDegree (me) returns Integer from Standard; ---Purpose: Returns the value of the field spineDegree. ---Level: Internal Poles (me: mutable; aPoles: HArray1OfPnt2d from PColgp); ---Purpose : Set the value of the field poles with . ---Level: Internal Poles (me) returns HArray1OfPnt2d from PColgp; ---Purpose : Returns the value of the field poles. ---Level: Internal Weights (me: mutable; aWeights : HArray1OfReal from PColStd); ---Purpose : Set the value of the field weights with . ---Level: Internal Weights (me) returns HArray1OfReal from PColStd; ---Purpose : Returns the the value of the field weights. ---Level: Internal Knots (me: mutable; aKnots : HArray1OfReal); ---Purpose : Set the field knots with . -- The multiplicity of the knots are not modified. ---Level: Internal Knots (me) returns HArray1OfReal from PColStd; ---Purpose : returns the value of the field knots. ---Level: Internal Multiplicities (me: mutable; aMultiplicities : HArray1OfInteger); ---Purpose : Set the field multiplicities with . ---Level: Internal Multiplicities (me) returns HArray1OfInteger from PColStd; ---Purpose : returns the value of the field multiplicities. ---Level: Internal fields rational : Boolean from Standard; periodic : Boolean from Standard; spineDegree : Integer from Standard; poles : HArray1OfPnt2d from PColgp; weights : HArray1OfReal from PColStd; knots : HArray1OfReal from PColStd; multiplicities : HArray1OfInteger from PColStd; end;