1 -- File: DrawTrSurf_Polygon2D.cdl
2 -- Created: Fri Mar 10 10:11:24 1995
3 -- Author: Laurent PAINNOT
5 ---Copyright: Matra Datavision 1995
9 class Polygon2D from DrawTrSurf inherits Drawable2D from Draw
11 ---Purpose: Used to display a 2d polygon.
13 -- Optional display of nodes.
16 uses Polygon2D from Poly,
19 Interpretor from Draw,
23 Create(P: Polygon2D from Poly)
24 returns mutable Polygon2D from DrawTrSurf;
26 Polygon2D(me) returns Polygon2D from Poly;
28 ShowNodes(me: mutable; B: Boolean);
30 ShowNodes(me) returns Boolean;
32 DrawOn(me; dis: in out Display);
34 Copy(me) returns mutable Drawable3D from Draw
36 ---Purpose: For variable copy.
39 Dump(me; S : in out OStream)
41 ---Purpose: For variable dump.
43 Whatis(me; I : in out Interpretor from Draw)
45 ---Purpose: For variable whatis command. Set as a result the
46 -- type of the variable.
51 myPolygon2D: Polygon2D from Poly;