blob: 997bac9db626090616a7aec8989f5a878f28a7eb (
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
|
-- File: Adaptor3d_GenHSurface.cdl
-- Created: Mon Feb 14 15:13:04 1994
-- Author: model
-- <model@topsn2>
---Copyright: Matra Datavision 1994
generic class GenHSurface from Adaptor3d
(TheSurface as Surface from Adaptor3d)
inherits HSurface from Adaptor3d
---Purpose: Generic class used to create a surface manipulated
-- with Handle from a surface described by the class Surface.
uses
Surface from Adaptor3d
raises
OutOfRange from Standard,
NoSuchObject from Standard,
DomainError from Standard
is
Create
---Purpose: Creates an empty GenHSurface.
returns mutable GenHSurface from Adaptor3d;
Create(S: TheSurface)
---Purpose: Creates a GenHSurface from a Surface.
returns mutable GenHSurface from Adaptor3d;
Set(me: mutable; S: TheSurface)
---Purpose: Sets the field of the GenHSurface.
is static;
--
-- Access to the surface
--
Surface(me) returns Surface from Adaptor3d;
---Purpose: Returns a reference to the Surface inside the HSurface.
-- This is redefined from HSurface, cannot be inline.
--
---C++: return const &
ChangeSurface(me : mutable)
---Purpose: Returns the surface used to create the GenHSurface.
--
---C++: return &
---C++: inline
returns TheSurface;
fields
mySurf: TheSurface is protected;
end GenHSurface;
|