-- Created on: 1992-03-27 -- Created by: Laurent BUCHARD -- Copyright (c) 1992-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. deferred generic class ParTool from IntImpParGen (ParCurve as any) ---Purpose: Template class for a tool on a parametrised curve. uses Pnt2d from gp, Vec2d from gp, Lin2d from gp is Value (myclass; C: ParCurve; U: Real from Standard) ---Purpose: Returns the point at parameter U on the Curve C. returns Pnt2d from gp; D1 (myclass; C:ParCurve; U:Real from Standard ; P: out Pnt2d; T: out Vec2d); ---Purpose: Computes the Point and the First derivative of -- the parametric curve C at parameter U. D2 (myclass; C:ParCurve; U:Real from Standard ; P: out Pnt2d; T,N: out Vec2d); ---Purpose: Computes the Point, the First and the Second derivative of -- the parametric curve C at parameter U. EpsX (myclass; C: ParCurve) ---Purpose: Returns the valuec of the parametric tolerance -- on the curve C. returns Real from Standard; NbSamples(myclass; C: ParCurve) ---Purpose: NbSamples is the number of sample point used to -- polygonise the parametric curve on its domain. returns Integer from Standard; end ParTool;