b311480e |
1 | -- Created on: 1995-12-01 |
2 | -- Created by: EXPRESS->CDL V0.2 Translator |
3 | -- Copyright (c) 1995-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class BSplineSurface from StepGeom |
18 | |
19 | inherits BoundedSurface from StepGeom |
20 | |
21 | |
22 | -- N.B : EXPRESS Complexe SUBTYPE Declaration : |
23 | |
24 | -- ANDOR ( ONEOF ( b_spline_surface_with_knots uniform_surface quasi_uniform_surface bezier_surface ) rational_b_spline_surface ) |
25 | |
26 | uses |
27 | |
28 | Integer from Standard, |
29 | HArray2OfCartesianPoint from StepGeom, |
30 | BSplineSurfaceForm from StepGeom, |
31 | Logical from StepData, |
32 | CartesianPoint from StepGeom, |
33 | HAsciiString from TCollection |
34 | is |
35 | |
6e33d3ce |
36 | Create returns BSplineSurface; |
7fd59977 |
37 | ---Purpose: Returns a BSplineSurface |
38 | |
39 | |
40 | Init (me : mutable; |
6e33d3ce |
41 | aName : HAsciiString from TCollection) is redefined; |
7fd59977 |
42 | |
43 | Init (me : mutable; |
6e33d3ce |
44 | aName : HAsciiString from TCollection; |
7fd59977 |
45 | aUDegree : Integer from Standard; |
46 | aVDegree : Integer from Standard; |
6e33d3ce |
47 | aControlPointsList : HArray2OfCartesianPoint from StepGeom; |
7fd59977 |
48 | aSurfaceForm : BSplineSurfaceForm from StepGeom; |
49 | aUClosed : Logical from StepData; |
50 | aVClosed : Logical from StepData; |
51 | aSelfIntersect : Logical from StepData) is virtual; |
52 | |
53 | -- Specific Methods for Field Data Access -- |
54 | |
55 | SetUDegree(me : mutable; aUDegree : Integer); |
56 | UDegree (me) returns Integer; |
57 | SetVDegree(me : mutable; aVDegree : Integer); |
58 | VDegree (me) returns Integer; |
6e33d3ce |
59 | SetControlPointsList(me : mutable; aControlPointsList : HArray2OfCartesianPoint); |
60 | ControlPointsList (me) returns HArray2OfCartesianPoint; |
61 | ControlPointsListValue (me; num1 : Integer; num2 : Integer) returns CartesianPoint; |
7fd59977 |
62 | NbControlPointsListI (me) returns Integer; |
63 | NbControlPointsListJ (me) returns Integer; |
64 | SetSurfaceForm(me : mutable; aSurfaceForm : BSplineSurfaceForm); |
65 | SurfaceForm (me) returns BSplineSurfaceForm; |
66 | SetUClosed(me : mutable; aUClosed : Logical); |
67 | UClosed (me) returns Logical; |
68 | SetVClosed(me : mutable; aVClosed : Logical); |
69 | VClosed (me) returns Logical; |
70 | SetSelfIntersect(me : mutable; aSelfIntersect : Logical); |
71 | SelfIntersect (me) returns Logical; |
72 | |
73 | fields |
74 | |
75 | uDegree : Integer from Standard; |
76 | vDegree : Integer from Standard; |
77 | controlPointsList : HArray2OfCartesianPoint from StepGeom; |
78 | surfaceForm : BSplineSurfaceForm from StepGeom; -- an Enumeration |
79 | uClosed : Logical from StepData; |
80 | vClosed : Logical from StepData; |
81 | selfIntersect : Logical from StepData; |
82 | |
83 | end BSplineSurface; |