File: dr1Call.c

package info (click to toggle)
scilab 4.0-12
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 100,640 kB
  • ctags: 57,333
  • sloc: ansic: 377,889; fortran: 242,862; xml: 179,819; tcl: 42,062; sh: 10,593; ml: 9,441; makefile: 4,377; cpp: 1,354; java: 621; csh: 260; yacc: 247; perl: 130; lex: 126; asm: 72; lisp: 30
file content (323 lines) | stat: -rw-r--r-- 8,893 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
/*------------------------------------------------------------------------
 *    Graphic library 2001-2002
 *    Old Graphics Fonctions 
 *    Author Djalel ABDEMOUCHE
 *-------------------------------------------------------------------*/

#include <string.h>
#include <stdio.h>
#include "../stack-c.h"
/*------------------------------------------------
 * Xrect
 *-----------------------------------------------*/   
void Xrect (fname,fname_len,x,y,width,height)
     char *fname; 
     unsigned long fname_len; 
     double *x,*y,*width,*height;
{ 
     integer v; 
    
     C2F(dr1)(fname,"v",&v,&v,&v,&v,&v,&v,x,y,width,height,fname_len,2L); 
    
}


/*------------------------------------------------
 * Xarc
 *-----------------------------------------------*/   
void Xarc (fname,fname_len,a1,a2,x,y,width,height)
     char *fname; 
     unsigned long fname_len; 
     double *x,*y,*width,*height; 
     integer *a1,*a2;

{ 
     integer v; 
     
     C2F(dr1)(fname,"v",&v,&v,&v,&v,a1,a2,x,y,width,height,fname_len,1L);
}

/*------------------------------------------------
 * Xrects
 *-----------------------------------------------*/   
void Xrects (fname,fname_len,vect1,n,vect2)
     char *fname; 
     unsigned long fname_len; 
     integer n,*vect1;
     double *vect2; 
{ 
     integer v;
     double dv; 
    
     C2F(dr1)(fname,"v",&v,vect1,&n,&v,&v,&v,vect2,&dv,&dv,&dv,fname_len,2L);
      
}

  
/*------------------------------------------------
 * Xarcs
 *-----------------------------------------------*/   
void Xarcs (fname,fname_len,vect1,n,vect2)
     char *fname; 
     unsigned long fname_len; 
     integer n,*vect1;
     double *vect2; 
{ 
     integer v;
     double dv; 
    
     C2F(dr1)(fname,"v",&v,vect1,&n,&v,&v,&v,vect2,&dv,&dv,&dv,fname_len,2L);
      
}

/*------------------------------------------------
 * Xfarcs
 *-----------------------------------------------*/   
void Xfarcs (fname,fname_len,vect1,n,vect2)
     char *fname; 
     unsigned long fname_len; 
     integer n,*vect1;
     double *vect2; 
{ 
     integer v;
     double dv; 
 
     C2F(dr1)(fname,"v",&v,vect1,&n,&v,&v,&v,vect2,&dv,&dv,&dv,fname_len,2L);
      
}

/*------------------------------------------------
 * xpoly(xv,yv,dtype,[close])
 *-----------------------------------------------*/   
void Xpoly (fname,fname_len,n,close,x,y)
     char *fname; 
     unsigned long fname_len; 
     double *x,*y;
     integer n,close; 
{ 
     integer v; 
     double dv;
   
     C2F(dr1)(fname,"xv",&n,&v,&v,&close,&v,&v,x,y,&dv,&dv,0L,0L);
}

/*------------------------------------------------
 * xfpoly(xv,yv,[close])
 *-----------------------------------------------*/   
void Xfpoly (rempl,closed,x,y)
     integer rempl,closed; 
     double *x,*y;
{ 
     integer v; 
     double dv;
   
     C2F(dr1)("xarea","xvoid",&rempl,&v,&v,&closed,&v,&v,x,y,&dv,&dv,6L,5L);
}

