gfx.h (2014-04-30 15:38:09 -0400, (build fd32605))
Go to the documentation of this file.
1 //-----------------------------------------------------------------------//
2 // Copyright (c) AccelerEyes LLC. All rights reserved. //
3 // See http://www.accelereyes.com/eula for details. //
4 // This software is distributed WITHOUT ANY WARRANTY; without even //
5 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //
6 // PURPOSE. See the above copyright notices for more information. //
7 //-----------------------------------------------------------------------//
8 
9 
10 #pragma once
11 
12 #include "defines.h"
13 #include "arith.h"
14 
15 #ifdef __cplusplus
16 
17 typedef unsigned handle;
18 namespace af {
19  class array;
20 }
21 
22 namespace af {
23 
24 // array only
25 
26 
29 
43 AFXAPI handle surface(const af::array &X);
45 
46 
74 AFXAPI handle arrows(const af::array &X0, const af::array &Y0, const af::array &X1, const af::array &Y1);
76 
77 
91 AFXAPI handle plot2(const af::array &X);
93 
94 
113 AFXAPI handle plot2(const af::array &X, const char *linestyle);
115 
131 AFXAPI handle plot2(const array &X, const array &Y);
133 
134 
154 AFXAPI handle plot2(const array &X, const array &Y, const char *linestyle);
156 
157 
173 AFXAPI handle plot3(const af::array &X, const af::array &Y, const af::array &Z);
175 
176 
191 AFXAPI handle volume(const af::array &X);
193 
194 
213 AFXAPI handle image(const af::array &X);
215 
217 
218 
219 
222 
229 AFXAPI handle surface(const float *d_a, const unsigned w, const unsigned h);
231 
232 
242 AFXAPI handle arrows(const float *d_X0, const float *d_Y0, const float *d_X1, const float *d_Y1, const int cnt);
244 
251 AFXAPI handle plot2(const float *d_A, const unsigned len);
253 
254 
262 AFXAPI handle plot2(const float *d_X, const float *d_Y, const unsigned npts);
264 
274 AFXAPI handle plot2(const float *d_X, const float *d_Y, const unsigned npts, const char *linestyle);
276 
277 
285 AFXAPI handle plot2(const float *d_A, const unsigned len, const char *linestyle);
287 
296 AFXAPI handle plot3(const float *d_X, const float *d_Y, const float *d_Z, const unsigned npts);
298 
309 AFXAPI handle plot3(const float *d_X, const float *d_Y, const float *d_Z, const unsigned npts, const char *linestyle);
311 
312 
321 AFXAPI handle volume(const float *d_X, const unsigned w, const unsigned h, const unsigned d);
323 
335 AFXAPI handle scattercolors(const float *d_X, const float *d_Y, const float *d_Z,
336  const float *d_R, const float *d_G, const float *d_B,
337  const unsigned npts);
339 
348 AFXAPI handle image(const float *d_X, const unsigned w, const unsigned h);
350 
358 AFXAPI handle rgbplot(const float *d_X, const unsigned w, const unsigned h);
361 
362 
363 // this was a hack for a forum user and is thus undocumented.
364 AFXAPI handle trimesh(const float *d_X, const float *d_Y, const float *d_Z, const float *d_C, const unsigned npts);
365 
366 
367 // common
370 
371 
378 AFXAPI handle fig(const char *key, const char *val=NULL);
380 
385 AFXAPI handle fig(const char *key, int nx, int ny, int i);
387 
396 AFXAPI handle fig(int x, int y, int w, int h);
398 
399 
400 } // namespace
401 #endif
handle fig(const char *key, const char *val=NULL)
handle surface(const af::array &X)
handle volume(const af::array &X)
handle plot2(const af::array &X)
handle scattercolors(const float *d_X, const float *d_Y, const float *d_Z, const float *d_R, const float *d_G, const float *d_B, const unsigned npts)
GPU array container.
Definition: array.h:411
#define AFXAPI
Definition: defines.h:46
handle arrows(const af::array &X0, const af::array &Y0, const af::array &X1, const af::array &Y1)
handle rgbplot(const float *d_X, const unsigned w, const unsigned h)
handle image(const af::array &X)
handle plot3(const af::array &X, const af::array &Y, const af::array &Z)
handle trimesh(const float *d_X, const float *d_Y, const float *d_Z, const float *d_C, const unsigned npts)
const cfloat i
representation for imaginary unit 0+1i
unsigned handle
Definition: gfx.h:17