Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-17 08:17:26

0001 // Created on: 1998-02-02
0002 // Created by: Philippe MANGIN
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _GeomFill_LocFunction_HeaderFile
0018 #define _GeomFill_LocFunction_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TColgp_Array1OfVec.hxx>
0025 #include <gp_Mat.hxx>
0026 #include <Standard_Integer.hxx>
0027 class GeomFill_LocationLaw;
0028 
0029 class GeomFill_LocFunction
0030 {
0031 public:
0032   DEFINE_STANDARD_ALLOC
0033 
0034   Standard_EXPORT GeomFill_LocFunction(const Handle(GeomFill_LocationLaw)& Law);
0035 
0036   //! compute the section for v = param
0037   Standard_EXPORT Standard_Boolean D0(const Standard_Real Param,
0038                                       const Standard_Real First,
0039                                       const Standard_Real Last);
0040 
0041   //! compute the first  derivative in v direction  of the
0042   //! section for v =  param
0043   Standard_EXPORT Standard_Boolean D1(const Standard_Real Param,
0044                                       const Standard_Real First,
0045                                       const Standard_Real Last);
0046 
0047   //! compute the second derivative  in v direction of the
0048   //! section  for v = param
0049   Standard_EXPORT Standard_Boolean D2(const Standard_Real Param,
0050                                       const Standard_Real First,
0051                                       const Standard_Real Last);
0052 
0053   Standard_EXPORT void DN(const Standard_Real    Param,
0054                           const Standard_Real    First,
0055                           const Standard_Real    Last,
0056                           const Standard_Integer Order,
0057                           Standard_Real&         Result,
0058                           Standard_Integer&      Ier);
0059 
0060 protected:
0061 private:
0062   Handle(GeomFill_LocationLaw) myLaw;
0063   TColgp_Array1OfVec           V;
0064   TColgp_Array1OfVec           DV;
0065   TColgp_Array1OfVec           D2V;
0066   gp_Mat                       M;
0067   gp_Mat                       DM;
0068   gp_Mat                       D2M;
0069 };
0070 
0071 #endif // _GeomFill_LocFunction_HeaderFile