0022627: Change OCCT memory management defaults
[occt.git] / src / DrawTrSurf / DrawTrSurf_Surface.cdl
1 -- File:        Surface.cdl
2 -- Created:     Thu May 21 19:22:42 1992
3 -- Author:      Jean Claude VAUTHIER
4 --              <jcv@sdsun4>
5 ---Copyright:    Matra Datavision 1992
6
7
8 class Surface from DrawTrSurf
9      
10 inherits Drawable 
11
12         ---Purpose:  This class defines a drawable surface.
13         -- With this class you can draw a general surface from 
14         -- package Geom.
15
16 uses Surface     from Geom,
17      Display     from Draw,
18      Color       from Draw,
19      Drawable3D  from Draw,
20      Interpretor from Draw 
21
22 is
23
24   Create (S : Surface from Geom)
25         --- Purpose : default drawing mode
26         --  Just the middle isoparametric curves are drawn.
27         --  The boundaries are yellow, the isoparametric curves are blues.
28         --  For the discretisation 50 points are computed in each parametric
29         --  direction.
30      returns mutable Surface from DrawTrSurf;
31
32
33
34   Create (S : Surface from Geom;
35           Nu, Nv : Integer;
36           BoundsColor, IsosColor : Color from Draw;
37           Discret : Integer;
38           Deflection : Real;
39           DrawMode  : Integer)
40      returns mutable Surface from DrawTrSurf;
41
42
43   BoundsColor (me) returns Color from Draw
44         ---C++: inline
45      is static;
46
47
48   ClearIsos (me : mutable) is virtual;
49         --- Purpose : rub out all the isoparametric curves.
50      
51
52   DrawOn (me; dis : in out Display from Draw);
53
54
55   DrawOn (me; dis : in out Display from Draw;
56               Iso : Boolean from Standard)
57        ---Purpose: Iso = True : Draw the isos, the boundaries, the UVMarker.
58        --          Iso = False: Only Draw the boundary and the UVMarker.
59   is static;
60   
61   
62   GetSurface (me) returns any Surface from Geom
63         ---C++: inline
64      is static;
65
66
67   IsosColor (me) returns Color from Draw
68         ---C++: inline
69      is static;
70
71
72   NbIsos (me; Nu, Nb : in out Integer)
73         ---C++: inline
74      is static;
75      
76
77   SetBoundsColor (me : mutable; aColor : Color from Draw)
78         ---C++: inline
79      is static;
80
81
82   SetIsosColor (me : mutable; aColor : Color from Draw)
83         ---C++: inline
84      is static;
85
86
87   ShowIsos (me : mutable; Nu, Nv : Integer) is virtual;
88         --- Purpose : change the number of isoparametric curves to be drawn.
89
90   Copy(me) returns mutable Drawable3D from Draw
91         ---Purpose: For variable copy.
92   is redefined;
93   
94   Dump(me; S : in out OStream)
95         ---Purpose: For variable dump.
96   is redefined;
97   
98   Whatis(me; I : in out Interpretor from Draw)
99         ---Purpose: For variable whatis command.
100   is redefined;
101
102 fields
103
104   surf        : Surface from Geom is protected;
105   boundsLook  : Color from Draw   is protected;
106   isosLook    : Color from Draw   is protected;
107   nbUIsos     : Integer           is protected;
108   nbVIsos     : Integer           is protected;
109
110 end Surface;