b311480e |
1 | -- Created on: 1993-02-22 |
2 | -- Created by: Philippe DAUTRY |
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 | class BezierCurve from PGeom inherits BoundedCurve from PGeom |
24 | |
25 | ---Purpose : Defines a rational or non rational Bezier curve. |
26 | -- |
27 | ---See Also : BezierCurve from Geom. |
28 | |
29 | uses HArray1OfReal from PColStd, |
30 | HArray1OfPnt from PColgp |
31 | |
32 | is |
33 | |
34 | |
35 | Create returns mutable BezierCurve from PGeom; |
36 | ---Purpose : Creates a non rational Bezier curve with default |
37 | -- values. |
38 | ---Level: Internal |
39 | |
40 | Create(aPoles : HArray1OfPnt; |
41 | aWeights : HArray1OfReal; |
42 | aRational : Boolean from Standard) |
43 | returns mutable BezierCurve from PGeom; |
44 | ---Purpose : Creates a non rational Bezier curve with a set of |
45 | -- poles aCurvePoles and a set of weights aPoleWeight. |
46 | ---Level: Internal |
47 | |
48 | |
49 | Rational (me: mutable; aRational: Boolean from Standard); |
50 | ---Purpose : Set the value of the field rational with <aRational>. |
51 | ---Level: Internal |
52 | |
53 | |
54 | Rational (me) returns Boolean; |
55 | ---Purpose : Returns the value of the field rational. |
56 | ---Level: Internal |
57 | |
58 | |
59 | Poles (me: mutable; aPoles : HArray1OfPnt from PColgp); |
60 | ---Purpose : Set the value of the field poles with <aPoles>. |
61 | ---Level: Internal |
62 | |
63 | |
64 | Poles (me) returns HArray1OfPnt from PColgp; |
65 | ---Purpose : Returns the value of the field poles. |
66 | ---Level: Internal |
67 | |
68 | |
69 | Weights (me: mutable; aWeights : HArray1OfReal from PColStd); |
70 | ---Purpose : Set the value of the field weights. |
71 | ---Level: Internal |
72 | |
73 | |
74 | Weights (me)returns HArray1OfReal from PColStd; |
75 | ---Purpose : Returns the value of the field weights. |
76 | ---Level: Internal |
77 | |
78 | |
79 | fields |
80 | |
81 | rational : Boolean from Standard; |
82 | poles : HArray1OfPnt from PColgp; |
83 | weights : HArray1OfReal from PColStd; |
84 | |
85 | end; |