42cf5bc1 |
1 | // Created on: 1998-02-02 |
2 | // Created by: Philippe MANGIN |
3 | // Copyright (c) 1998-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
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. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _GeomFill_LocFunction_HeaderFile |
18 | #define _GeomFill_LocFunction_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <TColgp_Array1OfVec.hxx> |
25 | #include <gp_Mat.hxx> |
26 | #include <Standard_Boolean.hxx> |
27 | #include <Standard_Real.hxx> |
28 | #include <Standard_Integer.hxx> |
29 | class GeomFill_LocationLaw; |
30 | |
31 | |
32 | |
33 | class GeomFill_LocFunction |
34 | { |
35 | public: |
36 | |
37 | DEFINE_STANDARD_ALLOC |
38 | |
39 | |
40 | Standard_EXPORT GeomFill_LocFunction(const Handle(GeomFill_LocationLaw)& Law); |
41 | |
42 | //! compute the section for v = param |
43 | Standard_EXPORT Standard_Boolean D0 (const Standard_Real Param, const Standard_Real First, const Standard_Real Last); |
44 | |
45 | //! compute the first derivative in v direction of the |
46 | //! section for v = param |
47 | Standard_EXPORT Standard_Boolean D1 (const Standard_Real Param, const Standard_Real First, const Standard_Real Last); |
48 | |
49 | //! compute the second derivative in v direction of the |
50 | //! section for v = param |
51 | Standard_EXPORT Standard_Boolean D2 (const Standard_Real Param, const Standard_Real First, const Standard_Real Last); |
52 | |
53 | Standard_EXPORT void DN (const Standard_Real Param, const Standard_Real First, const Standard_Real Last, const Standard_Integer Order, Standard_Real& Result, Standard_Integer& Ier); |
54 | |
55 | |
56 | |
57 | |
58 | protected: |
59 | |
60 | |
61 | |
62 | |
63 | |
64 | private: |
65 | |
66 | |
67 | |
68 | Handle(GeomFill_LocationLaw) myLaw; |
69 | TColgp_Array1OfVec V; |
70 | TColgp_Array1OfVec DV; |
71 | TColgp_Array1OfVec D2V; |
72 | gp_Mat M; |
73 | gp_Mat DM; |
74 | gp_Mat D2M; |
75 | |
76 | |
77 | }; |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | #endif // _GeomFill_LocFunction_HeaderFile |