b311480e |
1 | -- Created on: 1993-12-16 |
2 | -- Created by: Jacques GOUSSARD |
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 | deferred generic class SectionGenerator from AppBlend |
24 | (ThePoint as any) |
25 | |
26 | ---Purpose: |
27 | |
28 | uses Array1OfPnt from TColgp, |
29 | Array1OfVec from TColgp, |
30 | Array1OfPnt2d from TColgp, |
31 | Array1OfVec2d from TColgp, |
32 | Array1OfReal from TColStd, |
33 | Array1OfInteger from TColStd |
34 | |
35 | is |
36 | |
37 | GetShape(me; NbPoles : out Integer from Standard; |
38 | NbKnots : out Integer from Standard; |
39 | Degree : out Integer from Standard; |
40 | NbPoles2d : out Integer from Standard) |
41 | |
42 | is static; |
43 | |
44 | Knots(me; TKnots: out Array1OfReal from TColStd) |
45 | |
46 | is static; |
47 | |
48 | |
49 | Mults(me; TMults: out Array1OfInteger from TColStd) |
50 | |
51 | is static; |
52 | |
53 | |
54 | Section(me; P: ThePoint; Poles : out Array1OfPnt from TColgp; |
55 | DPoles : out Array1OfVec from TColgp; |
56 | Poles2d : out Array1OfPnt2d from TColgp; |
57 | DPoles2d : out Array1OfVec2d from TColgp; |
58 | Weigths : out Array1OfReal from TColStd; |
59 | DWeigths : out Array1OfReal from TColStd) |
60 | |
61 | ---Purpose: Used for the first and last section |
62 | -- The method returns Standard_True if the derivatives |
63 | -- are computed, otherwise it returns Standard_False. |
64 | |
65 | returns Boolean from Standard |
66 | |
67 | is static; |
68 | |
69 | |
70 | Section(me; P: ThePoint; Poles : out Array1OfPnt from TColgp; |
71 | Poles2d : out Array1OfPnt2d from TColgp; |
72 | Weigths : out Array1OfReal from TColStd) |
73 | is static; |
74 | |
75 | |
76 | Parameter(me; P: ThePoint) |
77 | ---Purpose: Returns the parameter of the point P. Used to |
78 | -- impose the parameters in the approximation. |
79 | returns Real from Standard |
80 | is static; |
81 | |
82 | end SectionGenerator; |