2 -- Created: Tue Jul 16 08:55:41 1991
3 -- Author: Christophe MARION
5 ---Copyright: Matra Datavision 1991
9 deferred class Drawable from DrawTrSurf inherits Drawable3D from Draw
11 ---Purpose: this class adds to the Drawable3D methods to
12 -- display Curves and Curves on Surface.
14 -- The discretisation, number of points on a Curve,
15 -- is stored in this class.
20 Curve2d from Adaptor2d,
21 IsoCurve from Adaptor3d,
25 Initialize(discret : Integer; deflection : Real = 0.01; DrawMode : Integer = 0);
26 ---Purpose: set the number of points on a curve at creation.
29 C : in out Curve2d from Adaptor2d;
30 D : in out Display from Draw);
31 ---Purpose: Draw a polygon of the curve on the Display
34 C : in out Curve from Adaptor3d;
35 D : in out Display from Draw);
36 ---Purpose: Draw a polygon of the curve on the Display
39 C : in out IsoCurve from Adaptor3d;
40 T : IsoType from GeomAbs;
42 D : in out Display from Draw);
43 ---Purpose: Load C with the specified iso and Draw a polygon
44 -- of the curve on the Display
46 DrawOn(me; dis : in out Display from Draw)
47 ---Purpose: this is defined only to tell C++ not to complain
48 -- about inheriting a pure virtual method.
52 SetDiscretisation (me : mutable; Discret : Integer);
55 GetDiscretisation (me) returns Integer;
58 SetDeflection (me : mutable; Deflection : Real);
61 GetDeflection (me) returns Real;
64 SetDrawMode (me : mutable; DrawMode : Integer);
67 GetDrawMode (me) returns Integer;
75 --- Purpose : 0 parametre constant, 1 fleche constante