0024510: Remove unused local variables
[occt.git] / src / DrawTrSurf / DrawTrSurf_BSplineSurface.cdl
CommitLineData
b311480e 1-- Created on: 1992-05-22
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--
973c2be1 8-- This library is free software; you can redistribute it and / or modify it
9-- under the terms of the GNU Lesser General Public 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.
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 BSplineSurface from DrawTrSurf
18
19inherits Surface from DrawTrSurf
20
21 --- Purpose :
22 -- This class defines a drawable BSplineSurface.
23 -- With this class you can draw the control points and the knots
24 -- of the surface.
25 -- You can use the general class Surface from DrawTrSurf too,
26 -- if you just want to sea boundaries and isoparametric curves.
27
28uses BSplineSurface from Geom,
29 Color from Draw,
30 MarkerShape from Draw,
31 Display from Draw,
32 Drawable3D from Draw
33
34is
35
36
37
38 Create (S : BSplineSurface from Geom)
39 returns mutable BSplineSurface from DrawTrSurf;
40 --- Purpose : default drawing mode.
41 -- The isoparametric curves corresponding to the knots values are
42 -- drawn.
43 -- The control points and the knots points are drawn.
44 -- The boundaries are yellow, the isoparametric curves are blues.
45 -- For the discretisation 50 points are computed in each parametric
46 -- direction.
47
48
49 Create (S : BSplineSurface from Geom;
50 BoundsColor, IsosColor, PolesColor, KnotsColor : Color from Draw;
51 KnotsShape : MarkerShape from Draw; KnotsSize : Integer;
52 ShowPoles, ShowKnots : Boolean; Discret : Integer; Deflection : Real;
53 DrawMode : Integer)
54 returns mutable BSplineSurface from DrawTrSurf;
55 --- Purpose :
56 -- The isoparametric curves corresponding to the knots values are
57 -- drawn.
58
59
60
61 Create (S : BSplineSurface from Geom;
62 NbUIsos, NbVIsos : Integer;
63 BoundsColor, IsosColor, PolesColor, KnotsColor : Color from Draw;
64 KnotsShape : MarkerShape from Draw; KnotsSize : Integer;
65 ShowPoles, ShowKnots : Boolean; Discret : Integer; Deflection : Real;
66 DrawMode : Integer)
67 returns mutable BSplineSurface from DrawTrSurf;
68 --- Purpose : Parametric equidistant iso curves are drawn.
69
70
71 DrawOn (me; dis : in out Display from Draw)
72 is redefined static;
73
74
75 ShowPoles (me : mutable)
76 is static;
77
78
79 ShowKnots (me : mutable)
80 is static;
81
82
83 ShowIsos (me : mutable; Nu, Nv : Integer)
84 --- Purpose : change the number of isoparametric curves to be drawn.
85 is redefined;
86
87
88 ShowKnotsIsos (me : mutable)
89 --- Purpose : change the number of isoparametric curves to be drawn.
90 is static;
91
92
93 ClearIsos (me : mutable)
94 --- Purpose : rub out all the isoparametric curves.
95 is redefined;
96
97
98 ClearPoles (me : mutable)
99 is static;
100
101
102 ClearKnots (me : mutable)
103 is static;
104
105
106 FindPole(me; X,Y : Real; D : Display from Draw; Prec : Real;
107 UIndex, VIndex : in out Integer)
108 is static;
109
110
111 FindUKnot(me; X,Y : Real; D : Display from Draw; Prec : Real;
112 UIndex : in out Integer)
113 is static;
114
115
116 FindVKnot(me; X,Y : Real; D : Display from Draw; Prec : Real;
117 VIndex : in out Integer)
118 is static;
119
120
121 SetPolesColor (me : mutable; aColor : Color from Draw)
122 ---C++: inline
123 is static;
124
125
126 SetKnotsColor (me : mutable; aColor : Color from Draw)
127 ---C++: inline
128 is static;
129
130
131 SetKnotsShape (me : mutable; Shape : MarkerShape from Draw)
132 ---C++: inline
133 is static;
134
135
136 KnotsShape (me) returns MarkerShape from Draw
137 ---C++: inline
138 is static;
139
140
141 KnotsColor (me) returns Color from Draw
142 ---C++: inline
143 is static;
144
145
146 PolesColor (me) returns Color from Draw
147 ---C++: inline
148 is static;
149
150 Copy(me) returns mutable Drawable3D from Draw
151 ---Purpose: For variable copy.
152 is redefined;
153
154
155fields
156
157 drawPoles : Boolean;
158 drawKnots : Boolean;
159 knotsIsos : Boolean;
160 knotsForm : MarkerShape from Draw;
161 knotsLook : Color from Draw;
162 knotsDim : Integer;
163 polesLook : Color from Draw;
164
165end BSplineSurface;