blob: 772ad82356f50026e3c7b8954c7729da0076672a (
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
|
-- File: Draw_Box.cdl
-- Created: Fri Mar 10 14:18:31 1995
-- Author: Remi LEQUETTE
-- <rle@phobox>
---Copyright: Matra Datavision 1995
class Box from Draw inherits Drawable3D from Draw
---Purpose:
uses Pnt from gp,
Color from Draw,
Display from Draw
is
Create(p1,p2 : Pnt; col : Color)
returns mutable Box;
DrawOn(me; dis : in out Display);
First(me) returns Pnt from gp
---C++: return const&
is static;
First(me : mutable; P : Pnt from gp)
is static;
Last(me) returns Pnt from gp
---C++: return const&
is static;
Last(me : mutable; P : Pnt from gp)
is static;
fields
myFirst : Pnt;
myLast : Pnt;
myColor : Color;
end Box;
|