1 -- Created on: 1992-05-21
2 -- Created by: Jean Claude VAUTHIER
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class Curve from DrawTrSurf
22 -- This class defines a drawable curve in 3d space.
28 Interpretor from Draw,
36 Create (C : Curve from Geom; DispOrigin : Boolean from Standard = Standard_True)
38 -- creates a drawable curve from a curve of package Geom.
39 returns Curve from DrawTrSurf;
42 Create (C : Curve from Geom; aColor : Color from Draw; Discret : Integer;
43 Deflection : Real; DrawMode : Integer;
44 DispOrigin : Boolean from Standard = Standard_True;
45 DispCurvRadius : Boolean = Standard_False;
46 RadiusMax : Real = 1.0e3;
47 RatioOfRadius : Real = 0.1)
48 returns Curve from DrawTrSurf;
51 DrawOn (me; dis : in out Display from Draw);
54 GetCurve (me) returns any Curve from Geom
58 SetColor(me : mutable; aColor : Color from Draw)
62 DisplayOrigin(me) returns Boolean
66 DisplayOrigin(me : mutable; V : Boolean)
70 ShowCurvature(me : mutable)
74 ClearCurvature(me : mutable)
78 SetRadiusMax(me : mutable; Radius : Real)
82 SetRadiusRatio(me : mutable; Ratio : Real)
85 Color (me) returns Color from Draw
89 RadiusMax(me) returns Real
93 RadiusRatio(me) returns Real
97 Copy(me) returns Drawable3D from Draw
98 ---Purpose: For variable copy.
101 Dump(me; S : in out OStream)
102 ---Purpose: For variable dump.
105 Whatis(me; I : in out Interpretor from Draw)
107 ---Purpose: For variable whatis command. Set as a result the
108 -- type of the variable.
112 curv : Curve from Geom is protected ;
113 look : Color from Draw is protected ;
114 disporigin : Boolean from Standard is protected ;
115 dispcurvradius : Boolean from Standard is protected ;
116 radiusmax : Real from Standard is protected ;
117 radiusratio : Real from Standard is protected ;