1 // Created on: 1993-04-20
2 // Created by: Modelistation
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _HLRBRep_CLPropsATool_HeaderFile
18 #define _HLRBRep_CLPropsATool_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <Standard_Real.hxx>
25 #include <Standard_Integer.hxx>
31 class HLRBRep_CLPropsATool
38 //! Computes the point <P> of parameter <U> on the
39 //! Curve from HLRBRep <C>.
40 static void Value (const HLRBRep_Curve* A, const Standard_Real U, gp_Pnt2d& P);
42 //! Computes the point <P> and first derivative <V1>
43 //! of parameter <U> on the curve <C>.
44 static void D1 (const HLRBRep_Curve* A, const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1);
46 //! Computes the point <P>, the first derivative <V1>
47 //! and second derivative <V2> of parameter <U> on the
49 static void D2 (const HLRBRep_Curve* A, const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
51 //! Computes the point <P>, the first derivative <V1>,
52 //! the second derivative <V2> and third derivative
53 //! <V3> of parameter <U> on the curve <C>.
54 static void D3 (const HLRBRep_Curve* A, const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3);
56 //! returns the order of continuity of the curve <C>.
57 //! returns 1 : first derivative only is computable
58 //! returns 2 : first and second derivative only are
59 //! computable. returns 3 : first, second and third
61 static Standard_Integer Continuity (const HLRBRep_Curve* A);
63 //! returns the first parameter bound of the curve.
64 static Standard_Real FirstParameter (const HLRBRep_Curve* A);
66 //! returns the last parameter bound of the curve.
67 //! FirstParameter must be less than LastParamenter.
68 static Standard_Real LastParameter (const HLRBRep_Curve* A);
88 #include <HLRBRep_CLPropsATool.lxx>
94 #endif // _HLRBRep_CLPropsATool_HeaderFile