7fd59977 |
1 | #include <StepGeom_BSplineSurfaceWithKnots.ixx> |
2 | |
3 | |
4 | StepGeom_BSplineSurfaceWithKnots::StepGeom_BSplineSurfaceWithKnots () {} |
5 | |
6 | void StepGeom_BSplineSurfaceWithKnots::Init( |
7 | const Handle(TCollection_HAsciiString)& aName, |
8 | const Standard_Integer aUDegree, |
9 | const Standard_Integer aVDegree, |
10 | const Handle(StepGeom_HArray2OfCartesianPoint)& aControlPointsList, |
11 | const StepGeom_BSplineSurfaceForm aSurfaceForm, |
12 | const StepData_Logical aUClosed, |
13 | const StepData_Logical aVClosed, |
14 | const StepData_Logical aSelfIntersect) |
15 | { |
16 | |
17 | StepGeom_BSplineSurface::Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect); |
18 | } |
19 | |
20 | void StepGeom_BSplineSurfaceWithKnots::Init( |
21 | const Handle(TCollection_HAsciiString)& aName, |
22 | const Standard_Integer aUDegree, |
23 | const Standard_Integer aVDegree, |
24 | const Handle(StepGeom_HArray2OfCartesianPoint)& aControlPointsList, |
25 | const StepGeom_BSplineSurfaceForm aSurfaceForm, |
26 | const StepData_Logical aUClosed, |
27 | const StepData_Logical aVClosed, |
28 | const StepData_Logical aSelfIntersect, |
29 | const Handle(TColStd_HArray1OfInteger)& aUMultiplicities, |
30 | const Handle(TColStd_HArray1OfInteger)& aVMultiplicities, |
31 | const Handle(TColStd_HArray1OfReal)& aUKnots, |
32 | const Handle(TColStd_HArray1OfReal)& aVKnots, |
33 | const StepGeom_KnotType aKnotSpec) |
34 | { |
35 | // --- classe own fields --- |
36 | uMultiplicities = aUMultiplicities; |
37 | vMultiplicities = aVMultiplicities; |
38 | uKnots = aUKnots; |
39 | vKnots = aVKnots; |
40 | knotSpec = aKnotSpec; |
41 | // --- classe inherited fields --- |
42 | StepGeom_BSplineSurface::Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect); |
43 | } |
44 | |
45 | |
46 | void StepGeom_BSplineSurfaceWithKnots::SetUMultiplicities(const Handle(TColStd_HArray1OfInteger)& aUMultiplicities) |
47 | { |
48 | uMultiplicities = aUMultiplicities; |
49 | } |
50 | |
51 | Handle(TColStd_HArray1OfInteger) StepGeom_BSplineSurfaceWithKnots::UMultiplicities() const |
52 | { |
53 | return uMultiplicities; |
54 | } |
55 | |
56 | Standard_Integer StepGeom_BSplineSurfaceWithKnots::UMultiplicitiesValue(const Standard_Integer num) const |
57 | { |
58 | return uMultiplicities->Value(num); |
59 | } |
60 | |
61 | Standard_Integer StepGeom_BSplineSurfaceWithKnots::NbUMultiplicities () const |
62 | { |
63 | return uMultiplicities->Length(); |
64 | } |
65 | |
66 | void StepGeom_BSplineSurfaceWithKnots::SetVMultiplicities(const Handle(TColStd_HArray1OfInteger)& aVMultiplicities) |
67 | { |
68 | vMultiplicities = aVMultiplicities; |
69 | } |
70 | |
71 | Handle(TColStd_HArray1OfInteger) StepGeom_BSplineSurfaceWithKnots::VMultiplicities() const |
72 | { |
73 | return vMultiplicities; |
74 | } |
75 | |
76 | Standard_Integer StepGeom_BSplineSurfaceWithKnots::VMultiplicitiesValue(const Standard_Integer num) const |
77 | { |
78 | return vMultiplicities->Value(num); |
79 | } |
80 | |
81 | Standard_Integer StepGeom_BSplineSurfaceWithKnots::NbVMultiplicities () const |
82 | { |
83 | return vMultiplicities->Length(); |
84 | } |
85 | |
86 | void StepGeom_BSplineSurfaceWithKnots::SetUKnots(const Handle(TColStd_HArray1OfReal)& aUKnots) |
87 | { |
88 | uKnots = aUKnots; |
89 | } |
90 | |
91 | Handle(TColStd_HArray1OfReal) StepGeom_BSplineSurfaceWithKnots::UKnots() const |
92 | { |
93 | return uKnots; |
94 | } |
95 | |
96 | Standard_Real StepGeom_BSplineSurfaceWithKnots::UKnotsValue(const Standard_Integer num) const |
97 | { |
98 | return uKnots->Value(num); |
99 | } |
100 | |
101 | Standard_Integer StepGeom_BSplineSurfaceWithKnots::NbUKnots () const |
102 | { |
103 | return uKnots->Length(); |
104 | } |
105 | |
106 | void StepGeom_BSplineSurfaceWithKnots::SetVKnots(const Handle(TColStd_HArray1OfReal)& aVKnots) |
107 | { |
108 | vKnots = aVKnots; |
109 | } |
110 | |
111 | Handle(TColStd_HArray1OfReal) StepGeom_BSplineSurfaceWithKnots::VKnots() const |
112 | { |
113 | return vKnots; |
114 | } |
115 | |
116 | Standard_Real StepGeom_BSplineSurfaceWithKnots::VKnotsValue(const Standard_Integer num) const |
117 | { |
118 | return vKnots->Value(num); |
119 | } |
120 | |
121 | Standard_Integer StepGeom_BSplineSurfaceWithKnots::NbVKnots () const |
122 | { |
123 | return vKnots->Length(); |
124 | } |
125 | |
126 | void StepGeom_BSplineSurfaceWithKnots::SetKnotSpec(const StepGeom_KnotType aKnotSpec) |
127 | { |
128 | knotSpec = aKnotSpec; |
129 | } |
130 | |
131 | StepGeom_KnotType StepGeom_BSplineSurfaceWithKnots::KnotSpec() const |
132 | { |
133 | return knotSpec; |
134 | } |