Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-04 08:45:21

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 _GeomEvaluator_Curve_HeaderFile
0016 #define _GeomEvaluator_Curve_HeaderFile
0017 
0018 #include <Standard_Transient.hxx>
0019 #include <Standard_Type.hxx>
0020 
0021 class gp_Pnt;
0022 class gp_Vec;
0023 
0024 //! Interface for calculation of values and derivatives for different kinds of curves in 3D.
0025 //! Works both with adaptors and curves.
0026 class GeomEvaluator_Curve : public Standard_Transient
0027 {
0028 public:
0029   GeomEvaluator_Curve() {}
0030 
0031   //! Value of 3D curve
0032   virtual void D0(const Standard_Real theU, gp_Pnt& theValue) const = 0;
0033   //! Value and first derivatives of curve
0034   virtual void D1(const Standard_Real theU, gp_Pnt& theValue, gp_Vec& theD1) const = 0;
0035   //! Value, first and second derivatives of curve
0036   virtual void D2(const Standard_Real theU,
0037                   gp_Pnt&             theValue,
0038                   gp_Vec&             theD1,
0039                   gp_Vec&             theD2) const = 0;
0040   //! Value, first, second and third derivatives of curve
0041   virtual void D3(const Standard_Real theU,
0042                   gp_Pnt&             theValue,
0043                   gp_Vec&             theD1,
0044                   gp_Vec&             theD2,
0045                   gp_Vec&             theD3) const = 0;
0046   //! Calculates N-th derivatives of curve, where N = theDerU. Raises if N < 1
0047   virtual gp_Vec DN(const Standard_Real theU, const Standard_Integer theDerU) const = 0;
0048 
0049   virtual Handle(GeomEvaluator_Curve) ShallowCopy() const = 0;
0050 
0051   DEFINE_STANDARD_RTTI_INLINE(GeomEvaluator_Curve, Standard_Transient)
0052 };
0053 
0054 DEFINE_STANDARD_HANDLE(GeomEvaluator_Curve, Standard_Transient)
0055 
0056 #endif // _GeomEvaluator_Curve_HeaderFile