0024096: Eliminate compiler warning C4505 in MSVC++ with warning level 4
[occt.git] / src / DrawTrSurf / DrawTrSurf_Curve2d.cdl
CommitLineData
b311480e 1-- Created on: 1992-05-22
2-- Created by: Jean Claude VAUTHIER
3-- Copyright (c) 1992-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
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.
10--
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.
13--
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.
20
7fd59977 21-- Modified PMN CurvatureRadius added
7fd59977 22
23
24
25class Curve2d from DrawTrSurf
26
27inherits Drawable
28
29 --- Purpose : This class defines a drawable curve in 2d space.
30 -- The curve is drawned in the plane XOY.
31
32uses Curve from Geom2d,
33 Color from Draw,
34 Display from Draw,
35 Drawable3D from Draw,
36 Interpretor from Draw,
37 OStream
38
39
40is
41
42
43
44
45
46 Create (C : Curve from Geom2d;
47 DispOrigin : Boolean from Standard = Standard_True)
48 --- Purpose :
49 -- creates a drawable curve from a curve of package Geom2d.
50 returns mutable Curve2d from DrawTrSurf;
51
52
53 Create (C : Curve from Geom2d; aColor : Color from Draw; Discret :Integer;
54 DispOrigin : Boolean from Standard = Standard_True;
55 DispCurvRadius : Boolean = Standard_False;
56 RadiusMax : Real = 1.0e3;
57 RatioOfRadius : Real = 0.1)
58 returns mutable Curve2d from DrawTrSurf;
59
60
61 DrawOn (me; dis : in out Display from Draw);
62
63
64 GetCurve (me) returns any Curve from Geom2d
65 ---C++: inline
66 is static;
67
68
69 SetColor(me : mutable; aColor : Color from Draw)
70 ---C++: inline
71 is static;
72
73 ShowCurvature(me : mutable)
74 ---C++: inline
75 is static;
76
77 ClearCurvature(me : mutable)
78 ---C++: inline
79 is static;
80
81 SetRadiusMax(me : mutable; Radius : Real)
82 ---C++: inline
83 is static;
84
85 SetRadiusRatio(me : mutable; Ratio : Real)
86 ---C++: inline
87 is static;
88
89 Color (me) returns Color from Draw
90 ---C++: inline
91 is static;
92
93 RadiusMax(me) returns Real
94 ---C++: inline
95 is static;
96
97 RadiusRatio(me) returns Real
98 ---C++: inline
99 is static;
100
101
102 Copy(me) returns mutable Drawable3D from Draw
103 ---Purpose: For variable copy.
104 is redefined;
105
106 Dump(me; S : in out OStream)
107 ---Purpose: For variable dump.
108 is redefined;
109
110 Is3D(me) returns Boolean
111 ---Purpose: Returns False.
112 is redefined;
113
114 Whatis(me; I : in out Interpretor from Draw)
115 is redefined;
116 ---Purpose: For variable whatis command. Set as a result the
117 -- type of the variable.
118
119fields
120 curv : Curve from Geom2d is protected ;
121 look : Color from Draw is protected ;
122 disporigin : Boolean from Standard is protected ;
123 dispcurvradius : Boolean from Standard is protected ;
124 radiusmax : Real from Standard is protected ;
125 radiusratio : Real from Standard is protected ;
126end Curve2d;