blob: 222b26799ff8f3e4bd8601348c91ee2e08a6e88c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
|
-- File: MgtGeom.cdl
-- Created: Fri Mar 5 12:33:04 1993
-- Author: Philippe DAUTRY
-- <fid@phylox>
-- Update: Frederic MAUPAS
-- <fma@pronox>
---Copyright: Matra Datavision 1993
package MgtGeom
---Purpose: This package provides methods to translate
-- transient objects from Geom to persistent objects
-- from PGeom and vice-versa. No track from previous
-- translation is kept.
--
-- Data is not shared:
-- - between transient and persistent objects, or
-- - between two successive translations of the
-- same object.
uses
Geom, PGeom
is
-- Axis1Placement
Translate(PObj: Axis1Placement from PGeom)
returns Axis1Placement from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Axis1Placement from Geom)
returns Axis1Placement from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Axis2Placement
Translate(PObj: Axis2Placement from PGeom)
returns Axis2Placement from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Axis2Placement from Geom)
returns Axis2Placement from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- BSplineCurve
Translate(PObj: BSplineCurve from PGeom)
returns BSplineCurve from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: BSplineCurve from Geom)
returns BSplineCurve from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- BSplineSurface
Translate(PObj: BSplineSurface from PGeom)
returns BSplineSurface from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: BSplineSurface from Geom)
returns BSplineSurface from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- BezierCurve
Translate(PObj: BezierCurve from PGeom)
returns BezierCurve from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: BezierCurve from Geom)
returns BezierCurve from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- BezierSurface
Translate(PObj: BezierSurface from PGeom)
returns BezierSurface from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: BezierSurface from Geom)
returns BezierSurface from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- CartesianPoint
Translate(PObj: CartesianPoint from PGeom)
returns CartesianPoint from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: CartesianPoint from Geom)
returns CartesianPoint from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Circle
Translate(PObj: Circle from PGeom)
returns Circle from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Circle from Geom)
returns Circle from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- ConicalSurface
Translate(PObj: ConicalSurface from PGeom)
returns ConicalSurface from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: ConicalSurface from Geom)
returns ConicalSurface from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- -----
-- Curve
-- -----
Translate(PObj: Curve from PGeom)
returns Curve from Geom
raises NullObject from Standard;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
-- Raises NullObject if the PObj type has no mapping
---Level: Advanced
Translate(TObj: Curve from Geom)
returns Curve from PGeom
raises NullObject from Standard;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
-- Raises NullObject if the TObj type has no mapping
---Level: Advanced
-- CylindricalSurface
Translate(PObj: CylindricalSurface from PGeom)
returns CylindricalSurface from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: CylindricalSurface from Geom)
returns CylindricalSurface from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Direction
Translate(PObj: Direction from PGeom)
returns Direction from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Direction from Geom)
returns Direction from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Ellipse
Translate(PObj: Ellipse from PGeom)
returns Ellipse from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Ellipse from Geom)
returns Ellipse from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Hyperbola
Translate(PObj: Hyperbola from PGeom)
returns Hyperbola from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Hyperbola from Geom)
returns Hyperbola from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Line
Translate(PObj: Line from PGeom)
returns Line from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Line from Geom)
returns Line from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- OffsetCurve
Translate(PObj: OffsetCurve from PGeom)
returns OffsetCurve from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: OffsetCurve from Geom)
returns OffsetCurve from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- OffsetSurface
Translate(PObj: OffsetSurface from PGeom)
returns OffsetSurface from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: OffsetSurface from Geom)
returns OffsetSurface from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Parabola
Translate(PObj: Parabola from PGeom)
returns Parabola from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Parabola from Geom)
returns Parabola from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Plane
Translate(PObj: Plane from PGeom)
returns Plane from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Plane from Geom)
returns Plane from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Point
Translate(PObj: Point from PGeom)
returns Point from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Point from Geom)
returns Point from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- RectangularTrimmedSurface
Translate(PObj: RectangularTrimmedSurface from PGeom)
returns RectangularTrimmedSurface from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: RectangularTrimmedSurface from Geom)
returns RectangularTrimmedSurface from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- SphericalSurface
Translate(PObj: SphericalSurface from PGeom)
returns SphericalSurface from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: SphericalSurface from Geom)
returns SphericalSurface from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- -------
-- Surface
-- -------
Translate(PObj: Surface from PGeom)
returns Surface from Geom
raises NullObject from Standard;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
-- Raises NullObject if the PObj type has no mapping
---Level: Advanced
Translate(TObj: Surface from Geom)
returns Surface from PGeom
raises NullObject from Standard;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
-- Raises NullObject if the TObj type has no mapping
---Level: Advanced
-- SurfaceOfLinearExtrusion
Translate(PObj: SurfaceOfLinearExtrusion from PGeom)
returns SurfaceOfLinearExtrusion from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: SurfaceOfLinearExtrusion from Geom)
returns SurfaceOfLinearExtrusion from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- SurfaceOfRevolution
Translate(PObj: SurfaceOfRevolution from PGeom)
returns SurfaceOfRevolution from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: SurfaceOfRevolution from Geom)
returns SurfaceOfRevolution from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- ToroidalSurface
Translate(PObj: ToroidalSurface from PGeom)
returns ToroidalSurface from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: ToroidalSurface from Geom)
returns ToroidalSurface from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- Transformation
Translate(PObj: Transformation from PGeom)
returns Transformation from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: Transformation from Geom)
returns Transformation from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- TrimmedCurve
Translate(PObj: TrimmedCurve from PGeom)
returns TrimmedCurve from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: TrimmedCurve from Geom)
returns TrimmedCurve from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
-- VectorWithMagnitude
Translate(PObj: VectorWithMagnitude from PGeom)
returns VectorWithMagnitude from Geom;
---Purpose: Translate <PObj> to its Transient equivalent from Geom.
---Level: Advanced
Translate(TObj: VectorWithMagnitude from Geom)
returns VectorWithMagnitude from PGeom;
---Purpose: Translate <TObj> to its Persistent equivalent from PGeom.
---Level: Advanced
end MgtGeom;
|