42cf5bc1 |
1 | // Created on: 1991-04-11 |
2 | // Created by: Laurent PAINNOT |
3 | // Copyright (c) 1991-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 _AppParCurves_HeaderFile |
18 | #define _AppParCurves_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Integer.hxx> |
25 | #include <math_Vector.hxx> |
26 | #include <Standard_Real.hxx> |
27 | #include <math_IntegerVector.hxx> |
28 | class math_Matrix; |
29 | class AppParCurves_MultiPoint; |
30 | class AppParCurves_MultiCurve; |
31 | class AppParCurves_MultiBSpCurve; |
32 | class AppParCurves_ConstraintCouple; |
33 | class AppParCurves_LeastSquare; |
34 | class AppParCurves_ResolConstraint; |
35 | class AppParCurves_Function; |
36 | class AppParCurves_BSpFunction; |
37 | class AppParCurves_Gradient; |
38 | class AppParCurves_Gradient_BFGS; |
39 | class AppParCurves_ParLeastSquare; |
40 | class AppParCurves_ResConstraint; |
41 | class AppParCurves_ParFunction; |
42 | class AppParCurves_BSpGradient; |
43 | class AppParCurves_BSpGradient_BFGS; |
44 | class AppParCurves_BSpParLeastSquare; |
45 | class AppParCurves_BSpParFunction; |
46 | |
47 | |
48 | //! Parallel Approximation in n curves. |
49 | //! This package gives all the algorithms used to approximate a MultiLine |
50 | //! described by the tool MLineTool. |
51 | //! The result of the approximation will be a MultiCurve. |
52 | class AppParCurves |
53 | { |
54 | public: |
55 | |
56 | DEFINE_STANDARD_ALLOC |
57 | |
58 | |
59 | Standard_EXPORT static void BernsteinMatrix (const Standard_Integer NbPoles, const math_Vector& U, math_Matrix& A); |
60 | |
61 | Standard_EXPORT static void Bernstein (const Standard_Integer NbPoles, const math_Vector& U, math_Matrix& A, math_Matrix& DA); |
62 | |
63 | Standard_EXPORT static void SecondDerivativeBernstein (const Standard_Real U, math_Vector& DDA); |
64 | |
65 | Standard_EXPORT static void SplineFunction (const Standard_Integer NbPoles, const Standard_Integer Degree, const math_Vector& Parameters, const math_Vector& FlatKnots, math_Matrix& A, math_Matrix& DA, math_IntegerVector& Index); |
66 | |
67 | |
68 | |
69 | |
70 | protected: |
71 | |
72 | |
73 | |
74 | |
75 | |
76 | private: |
77 | |
78 | |
79 | |
80 | |
81 | friend class AppParCurves_MultiPoint; |
82 | friend class AppParCurves_MultiCurve; |
83 | friend class AppParCurves_MultiBSpCurve; |
84 | friend class AppParCurves_ConstraintCouple; |
85 | friend class AppParCurves_LeastSquare; |
86 | friend class AppParCurves_ResolConstraint; |
87 | friend class AppParCurves_Function; |
88 | friend class AppParCurves_BSpFunction; |
89 | friend class AppParCurves_Gradient; |
90 | friend class AppParCurves_Gradient_BFGS; |
91 | friend class AppParCurves_ParLeastSquare; |
92 | friend class AppParCurves_ResConstraint; |
93 | friend class AppParCurves_ParFunction; |
94 | friend class AppParCurves_BSpGradient; |
95 | friend class AppParCurves_BSpGradient_BFGS; |
96 | friend class AppParCurves_BSpParLeastSquare; |
97 | friend class AppParCurves_BSpParFunction; |
98 | |
99 | }; |
100 | |
101 | |
102 | |
103 | |
104 | |
105 | |
106 | |
107 | #endif // _AppParCurves_HeaderFile |