b311480e |
1 | -- Created on: 1993-04-06 |
2 | -- Created by: Philippe DAUTRY |
3 | -- Copyright (c) 1993-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 TrimmedCurve from PGeom2d inherits BoundedCurve from PGeom2d |
18 | |
19 | ---Purpose : |
20 | -- Defines a portion of a curve limited by two values of |
21 | -- parameters inside the parametric domain of the curve. |
22 | -- |
23 | ---See Also : TrimmedCurve from Geom2d. |
24 | |
25 | |
26 | uses Curve from PGeom2d |
27 | |
28 | is |
29 | |
30 | |
6e33d3ce |
31 | Create returns TrimmedCurve from PGeom2d; |
7fd59977 |
32 | ---Purpose: Creates a TrimmedCurve with default values. |
33 | ---Level: Advanced |
34 | |
35 | |
36 | Create ( |
37 | aBasisCurve: Curve from PGeom2d; |
38 | aFirstU, aLastU: Real from Standard) |
6e33d3ce |
39 | returns TrimmedCurve from PGeom2d; |
7fd59977 |
40 | ---Purpose : Creates a TrimmedCurve with these field values. |
41 | ---Level: Advanced |
42 | |
43 | |
44 | FirstU(me : mutable; aFirstU: Real from Standard); |
45 | ---Purpose : Set the value of the field firstU with <aFirstU>. |
46 | ---Level: Advanced |
47 | |
48 | |
49 | FirstU(me) returns Real from Standard; |
50 | ---Purpose : Returns the value of the field firstU. |
51 | ---Level: Advanced |
52 | |
53 | |
54 | LastU(me : mutable; aLastU: Real from Standard); |
55 | ---Purpose : Set the value of the field lastU with <aLastU>. |
56 | ---Level: Advanced |
57 | |
58 | |
59 | LastU(me) returns Real from Standard; |
60 | ---Purpose : Returns the value of the field lastU. |
61 | ---Level: Advanced |
62 | |
63 | |
64 | BasisCurve (me: mutable; aBasisCurve: Curve from PGeom2d); |
65 | ---Purpose : Set the value of the field basisCurve with <aBasisCurve>. |
66 | -- This curve can be a trimmed curve. |
67 | ---Level: Advanced |
68 | |
69 | |
70 | BasisCurve (me) returns Curve from PGeom2d; |
71 | ---Purpose : Returns the value of the field basisCurve. |
72 | -- This curve can be a trimmed curve. |
73 | ---Level: Advanced |
74 | |
75 | |
76 | fields |
77 | |
78 | basisCurve : Curve from PGeom2d; |
79 | firstU : Real from Standard; |
80 | lastU : Real from Standard; |
81 | |
82 | end; |