7fd59977 |
1 | -- File: PntOn2S.cdl |
2 | -- Created: Wed May 6 14:08:15 1992 |
3 | -- Author: Jacques GOUSSARD |
4 | -- <jag@sdsun1> |
5 | ---Copyright: Matra Datavision 1992 |
6 | |
7 | |
8 | class PntOn2S from IntSurf |
9 | |
10 | ---Purpose: This class defines the geometric informations |
11 | -- for an intersection point between 2 surfaces : |
12 | -- The coordinates ( Pnt from gp ), and two |
13 | -- parametric coordinates. |
14 | |
15 | |
16 | uses Pnt from gp |
17 | |
18 | is |
19 | |
20 | |
21 | Create |
22 | |
23 | ---Purpose: Empty constructor. |
24 | |
25 | returns PntOn2S from IntSurf; |
26 | |
27 | |
28 | SetValue(me: in out; Pt: Pnt from gp) |
29 | |
30 | ---Purpose: Sets the value of the point in 3d space. |
31 | |
32 | ---C++: inline |
33 | |
34 | is static; |
35 | |
36 | |
37 | SetValue(me: in out; Pt: Pnt from gp; OnFirst: Boolean from Standard; |
38 | U,V: Real from Standard) |
39 | |
40 | ---Purpose: Sets the values of the point in 3d space, and |
41 | -- in the parametric space of one of the surface. |
42 | |
43 | is static; |
44 | |
45 | |
46 | SetValue(me: in out; Pt: Pnt from gp; U1,V1,U2,V2: Real from Standard) |
47 | |
48 | ---Purpose: Sets the values of the point in 3d space, and |
49 | -- in the parametric space of each surface. |
50 | |
51 | ---C++: inline |
52 | |
53 | is static; |
54 | |
55 | |
56 | SetValue(me: in out; OnFirst: Boolean from Standard; |
57 | U,V: Real from Standard) |
58 | |
59 | ---Purpose: Set the values of the point in the parametric |
60 | -- space of one of the surface. |
61 | |
62 | is static; |
63 | |
64 | |
65 | SetValue(me: in out; U1,V1, U2, V2: Real from Standard) |
66 | |
67 | ---Purpose: Set the values of the point in the parametric |
68 | -- space of one of the surface. |
69 | |
70 | ---C++: inline |
71 | |
72 | is static; |
73 | |
74 | |
75 | Value(me) |
76 | |
77 | ---Purpose: Returns the point in 3d space. |
78 | |
79 | returns Pnt from gp |
80 | ---C++: return const& |
81 | ---C++: inline |
82 | |
83 | is static; |
84 | |
85 | |
86 | |
87 | ParametersOnS1(me; U1,V1: out Real from Standard) |
88 | |
89 | ---Purpose: Returns the parameters of the point on the first surface. |
90 | |
91 | ---C++: inline |
92 | |
93 | is static; |
94 | |
95 | |
96 | ParametersOnS2(me; U2,V2: out Real from Standard) |
97 | |
98 | ---Purpose: Returns the parameters of the point on the second surface. |
99 | |
100 | ---C++: inline |
101 | |
102 | is static; |
103 | |
104 | |
105 | Parameters(me; U1,V1,U2,V2: out Real from Standard) |
106 | |
107 | ---Purpose: Returns the parameters of the point on both surfaces. |
108 | |
109 | ---C++: inline |
110 | |
111 | is static; |
112 | |
113 | |
114 | fields |
115 | |
116 | pt : Pnt from gp; |
117 | u1 : Real from Standard; |
118 | v1 : Real from Standard; |
119 | u2 : Real from Standard; |
120 | v2 : Real from Standard; |
121 | |
122 | end PntOn2S; |