|
My Project
|
|
Go to the documentation of this file.
46 void initWindow(
const int width,
const int height,
const char*
const title);
48 Window(
const Window&);
49 Window& operator=(
const Window&);
68 Window(
const char*
const title);
80 Window(
const int width,
const int height,
const char*
const title=
"ArrayFire");
117 void setPos(
const unsigned x,
const unsigned y);
126 void setTitle(
const char*
const title);
128 #if AF_API_VERSION >= 31
137 void setSize(
const unsigned w,
const unsigned h);
147 void setColorMap(
const ColorMap cmap);
159 void image(
const array& in,
const char* title=NULL);
161 #if AF_API_VERSION >= 32
172 void plot3(
const array& in,
const char* title=NULL);
186 void plot(
const array& X,
const array& Y,
const char*
const title=NULL);
188 #if AF_API_VERSION >= 33
205 #if AF_API_VERSION >= 33
216 const char*
const title = NULL);
231 void hist(
const array& X,
const double minval,
const double maxval,
const char*
const title=NULL);
233 #if AF_API_VERSION >= 32
244 void surface(
const array& S,
const char*
const title = NULL);
247 #if AF_API_VERSION >= 32
260 void surface(
const array& xVals,
const array& yVals,
const array& S,
const char*
const title = NULL);
271 void grid(
const int rows,
const int cols);
292 #if AF_API_VERSION >= 33
300 void setVisibility(
const bool isVisible);
315 inline Window& operator()(
const int r,
const int c) {
370 #if AF_API_VERSION >= 31
421 #if AF_API_VERSION >= 33
443 #if AF_API_VERSION >= 33
462 #if AF_API_VERSION >= 32
500 #if AF_API_VERSION >= 32
561 #if AF_API_VERSION >= 33
af_marker_type
Definition: defines.h:384
AFAPI af_err af_destroy_window(const af_window wind)
C Interface wrapper for destroying a window handle.
Definition: defines.h:386
AFAPI af_err af_create_window(af_window *out, const int width, const int height, const char *const title)
C Interface wrapper for creating a window.
Definition: graphics.h:16
#define AFAPI
Definition: defines.h:30
Definition: algorithm.h:13
AFAPI af_err af_draw_scatter(const af_window wind, const af_array X, const af_array Y, const af_marker_type marker, const af_cell *const props)
C Interface wrapper for drawing an array as a plot.
af_colormap ColorMap
Definition: defines.h:411
AFAPI af_err af_is_window_closed(bool *out, const af_window wind)
C Interface wrapper for checking if window is marked for close.
void * af_array
Definition: defines.h:221
AFAPI af_err af_set_position(const af_window wind, const unsigned x, const unsigned y)
C Interface wrapper for setting the start position when window is displayed.
AFAPI af_err af_grid(const af_window wind, const int rows, const int cols)
C Interface wrapper for grid setup in a window.
AFAPI af_err af_draw_image(const af_window wind, const af_array in, const af_cell *const props)
C Interface wrapper for drawing an array as an image.
AFAPI af_err af_set_title(const af_window wind, const char *const title)
C Interface wrapper for setting window title.
AFAPI af_err af_show(const af_window wind)
C Interface wrapper for showing a window.
AFAPI af_err af_set_visibility(const af_window wind, const bool is_visible)
Hide/Show a window.
AFAPI af_err af_draw_surface(const af_window wind, const af_array xVals, const af_array yVals, const af_array S, const af_cell *const props)
C Interface wrapper for drawing arrayis as a surface.
AFAPI af_err af_set_size(const af_window wind, const unsigned w, const unsigned h)
C Interface wrapper for setting window position.
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer.
Definition: opencl.h:328
AFAPI af_err af_draw_plot3(const af_window wind, const af_array P, const af_cell *const props)
C Interface wrapper for drawing an array as a plot.
AFAPI af_err af_draw_hist(const af_window wind, const af_array X, const double minval, const double maxval, const af_cell *const props)
C Interface wrapper for drawing an array as a histogram.
unsigned long long af_window
Definition: graphics.h:14
AFAPI af_err af_draw_scatter3(const af_window wind, const af_array P, const af_marker_type marker, const af_cell *const props)
C Interface wrapper for drawing an array as a plot.
AFAPI af_err af_draw_plot(const af_window wind, const af_array X, const af_array Y, const af_cell *const props)
C Interface wrapper for drawing an array as a plot.
af_err
Definition: defines.h:62
af_colormap
Definition: defines.h:331