b311480e |
1 | -- Created on: 1993-04-22 |
2 | -- Created by: Laurent PAINNOT |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
10 | -- |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | -- |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | |
23 | |
24 | package AppCont |
25 | |
26 | ---Purpose: This package provides the least square algorithms |
27 | -- necessary to approximate a set of continous curves |
28 | -- or a continous surface. |
29 | -- |
30 | -- |
31 | -- It also provides an instantiation of these algorithms |
32 | -- for a class Function, a function f(t). |
33 | -- The user will have to inherit class Function to use it. |
34 | |
35 | |
36 | ---Level : Advanced. |
37 | -- All methods of all classes will be advanced. |
38 | |
39 | |
40 | |
41 | |
42 | uses AppParCurves, Geom, math, StdFail, TCollection, TColStd, gp, |
43 | TColgp, Standard |
44 | |
45 | |
46 | is |
47 | |
48 | |
49 | deferred generic class TheLineTool; --- Template |
50 | ---Purpose: Tool describing a continous MultiLine. |
51 | -- The MultiLine is described by a parameter. |
52 | |
53 | deferred generic class TheSurfTool; --- Template |
54 | ---Purpose: Tool describing a continous Surface. |
55 | -- The Surface is described by a couple of parameters. |
56 | |
57 | |
58 | |
59 | ------------------------------- |
60 | --- Algorithms: |
61 | ------------------------------- |
62 | |
63 | ---Purpose: The two following algorithms are using the same recipe: |
64 | -- Minimizing the difference between the approximate result |
65 | -- Curve or Surface and respectively a continous MultiLine |
66 | -- or a continous surface. |
67 | |
68 | generic class LeastSquare; |
69 | ---Purpose: makes an approximation of a continous Line described by |
70 | -- the tool TheLineTool. |
71 | |
72 | generic class SurfLeastSquare; |
73 | ---Purpose: makes an approximation of a continous Surface |
74 | -- described by the tool TheSurfaceTool. |
75 | |
76 | |
77 | |
78 | ------------------------------------------------------ |
79 | --- Necessary class for approximation a function f(t): |
80 | ------------------------------------------------------ |
81 | |
82 | deferred class Function; |
83 | ---Purpose: This class must be provided by the user to use the |
84 | -- approximation algorithm FittingCurve. |
85 | |
86 | |
87 | class FunctionTool; |
88 | ---Purpose: This class is the inteface between the Function |
89 | -- class and the tool asked by LeastSquare. |
90 | |
91 | |
92 | --------------------------------------------------------- |
93 | --- Necessary class for approximation a 2d function f(t): |
94 | --------------------------------------------------------- |
95 | |
96 | deferred class Function2d; |
97 | ---Purpose: This class must be provided by the user to use the |
98 | -- approximation algorithm FittingCurve2d. |
99 | |
100 | |
101 | class FunctionTool2d; |
102 | ---Purpose: This class is the inteface between the Function2d |
103 | -- class and the tool asked by LeastSquare. |
104 | |
105 | |
106 | |
107 | class FitFunction instantiates LeastSquare from AppCont |
108 | (Function from AppCont, FunctionTool from AppCont); |
109 | |
110 | class FitFunction2d instantiates LeastSquare from AppCont |
111 | (Function2d from AppCont, FunctionTool2d from AppCont); |
112 | |
113 | |
114 | end AppCont; |
115 | |