blob: 645dc6cefc0c3ce4870a5bdeb28f2bc120503032 (
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
|
-- File: Drawable.cdl
-- Created: Tue Jul 16 08:55:41 1991
-- Author: Christophe MARION
-- <cma@sdsun1>
---Copyright: Matra Datavision 1991
deferred class Drawable from DrawTrSurf inherits Drawable3D from Draw
---Purpose: this class adds to the Drawable3D methods to
-- display Curves and Curves on Surface.
--
-- The discretisation, number of points on a Curve,
-- is stored in this class.
uses
Display from Draw,
Curve from Adaptor3d,
Curve2d from Adaptor2d,
IsoCurve from Adaptor3d,
IsoType from GeomAbs
is
Initialize(discret : Integer; deflection : Real = 0.01; DrawMode : Integer = 0);
---Purpose: set the number of points on a curve at creation.
DrawCurve2dOn(me;
C : in out Curve2d from Adaptor2d;
D : in out Display from Draw);
---Purpose: Draw a polygon of the curve on the Display
DrawCurveOn(me;
C : in out Curve from Adaptor3d;
D : in out Display from Draw);
---Purpose: Draw a polygon of the curve on the Display
DrawIsoCurveOn(me;
C : in out IsoCurve from Adaptor3d;
T : IsoType from GeomAbs;
P, F, L : Real;
D : in out Display from Draw);
---Purpose: Load C with the specified iso and Draw a polygon
-- of the curve on the Display
DrawOn(me; dis : in out Display from Draw)
---Purpose: this is defined only to tell C++ not to complain
-- about inheriting a pure virtual method.
is deferred;
SetDiscretisation (me : mutable; Discret : Integer);
---C++: inline
GetDiscretisation (me) returns Integer;
---C++: inline
SetDeflection (me : mutable; Deflection : Real);
---C++: inline
GetDeflection (me) returns Real;
---C++: inline
SetDrawMode (me : mutable; DrawMode : Integer);
---C++: inline
GetDrawMode (me) returns Integer;
---C++: inline
fields
myDrawMode : Integer;
--- Purpose : 0 parametre constant, 1 fleche constante
myDiscret : Integer;
myDeflection : Real;
end Drawable;
|