0023024: Update headers of OCCT files
[occt.git] / src / BRep / BRep_CurveOnSurface.cdl
1 -- Created on: 1993-07-06
2 -- Created by: Remi LEQUETTE
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
21
22
23
24 class CurveOnSurface from BRep inherits GCurve from BRep
25
26         ---Purpose: Representation  of a  curve   by a   curve  in the
27         --          parametric space of a surface.
28
29 uses
30     Pnt                 from gp,
31     Pnt2d               from gp,
32     Box2d               from Bnd,
33     Curve               from Geom2d,
34     Surface             from Geom,
35     Location            from TopLoc,
36     CurveRepresentation from BRep
37
38 is
39
40     Create(PC : Curve    from Geom2d; 
41            S  : Surface  from Geom; 
42            L  : Location from  TopLoc)
43     returns mutable CurveOnSurface from BRep;
44
45     SetUVPoints(me : mutable; P1, P2 : Pnt2d from gp)
46         ---C++: inline
47     is static;
48
49     UVPoints(me; P1, P2 : out Pnt2d from gp)
50         ---C++: inline
51     is static;
52     
53     D0(me; U : Real; P : out Pnt from gp);
54         ---Purpose: Computes the point at parameter U.
55
56     IsCurveOnSurface(me) returns Boolean
57         ---Purpose: Returns True.
58     is redefined;
59     
60     IsCurveOnSurface(me; S : Surface from Geom; L : Location from TopLoc) 
61     returns Boolean
62         ---Purpose: A curve in the parametric space of a surface.
63     is redefined;
64     
65     Surface(me) returns any Surface from Geom
66         ---C++: return const &
67     is redefined;
68
69     PCurve(me) returns any Curve from Geom2d
70         ---C++: return const &
71     is redefined;
72
73     PCurve(me : mutable; C : Curve from Geom2d)
74     is redefined;
75
76     Copy(me) returns mutable CurveRepresentation from BRep is virtual;
77         ---Purpose: Return a copy of this representation.
78
79     Update(me : mutable)
80         ---Purpose: Recomputes any derived data after a modification.
81         --          This is called when the range is modified.
82     is redefined;
83
84 fields
85     
86     myPCurve      : Curve from Geom2d;
87     mySurface     : Surface from Geom;
88     myUV1         : Pnt2d from gp  is protected;
89     myUV2         : Pnt2d from gp  is protected;
90
91 end CurveOnSurface;