-- Created on: 1998-02-26 -- Created by: Roman BORISOV -- Copyright (c) 1998-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. private class SnglrFunc from GeomFill inherits Curve from Adaptor3d ---Purpose: to represent function C'(t)^C''(t) uses HCurve from Adaptor3d, Shape from GeomAbs, CurveType from GeomAbs, Array1OfReal from TColStd, Pnt from gp, Vec from gp raises OutOfRange from Standard, DomainError from Standard is Create(HC: HCurve from Adaptor3d) returns SnglrFunc; SetRatio(me:in out; Ratio : Real) is static; FirstParameter(me) returns Real is redefined static; LastParameter(me) returns Real is redefined static; NbIntervals(me; S : Shape from GeomAbs) returns Integer ---Purpose: Returns the number of intervals for continuity -- . May be one if Continuity(me) >= is redefined static; Intervals(me; T : in out Array1OfReal from TColStd; S : Shape from GeomAbs) ---Purpose: Stores in the parameters bounding the intervals -- of continuity . -- -- The array must provide enough room to accomodate -- for the parameters. i.e. T.Length() > NbIntervals() raises OutOfRange from Standard is redefined static; Value(me; U : Real) returns Pnt from gp --- Purpose : Computes the point of parameter U on the curve. is redefined static; IsPeriodic(me) returns Boolean is redefined static; Period(me) returns Real raises DomainError from Standard -- if the curve is not periodic is redefined static; D0 (me; U : Real; P : out Pnt from gp) --- Purpose : Computes the point of parameter U on the curve. is redefined static; D1 (me; U : Real; P : out Pnt from gp ; V : out Vec from gp) --- Purpose : Computes the point of parameter U on the curve with its -- first derivative. raises DomainError from Standard --- Purpose : Raised if the continuity of the current interval -- is not C1. is redefined static; D2 (me; U : Real; P : out Pnt from gp; V1, V2 : out Vec from gp) --- Purpose : -- Returns the point P of parameter U, the first and second -- derivatives V1 and V2. raises DomainError from Standard --- Purpose : Raised if the continuity of the current interval -- is not C2. is redefined static; D3 (me; U : Real; P : out Pnt from gp; V1, V2, V3 : out Vec from gp) --- Purpose : -- Returns the point P of parameter U, the first, the second -- and the third derivative. raises DomainError from Standard --- Purpose : Raised if the continuity of the current interval -- is not C1. is redefined static; DN (me; U : Real; N : Integer) returns Vec from gp --- Purpose : -- The returned vector gives the value of the derivative for the -- order of derivation N. raises OutOfRange from Standard --- Purpose : Raised if N < 1. is redefined static; Resolution(me; R3d : Real) returns Real ---Purpose : Returns the parametric resolution corresponding -- to the real space resolution . is redefined static; GetType(me) returns CurveType from GeomAbs ---Purpose: Returns the type of the curve in the current -- interval : Line, Circle, Ellipse, Hyperbola, -- Parabola, BezierCurve, BSplineCurve, OtherCurve. is redefined static; fields myHCurve: HCurve from Adaptor3d; ratio : Real; end SnglrFunc;