0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
[occt.git] / src / DrawTrSurf / DrawTrSurf_Drawable.cdl
1 -- File:        Drawable.cdl
2 -- Created:     Tue Jul 16 08:55:41 1991
3 -- Author:      Christophe MARION
4 --              <cma@sdsun1>
5 ---Copyright:    Matra Datavision 1991
6
7
8
9 deferred class Drawable from DrawTrSurf inherits Drawable3D from Draw
10
11         ---Purpose: this  class adds   to   the Drawable3D methods  to
12         --          display Curves and Curves on Surface.
13         --          
14         --          The discretisation,  number  of points on a Curve,
15         --          is stored in this class.
16
17 uses
18     Display        from Draw,
19     Curve          from Adaptor3d,
20     Curve2d        from Adaptor2d,
21     IsoCurve       from Adaptor3d,
22     IsoType        from GeomAbs
23
24 is
25     Initialize(discret : Integer; deflection : Real = 0.01; DrawMode : Integer = 0);
26         ---Purpose: set the number of points on a curve at creation.
27         
28     DrawCurve2dOn(me;
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
32         
33     DrawCurveOn(me;
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
37         
38     DrawIsoCurveOn(me;
39                 C : in out IsoCurve from Adaptor3d;
40                 T : IsoType from GeomAbs;
41                 P, F, L : Real;
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
45         
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.
49     is deferred;
50
51    
52     SetDiscretisation (me : mutable; Discret : Integer);
53         ---C++: inline
54     
55     GetDiscretisation (me) returns Integer;
56         ---C++: inline
57     
58     SetDeflection (me : mutable; Deflection : Real);
59         ---C++: inline
60     
61     GetDeflection (me) returns Real;
62         ---C++: inline
63
64     SetDrawMode (me : mutable; DrawMode : Integer);
65         ---C++: inline
66     
67     GetDrawMode (me) returns Integer;
68         ---C++: inline
69
70         
71
72     
73 fields
74     myDrawMode   : Integer;
75        --- Purpose : 0 parametre constant, 1 fleche constante
76     myDiscret    : Integer;
77     myDeflection : Real;
78
79 end Drawable;
80