b311480e |
1 | // Created on: 1993-03-03 |
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 | #include <PGeom_BezierCurve.ixx> |
24 | |
25 | //======================================================================= |
26 | //function : PGeom_BezierCurve |
27 | //purpose : |
28 | //======================================================================= |
29 | |
30 | PGeom_BezierCurve::PGeom_BezierCurve() |
31 | {} |
32 | |
33 | |
34 | //======================================================================= |
35 | //function : PGeom_BezierCurve |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | PGeom_BezierCurve::PGeom_BezierCurve |
40 | (const Handle(PColgp_HArray1OfPnt)& aPoles, |
41 | const Handle(PColStd_HArray1OfReal)& aWeights, |
42 | const Standard_Boolean aRational) : |
43 | rational(aRational), |
44 | poles(aPoles), |
45 | weights(aWeights) |
46 | {} |
47 | |
48 | |
49 | //======================================================================= |
50 | //function : Rational |
51 | //purpose : |
52 | //======================================================================= |
53 | |
54 | void PGeom_BezierCurve::Rational(const Standard_Boolean aRational) |
55 | { rational = aRational; } |
56 | |
57 | |
58 | //======================================================================= |
59 | //function : Rational |
60 | //purpose : |
61 | //======================================================================= |
62 | |
63 | Standard_Boolean PGeom_BezierCurve::Rational() const |
64 | { return rational; } |
65 | |
66 | |
67 | //======================================================================= |
68 | //function : Poles |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | void PGeom_BezierCurve::Poles |
73 | (const Handle(PColgp_HArray1OfPnt)& aPoles) |
74 | { poles = aPoles; } |
75 | |
76 | |
77 | //======================================================================= |
78 | //function : Poles |
79 | //purpose : |
80 | //======================================================================= |
81 | |
82 | Handle(PColgp_HArray1OfPnt) PGeom_BezierCurve::Poles() const |
83 | { return poles; } |
84 | |
85 | |
86 | //======================================================================= |
87 | //function : Weights |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | void PGeom_BezierCurve::Weights |
92 | (const Handle(PColStd_HArray1OfReal)& aWeights) |
93 | { weights = aWeights; } |
94 | |
95 | |
96 | //======================================================================= |
97 | //function : Weights |
98 | //purpose : |
99 | //======================================================================= |
100 | |
101 | Handle(PColStd_HArray1OfReal) |
102 | PGeom_BezierCurve::Weights() const |
103 | { return weights; } |