/*------------------------------------------------
 * xpolys(xpols,ypols,[draw])
 *-----------------------------------------------*/   
void Xpolys (vect,n,m,x,y)
     integer n,m; 
     integer *vect;
     double *x,*y;
{ 
     integer v; 
     double dv;
   
     C2F(dr1)("xpolys","v",&v,&v,vect,&n,&m,&v,x,y,&dv,&dv,7L,2L);
}


/*------------------------------------------------
 * xfpolys(xpols,ypols,[fill])
 *-----------------------------------------------*/   
void Xfpolys (vect,val1,val2,n,m,x,y)
     integer val1,val2,n,m; 
     integer *vect;
     double *x,*y;
{ 
     integer v; 
     double dv;
   
     C2F(dr1)("xliness","v",&val1,&val2,vect,&n,&m,&v,x,y,&dv,&dv,8L,2L);
     
}
/*-----------------------------------------------------------
 *   xsegs(xv,yv,[style])
 *-----------------------------------------------------------*/
void Xsegs (style,flag,n,x,y,arsize)
     integer *style,flag,n; 
     double *x,*y;
     double arsize;
{ 
     integer v; 
     double dv;    
     if (arsize == 0)
        C2F(dr1)("xsegs","v",style,&flag,&n,&v,&v,&v,x,y,&dv,&dv,6L,2L);
     else 
        C2F(dr1)("xarrow","v",style,&flag,&n,&v,&v,&v,x,y,&arsize,&dv,7L,2L);
}

/*------------------------------------------------
 *  xstring(x,y,str,[angle,box])
 *-----------------------------------------------*/   
void Xstring (fname,fname_len,str,x,y,angle,box)
     char *fname; 
     unsigned long fname_len; 
     integer str;
     double angle,*box;
     double x,y;
{ 
     integer v; 
     double dv;
   
     C2F(dr1)("xstring",fname,&v,&v,&v,&str,&v,&v,&x,&y,&angle,&dv,8L,fname_len);
     C2F(dr1)("xstringl",fname,&v,&v,&v,&v,&v,&v,&x,&y,box,&dv,9L,fname_len);
}

/*------------------------------------------------
 *  Xtitle(str)
 *-----------------------------------------------*/   
void Xtitle (str,n)
     char *str;
     int n;
{ 
     integer v; 
     double dv;
   
     C2F(dr1)("xstringa",str,&n,&v,&v,&v,&v,&v,&dv,&dv,&dv,&dv,8L,2L);
}

/*------------------------------------------------
 * drawaxis (pos, xy_type, x, nx, y, ny, str, subtics
              format, fontsize,textcolor, 
              ticscolor, logflag, seg_flag)
 *-----------------------------------------------*/   
void Xdrawaxis (dir,tics,x,nx,y,ny,val,sub_int,format,fontsize,textcolor,ticscolor,flag,seg_flag)
     char dir,tics ,flag; 
     double *x,*y;
     char **val,*format;
     int *nx,*ny,sub_int;
     int fontsize,textcolor,ticscolor,seg_flag;
{ 
  int fontstyle = 0;
     sci_axis(dir,tics,x,nx,y,ny,val,sub_int,format,fontsize,textcolor,fontstyle,ticscolor,flag,seg_flag); 
     
}

/*------------------------------------------------
 *  plot2d(x,y,[style,strf,leg,rect,nax]) 
 *-----------------------------------------------*/   
void Xplot2d (x,y,n1,n2,style,strflag,legend,brect,aaint)
     double x[],y[],brect[];
     integer *n1,*n2,style[],aaint[];
     char legend[],strflag[];
{ 
  
     C2F(plot2d)(x,y,n1,n2,style,strflag,legend,brect,aaint,4L, bsiz);
     
}


/*------------------------------------------------
 *  grayplot(x,y,z,[strf,rect,nax])
 *-----------------------------------------------*/   
