blob: 3d005964b5fd1b339778739dc7ad4544ad4cb160 (
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
|
-- File: Draw_Grid.cdl
-- Created: Thu Feb 3 15:29:46 1994
-- Author: Jean Marc LACHAUME
-- <jml@phylox>
---Copyright: Matra Datavision 1994
class Grid from Draw inherits Drawable3D from Draw
uses
Display from Draw
is
Create
---Purpose: Creates a grid.
returns mutable Grid from Draw ;
Steps (me : mutable; StepX, StepY, StepZ : Real from Standard)
---Purpose: Sets the steps along the X, Y & Z axis.
is static ;
StepX (me)
---Purpose: Returns the step along the X axis.
---C++: inline
returns Real from Standard
is static ;
StepY (me)
---Purpose: Returns the step along the Y axis.
---C++: inline
returns Real from Standard
is static ;
StepZ (me)
---Purpose: Returns the step along the Z axis.
---C++: inline
returns Real from Standard
is static ;
IsActive (me)
---Purpose: Returns if the grid is active or not.
---C++: inline
returns Boolean from Standard
is static ;
DrawOn (me; Out : in out Display from Draw)
---Purpose: Displays the grid.
is static ;
fields
myStepX : Real from Standard ;
myStepY : Real from Standard ;
myStepZ : Real from Standard ;
myIsActive : Boolean from Standard ;
end Grid ;
|