Go to the documentation of this file.
46 void initWindow(
const int width,
const int height,
const char*
const title);
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
173 void plot3(const
array& in, const
char* title=NULL);
176 #if AF_API_VERSION >= 34
188 void plot(
const array& in,
const char*
const title=NULL);
191 #if AF_API_VERSION >= 34
204 void plot(
const array& X,
const array& Y,
const array& Z,
const char*
const title=NULL);
218 void plot(
const array& X,
const array& Y,
const char*
const title=NULL);
220 #if AF_API_VERSION >= 34
234 const char*
const title = NULL);
237 #if AF_API_VERSION >= 34
255 #if AF_API_VERSION >= 33
272 #if AF_API_VERSION >= 33
284 const
char* const title = NULL);
299 void hist(
const array& X,
const double minval,
const double maxval,
const char*
const title=NULL);
301 #if AF_API_VERSION >= 32
312 void surface(
const array& S,
const char*
const title = NULL);
315 #if AF_API_VERSION >= 32
328 void surface(
const array& xVals,
const array& yVals,
const array& S,
const char*
const title = NULL);
331 #if AF_API_VERSION >= 34
348 void vectorField(
const array& points,
const array& directions,
const char*
const title = NULL);
351 #if AF_API_VERSION >= 34
367 void vectorField(
const array& xPoints,
const array& yPoints,
const array& zPoints,
369 const char*
const title = NULL);
372 #if AF_API_VERSION >= 34
386 void vectorField(
const array& xPoints,
const array& yPoints,
388 const char*
const title = NULL);
391 #if AF_API_VERSION >= 34
405 void setAxesLimits(
const array &x,
const array &y,
const bool exact =
false);
408 #if AF_API_VERSION >= 34
424 const bool exact =
false);
427 #if AF_API_VERSION >= 34
443 void setAxesLimits(
const float xmin,
const float xmax,
444 const float ymin,
const float ymax,
445 const bool exact =
false);
448 #if AF_API_VERSION >= 34
466 void setAxesLimits(
const float xmin,
const float xmax,
467 const float ymin,
const float ymax,
468 const float zmin,
const float zmax,
469 const bool exact =
false);
472 #if AF_API_VERSION >= 34
484 void setAxesTitles(
const char *
const xtitle =
"X-Axis",
485 const char *
const ytitle =
"Y-Axis",
486 const char *
const ztitle = NULL);
489 #if AF_API_VERSION >= 37
499 void setAxesLabelFormat(
const char *
const xformat =
"4.1%f",
500 const char *
const yformat =
"4.1%f",
501 const char *
const zformat = NULL);
512 void grid(
const int rows,
const int cols);
533 #if AF_API_VERSION >= 33
541 void setVisibility(
const bool isVisible);
614 #if AF_API_VERSION >= 31
663 AF_DEPRECATED(
"Use af_draw_plot_nd or af_draw_plot_2d instead")
666 #if AF_API_VERSION >= 32
682 AF_DEPRECATED(
"Use af_draw_plot_nd or af_draw_plot_3d instead")
686 #if AF_API_VERSION >= 34
706 #if AF_API_VERSION >= 34
727 #if AF_API_VERSION >= 34
750 #if AF_API_VERSION >= 33
768 AF_DEPRECATED(
"Use af_draw_scatter_nd or af_draw_scatter_2d instead")
773 #if AF_API_VERSION >= 33
788 AF_DEPRECATED(
"Use af_draw_scatter_nd or af_draw_scatter_3d instead")
793 #if AF_API_VERSION >= 34
815 #if AF_API_VERSION >= 34
837 #if AF_API_VERSION >= 34
880 #if AF_API_VERSION >= 32
901 #if AF_API_VERSION >= 34
930 #if AF_API_VERSION >= 34
958 #if AF_API_VERSION >= 34
998 #if AF_API_VERSION >= 34
1024 #if AF_API_VERSION >= 34
1044 const float xmin,
const float xmax,
1045 const float ymin,
const float ymax,
1050 #if AF_API_VERSION >= 34
1072 const float xmin,
const float xmax,
1073 const float ymin,
const float ymax,
1074 const float zmin,
const float zmax,
1079 #if AF_API_VERSION >= 34
1101 const char *
const xtitle,
1102 const char *
const ytitle,
1103 const char *
const ztitle,
1107 #if AF_API_VERSION >= 37
1130 const char *
const xformat,
1131 const char *
const yformat,
1132 const char *
const zformat,
1162 #if AF_API_VERSION >= 33
AFAPI af_err af_set_axes_limits_3d(const af_window wind, const float xmin, const float xmax, const float ymin, const float ymax, const float zmin, const float zmax, const bool exact, const af_cell *const props)
C Interface for setting axes limits for a 3D plot/surface/vector field.
AFAPI af_err af_draw_vector_field_2d(const af_window wind, const af_array xPoints, const af_array yPoints, const af_array xDirs, const af_array yDirs, const af_cell *const props)
C Interface wrapper for drawing array's as a 2D vector field.
AFAPI af_err af_destroy_window(const af_window wind)
C Interface wrapper for destroying a window handle.
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.
AFAPI af_err af_draw_scatter_2d(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 2D plot.
AFAPI af_err af_draw_plot_nd(const af_window wind, const af_array P, const af_cell *const props)
C Interface wrapper for drawing an array as a 2D or 3D plot.
AFAPI af_err af_set_axes_titles(const af_window wind, const char *const xtitle, const char *const ytitle, const char *const ztitle, const af_cell *const props)
C Interface wrapper for setting axes titles for histogram/plot/surface/vector field.
A multi dimensional data container.
AFAPI af_err af_set_axes_label_format(const af_window wind, const char *const xformat, const char *const yformat, const char *const zformat, const af_cell *const props)
C Interface wrapper for setting axes labels formats for charts.
AFAPI af_err af_set_axes_limits_2d(const af_window wind, const float xmin, const float xmax, const float ymin, const float ymax, const bool exact, const af_cell *const props)
C Interface for setting axes limits for a 2D histogram/plot/vector field.
AFAPI af_err af_draw_scatter_nd(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_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.
AFAPI af_err af_draw_vector_field_3d(const af_window wind, const af_array xPoints, const af_array yPoints, const af_array zPoints, const af_array xDirs, const af_array yDirs, const af_array zDirs, const af_cell *const props)
C Interface wrapper for drawing array's as a 3D vector field.
AFAPI af_err af_is_window_closed(bool *out, const af_window wind)
C Interface wrapper for checking if window is marked for close.
AFAPI af_err af_set_axes_limits_compute(const af_window wind, const af_array x, const af_array y, const af_array z, const bool exact, const af_cell *const props)
C Interface for setting axes limits for a histogram/plot/surface/vector field.
AFAPI af_err af_draw_scatter_3d(const af_window wind, const af_array X, const af_array Y, const af_array Z, const af_marker_type marker, const af_cell *const props)
C Interface wrapper for drawing an array as a 3D plot.
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 array's as a surface.
AFAPI af_err af_draw_plot_2d(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 2D plot.
#define AF_DEPRECATED(msg)
AFAPI af_err af_draw_plot_3d(const af_window wind, const af_array X, const af_array Y, const af_array Z, const af_cell *const props)
C Interface wrapper for drawing an array as a 3D plot.
AFAPI af_err af_set_size(const af_window wind, const unsigned w, const unsigned h)
C Interface wrapper for setting window position.
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.
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.
Window object to render af::arrays.
AFAPI af_err af_draw_vector_field_nd(const af_window wind, const af_array points, const af_array directions, const af_cell *const props)
C Interface wrapper for drawing array's as a 2D or 3D vector field.
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.
Window & operator()(const int r, const int c)
This function is used to keep track of which cell in the grid mode is being currently rendered.