0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / AppParCurves / AppParCurves.hxx
CommitLineData
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>
28class math_Matrix;
29class AppParCurves_MultiPoint;
30class AppParCurves_MultiCurve;
31class AppParCurves_MultiBSpCurve;
32class AppParCurves_ConstraintCouple;
33class AppParCurves_LeastSquare;
34class AppParCurves_ResolConstraint;
35class AppParCurves_Function;
36class AppParCurves_BSpFunction;
37class AppParCurves_Gradient;
38class AppParCurves_Gradient_BFGS;
39class AppParCurves_ParLeastSquare;
40class AppParCurves_ResConstraint;
41class AppParCurves_ParFunction;
42class AppParCurves_BSpGradient;
43class AppParCurves_BSpGradient_BFGS;
44class AppParCurves_BSpParLeastSquare;
45class 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.
52class AppParCurves
53{
54public:
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
70protected:
71
72
73
74
75
76private:
77
78
79
80
81friend class AppParCurves_MultiPoint;
82friend class AppParCurves_MultiCurve;
83friend class AppParCurves_MultiBSpCurve;
84friend class AppParCurves_ConstraintCouple;
85friend class AppParCurves_LeastSquare;
86friend class AppParCurves_ResolConstraint;
87friend class AppParCurves_Function;
88friend class AppParCurves_BSpFunction;
89friend class AppParCurves_Gradient;
90friend class AppParCurves_Gradient_BFGS;
91friend class AppParCurves_ParLeastSquare;
92friend class AppParCurves_ResConstraint;
93friend class AppParCurves_ParFunction;
94friend class AppParCurves_BSpGradient;
95friend class AppParCurves_BSpGradient_BFGS;
96friend class AppParCurves_BSpParLeastSquare;
97friend class AppParCurves_BSpParFunction;
98
99};
100
101
102
103
104
105
106
107#endif // _AppParCurves_HeaderFile