Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:34

0001 // Created on: 2015-09-21
0002 // Copyright (c) 2015 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #ifndef _Geom2dEvaluator_Curve_HeaderFile
0016 #define _Geom2dEvaluator_Curve_HeaderFile
0017 
0018 #include <Standard_Transient.hxx>
0019 #include <Standard_Type.hxx>
0020 
0021 class gp_Pnt2d;
0022 class gp_Vec2d;
0023 
0024 //! Interface for calculation of values and derivatives for different kinds of curves in 2D.
0025 //! Works both with adaptors and curves.
0026 class Geom2dEvaluator_Curve : public Standard_Transient
0027 {
0028 public:
0029   Geom2dEvaluator_Curve() {}
0030 
0031   //! Value of 2D curve
0032   virtual void D0(const Standard_Real theU,
0033                   gp_Pnt2d& theValue) const = 0;
0034   //! Value and first derivatives of curve
0035   virtual void D1(const Standard_Real theU,
0036                   gp_Pnt2d& theValue, gp_Vec2d& theD1) const = 0;
0037   //! Value, first and second derivatives of curve
0038   virtual void D2(const Standard_Real theU,
0039                   gp_Pnt2d& theValue, gp_Vec2d& theD1, gp_Vec2d& theD2) const = 0;
0040   //! Value, first, second and third derivatives of curve
0041   virtual void D3(const Standard_Real theU,
0042                   gp_Pnt2d& theValue, gp_Vec2d& theD1, gp_Vec2d& theD2, gp_Vec2d& theD3) const = 0;
0043   //! Calculates N-th derivatives of curve, where N = theDerU. Raises if N < 1
0044   virtual gp_Vec2d DN(const Standard_Real theU,
0045                       const Standard_Integer theDerU) const = 0;
0046 
0047   virtual Handle(Geom2dEvaluator_Curve) ShallowCopy() const = 0;
0048 
0049   DEFINE_STANDARD_RTTI_INLINE(Geom2dEvaluator_Curve,Standard_Transient)
0050 };
0051 
0052 DEFINE_STANDARD_HANDLE(Geom2dEvaluator_Curve, Standard_Transient)
0053 
0054 
0055 #endif // _Geom2dEvaluator_Curve_HeaderFile