Commit | Line | Data |
---|---|---|
b311480e | 1 | -- Created on: 1999-03-05 |
2 | -- Created by: Fabrice SERVANT | |
3 | -- Copyright (c) 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 | ||
7fd59977 | 21 | |
22 | ||
23 | ||
24 | class Point from IntPolyh | |
25 | ||
26 | uses | |
27 | ||
28 | Pnt from gp, | |
29 | HSurface from Adaptor3d | |
30 | ||
31 | is | |
32 | ||
33 | ||
34 | Create; | |
35 | ||
36 | Create(xx,yy,zz,uu,vv : Real from Standard); | |
37 | ||
38 | X(me) | |
39 | returns Real from Standard | |
40 | is static; | |
41 | ||
42 | Y(me) | |
43 | returns Real from Standard | |
44 | is static; | |
45 | ||
46 | Z(me) | |
47 | returns Real from Standard | |
48 | is static; | |
49 | ||
50 | U(me) | |
51 | returns Real from Standard | |
52 | is static; | |
53 | ||
54 | V(me) | |
55 | returns Real from Standard | |
56 | is static; | |
57 | ||
58 | PartOfCommon(me) | |
59 | returns Integer from Standard | |
60 | is static; | |
61 | ||
62 | Equal(me: in out; Pt: Point from IntPolyh) | |
63 | ---C++: alias operator = | |
64 | is static; | |
65 | ||
66 | Set(me: in out; v1,v2,v3,v4,v5: Real from Standard; II: Integer from Standard = 1) | |
67 | is static; | |
68 | ||
69 | SetX(me: in out; v: Real from Standard) | |
70 | is static; | |
71 | ||
72 | SetY(me: in out; v: Real from Standard) | |
73 | is static; | |
74 | ||
75 | SetZ(me: in out; v: Real from Standard) | |
76 | is static; | |
77 | ||
78 | SetU(me: in out; v: Real from Standard) | |
79 | is static; | |
80 | ||
81 | SetV(me: in out; v: Real from Standard) | |
82 | is static; | |
83 | ||
84 | SetPartOfCommon(me :in out; ii: Integer from Standard) | |
85 | is static; | |
86 | ||
87 | Middle(me: in out; MySurface: HSurface from Adaptor3d; P1,P2: Point from IntPolyh) | |
88 | is static; | |
89 | ||
90 | Add(me; P1: Point from IntPolyh) | |
91 | ---C++: alias operator + | |
92 | returns Point from IntPolyh | |
93 | is static; | |
94 | ||
95 | Sub(me; P1: Point from IntPolyh) | |
96 | ---C++: alias operator - | |
97 | returns Point from IntPolyh | |
98 | is static; | |
99 | ||
100 | Divide(me; rr: Real from Standard) | |
101 | ---C++: alias operator / | |
102 | returns Point from IntPolyh | |
103 | is static; | |
104 | ||
105 | Multiplication(me; rr: Real from Standard) | |
106 | ---C++: alias operator * | |
107 | returns Point from IntPolyh | |
108 | is static; | |
109 | ||
110 | SquareModulus(me) | |
111 | returns Real from Standard | |
112 | is static; | |
113 | ||
114 | SquareDistance(me; P2: Point from IntPolyh) | |
115 | returns Real from Standard | |
116 | is static; | |
117 | ||
118 | Dot(me; P2: Point from IntPolyh) | |
119 | returns Real from Standard | |
120 | is static; | |
121 | ||
122 | Cross(me:in out; P1,P2: Point from IntPolyh) | |
123 | is static; | |
124 | ||
125 | Dump(me) | |
126 | is static; | |
127 | ||
128 | Dump(me; i: Integer from Standard) | |
55ab6ed6 P |
129 | is static; |
130 | ||
131 | --modified by NIZNHY-PKV Fri Jan 20 12:11:36 2012 f | |
132 | SetDegenerated(me:out; | |
133 | theFlag:Boolean from Standard); | |
134 | ||
135 | Degenerated(me) | |
136 | returns Boolean from Standard; | |
137 | --modified by NIZNHY-PKV Fri Jan 20 12:12:07 2012t | |
138 | ||
7fd59977 | 139 | fields |
7fd59977 | 140 | x,y,z,u,v : Real from Standard; |
55ab6ed6 P |
141 | POC : Integer from Standard; |
142 | --modified by NIZNHY-PKV Fri Jan 20 12:17:39 2012f | |
143 | myDegenerated : Boolean from Standard; | |
144 | --modified by NIZNHY-PKV Fri Jan 20 12:17:41 2012t | |
7fd59977 | 145 | |
146 | end Point from IntPolyh; | |
147 | ||
148 | ||
149 |