1 -- Created on: 1991-07-16
2 -- Created by: Christophe MARION
3 -- Copyright (c) 1991-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
24 deferred class Drawable from DrawTrSurf inherits Drawable3D from Draw
26 ---Purpose: this class adds to the Drawable3D methods to
27 -- display Curves and Curves on Surface.
29 -- The discretisation, number of points on a Curve,
30 -- is stored in this class.
35 Curve2d from Adaptor2d,
36 IsoCurve from Adaptor3d,
40 Initialize(discret : Integer; deflection : Real = 0.01; DrawMode : Integer = 0);
41 ---Purpose: set the number of points on a curve at creation.
44 C : in out Curve2d from Adaptor2d;
45 D : in out Display from Draw);
46 ---Purpose: Draw a polygon of the curve on the Display
49 C : in out Curve from Adaptor3d;
50 D : in out Display from Draw);
51 ---Purpose: Draw a polygon of the curve on the Display
54 C : in out IsoCurve from Adaptor3d;
55 T : IsoType from GeomAbs;
57 D : in out Display from Draw);
58 ---Purpose: Load C with the specified iso and Draw a polygon
59 -- of the curve on the Display
61 DrawOn(me; dis : in out Display from Draw)
62 ---Purpose: this is defined only to tell C++ not to complain
63 -- about inheriting a pure virtual method.
67 SetDiscretisation (me : mutable; Discret : Integer);
70 GetDiscretisation (me) returns Integer;
73 SetDeflection (me : mutable; Deflection : Real);
76 GetDeflection (me) returns Real;
79 SetDrawMode (me : mutable; DrawMode : Integer);
82 GetDrawMode (me) returns Integer;
90 --- Purpose : 0 parametre constant, 1 fleche constante