0023948: Wrong intersection between a surface of revolution and a plane.
[occt.git] / src / DrawTrSurf / DrawTrSurf_Curve.cdl
CommitLineData
b311480e 1-- Created on: 1992-05-21
2-- Created by: Jean Claude VAUTHIER
3-- Copyright (c) 1992-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 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
973c2be1 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class Curve from DrawTrSurf
18
19inherits Drawable
20
21 --- Purpose :
22 -- This class defines a drawable curve in 3d space.
23
24uses Curve from Geom,
25 Color from Draw,
26 Display from Draw,
27 Drawable3D from Draw,
28 Interpretor from Draw,
29 OStream
30
31is
32
33
34
35
36 Create (C : Curve from Geom; DispOrigin : Boolean from Standard = Standard_True)
37 --- Purpose :
38 -- creates a drawable curve from a curve of package Geom.
6e33d3ce 39 returns Curve from DrawTrSurf;
7fd59977 40
41
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)
6e33d3ce 48 returns Curve from DrawTrSurf;
7fd59977 49
50
51 DrawOn (me; dis : in out Display from Draw);
52
53
54 GetCurve (me) returns any Curve from Geom
55 ---C++: inline
56 is static;
57
58 SetColor(me : mutable; aColor : Color from Draw)
59 ---C++: inline
60 is static;
61
62 DisplayOrigin(me) returns Boolean
63 ---C++: inline
64 is static;
65
66 DisplayOrigin(me : mutable; V : Boolean)
67 ---C++: inline
68 is static;
69
70 ShowCurvature(me : mutable)
71 ---C++: inline
72 is static;
73
74 ClearCurvature(me : mutable)
75 ---C++: inline
76 is static;
77
78 SetRadiusMax(me : mutable; Radius : Real)
79 ---C++: inline
80 is static;
81
82 SetRadiusRatio(me : mutable; Ratio : Real)
83 ---C++: inline
84 is static;
85 Color (me) returns Color from Draw
86 ---C++: inline
87 is static;
88
89 RadiusMax(me) returns Real
90 ---C++: inline
91 is static;
92
93 RadiusRatio(me) returns Real
94 ---C++: inline
95 is static;
96
6e33d3ce 97 Copy(me) returns Drawable3D from Draw
7fd59977 98 ---Purpose: For variable copy.
99 is redefined;
100
101 Dump(me; S : in out OStream)
102 ---Purpose: For variable dump.
103 is redefined;
104
105 Whatis(me; I : in out Interpretor from Draw)
106 is redefined;
107 ---Purpose: For variable whatis command. Set as a result the
108 -- type of the variable.
109
110fields
111
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 ;
118
119end Curve;