00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #pragma once
00011
00173 #include "defines.h"
00174 #include "arith.h"
00175
00176 #ifdef __cplusplus
00177
00178 typedef unsigned handle;
00179 namespace af {
00180 class array;
00181 }
00182
00183 namespace af {
00184
00185
00186
00187
00190
00195 AFXAPI handle plot3d(const af::array &X);
00197
00198
00207 AFXAPI handle arrows(const af::array &X, const af::array &Y, const af::array &U, const af::array &V);
00209
00210
00216 AFXAPI handle plot(const af::array &X);
00218
00219
00226 AFXAPI handle plot(const af::array &X, const char *linestyle);
00228
00235 AFXAPI handle plot(const array &X, const array &Y);
00237
00238
00246 AFXAPI handle plot(const array &X, const array &Y, const char *linestyle);
00248
00249
00257 AFXAPI handle points(const af::array &X, const af::array &Y, const af::array &Z);
00259
00260
00266 AFXAPI handle volume(const af::array &X);
00268
00269
00275 AFXAPI handle imgplot(const af::array &X);
00277
00278
00287 AFXAPI handle rgbplot(const af::array &X);
00290
00291
00292
00295
00302 AFXAPI handle plot3d(const float *d_a, const unsigned w, const unsigned h);
00304
00305
00315 AFXAPI handle arrows(const float *d_X, const float *d_Y, const float *d_U, const float *d_V, const int cnt);
00317
00324 AFXAPI handle plot(const float *d_A, const unsigned len);
00326
00334 AFXAPI handle plot(const float *d_A, const unsigned len, const char *linestyle);
00336
00345 AFXAPI handle plot(const float *d_X, const float *d_Y, const float *d_Z, const unsigned npts);
00347
00358 AFXAPI handle plot(const float *d_X, const float *d_Y, const float *d_Z, const unsigned npts, const char *linestyle);
00360
00361
00370 AFXAPI handle volume(const float *d_X, const unsigned w, const unsigned h, const unsigned d);
00372
00373
00382 AFXAPI handle points(const float *d_X, const float *d_Y, const float *d_Z, const unsigned npts);
00384
00385
00397 AFXAPI handle scattercolors(const float *d_X, const float *d_Y, const float *d_Z,
00398 const float *d_R, const float *d_G, const float *d_B,
00399 const unsigned npts);
00401
00409 AFXAPI handle imgplot(const float *d_X, const unsigned w, const unsigned h);
00411
00419 AFXAPI handle rgbplot(const float *d_X, const unsigned w, const unsigned h);
00422
00423
00424
00425 AFXAPI handle trimesh(const float *d_X, const float *d_Y, const float *d_Z, const float *d_C, const unsigned npts);
00426
00427
00428
00431
00435 AFXAPI afError keep_on();
00437
00442 AFXAPI afError keep_off();
00444
00452 AFXAPI afError subfigure(unsigned w, unsigned h, unsigned idx);
00454
00471 AFXAPI afError palette(const char *map);
00473
00478 AFXAPI afError clearfig();
00480
00484 AFXAPI afError draw();
00486
00491 AFXAPI handle figure();
00493
00499 AFXAPI handle title(const char *str);
00501
00510 AFXAPI handle figure(int x, int y, int w, int h);
00512
00517 AFXAPI afError close();
00519
00520 }
00521 #endif