7fd59977 |
1 | -- File: BRep_CurveOnSurface.cdl |
2 | -- Created: Tue Jul 6 10:12:44 1993 |
3 | -- Author: Remi LEQUETTE |
4 | -- <rle@phylox> |
5 | ---Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | |
9 | class CurveOnSurface from BRep inherits GCurve from BRep |
10 | |
11 | ---Purpose: Representation of a curve by a curve in the |
12 | -- parametric space of a surface. |
13 | |
14 | uses |
15 | Pnt from gp, |
16 | Pnt2d from gp, |
17 | Box2d from Bnd, |
18 | Curve from Geom2d, |
19 | Surface from Geom, |
20 | Location from TopLoc, |
21 | CurveRepresentation from BRep |
22 | |
23 | is |
24 | |
25 | Create(PC : Curve from Geom2d; |
26 | S : Surface from Geom; |
27 | L : Location from TopLoc) |
28 | returns mutable CurveOnSurface from BRep; |
29 | |
30 | SetUVPoints(me : mutable; P1, P2 : Pnt2d from gp) |
31 | ---C++: inline |
32 | is static; |
33 | |
34 | UVPoints(me; P1, P2 : out Pnt2d from gp) |
35 | ---C++: inline |
36 | is static; |
37 | |
38 | D0(me; U : Real; P : out Pnt from gp); |
39 | ---Purpose: Computes the point at parameter U. |
40 | |
41 | IsCurveOnSurface(me) returns Boolean |
42 | ---Purpose: Returns True. |
43 | is redefined; |
44 | |
45 | IsCurveOnSurface(me; S : Surface from Geom; L : Location from TopLoc) |
46 | returns Boolean |
47 | ---Purpose: A curve in the parametric space of a surface. |
48 | is redefined; |
49 | |
50 | Surface(me) returns any Surface from Geom |
51 | ---C++: return const & |
52 | is redefined; |
53 | |
54 | PCurve(me) returns any Curve from Geom2d |
55 | ---C++: return const & |
56 | is redefined; |
57 | |
58 | PCurve(me : mutable; C : Curve from Geom2d) |
59 | is redefined; |
60 | |
61 | Copy(me) returns mutable CurveRepresentation from BRep is virtual; |
62 | ---Purpose: Return a copy of this representation. |
63 | |
64 | Update(me : mutable) |
65 | ---Purpose: Recomputes any derived data after a modification. |
66 | -- This is called when the range is modified. |
67 | is redefined; |
68 | |
69 | fields |
70 | |
71 | myPCurve : Curve from Geom2d; |
72 | mySurface : Surface from Geom; |
73 | myUV1 : Pnt2d from gp is protected; |
74 | myUV2 : Pnt2d from gp is protected; |
75 | |
76 | end CurveOnSurface; |