void Xgrayplot (x,y,z,n1,n2,strflag,brect,aaint)
     double x[],y[],z[],brect[];
     integer *n1,*n2,aaint[];
     char strflag[];
{ 
  
     C2F(xgray)(x,y,z,n1,n2,strflag, brect, aaint, 0,bsiz);
     
}
/*------------------------------------------------
 *  matplot(z,[strf,rect,nax]) 
 *-----------------------------------------------*/   
void Xmatplot (z,n1,n2,strflag,brect,aaint)
     double z[],brect[];
     integer *n1,*n2,aaint[];
     char strflag[];
{ 
  
     C2F(xgray1)(z,n1,n2,strflag, brect, aaint, 0,bsiz);
     
}
/*------------------------------------------------
 *  Matplot1 (z,xrect) 
 *-----------------------------------------------*/   
void Xmatplot1 (z,n1,n2,xrect) 
     double z[],xrect[];
     integer *n1,*n2;
{ 
    
     C2F(xgray2)(z, n1, n2,xrect);
     
         
}
/*------------------------------------------------
 *  3D Plotting of surfaces given by z=f(x,y)
 *-----------------------------------------------*/   
void Xplot3d (fname,isfac,izcol,x,y,z,zcol,m,n,theta,alpha,legend,iflag,ebox)
     double x[],y[],z[];
     double *theta,*alpha,*ebox;
     integer *isfac,*n,*m,*iflag,*izcol,*zcol;
     char *fname,*legend;
{ 
    

   if (*isfac== 1) 
    { 
       if (*izcol == 0) 
	 { if (strcmp(fname,"plot3d1")==0)
	   C2F(fac3d1)(x,y,z,zcol,m,n,theta,alpha,legend,iflag,ebox,bsiz); 
           else
	     C2F(fac3d)(x,y,z,zcol,m,n,theta,alpha,legend,iflag,ebox,bsiz);
         } 
       else if (*izcol == 2) 
	 C2F(fac3d3)(x,y,z,zcol,m,n,theta,alpha,legend,iflag,ebox,bsiz);
       else 
	 C2F(fac3d2)(x,y,z,zcol,m,n,theta,alpha,legend,iflag,ebox,bsiz);
     } 
   else if  (*isfac== 0) 
    { if (strcmp(fname,"plot3d1")==0)
      C2F(plot3d1)(x,y,z,m,n,theta,alpha,legend,iflag,ebox,bsiz);
      else
        C2F(plot3d)(x,y,z,m,n,theta,alpha,legend,iflag,ebox,bsiz);
    }
   else 
     C2F(param3d1)(x, y, z,m,n,izcol,zcol,theta, alpha,legend,iflag,ebox, bsiz); 
    
   
         
}
/*------------------------------------------------
 * xnumb(x,y,nums,[angles,box]) : 
 *-----------------------------------------------*/   
void Xnumb (fname,n,flag,x,y,angle,box)
     char *fname; 
     integer flag;
     double *x,*y,*angle,*box;
{ 
     integer v; 
    
     C2F(dr1)("xnum","xv",&v,&v,&v,&v,&n,&flag,x,y,angle,box,5L,3L);  
    
}

/*------------------------------------------------
 * fec(x,y,triangles,func,[strf,leg,rect,nax,zminmax,colminmax,extremes_col, with_mesh]);
 *-----------------------------------------------*/   
void Xfec (x,y,noeud,fun,n,m,strflag,legend,brect,aaint,Zminmax,Colminmax,ColOut,WithMesh)
     double x[],y[],brect[],noeud[],Zminmax[]; 
     integer *n,*m,aaint[],Colminmax[],ColOut[];
     int WithMesh;
     double *fun;
     char legend[],strflag[];
{ 
    
     C2F(fec)(x,y,noeud,fun,n,m,strflag,legend,brect,aaint,
         Zminmax,Colminmax,ColOut,WithMesh,0,4L,bsiz);
     
}