-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathGraphics.java
More file actions
60 lines (34 loc) · 2.56 KB
/
Graphics.java
File metadata and controls
60 lines (34 loc) · 2.56 KB
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
package com.arrayfire;
class Graphics {
public static native long afInitWindow(int width, int height, String name);
public static native void afDestroyWindow(long wnd);
public static native void afSetPos(long wnd, int x, int y);
public static native void afSetTitle(long wnd, String title);
public static native void afSetSize(long wnd, int w, int h);
public static native void afDrawImage(long wnd, long arr, int r, int c, String title, int cmap);
public static native void afDrawPlotnd(long wnd, long arr, int r, int c, String title);
public static native void afDrawPlot2d(long wnd, long arrX, long arrY, int r, int c, String title);
public static native void afDrawPlot3d(long wnd, long arrX, long arrY, long arrZ, int r, int c, String title);
public static native void afDrawScatternd(long wnd, long arr, int r, int c, int markerType, String title);
public static native void afDrawScatter2d(long wnd, long arrX, long arrY, int r, int c, int markerType, String title);
public static native void afDrawScatter3d(long wnd, long arrX, long arrY, long arrZ, int r, int c, int markerType,
String title);
public static native void afDrawHist(long wnd, long arr, int r, int c, double min, double max, String title);
public static native void afDrawSurface(long wnd, long arr, long xVals, long yVals, int r, int c, String title);
public static native void afDrawVectorFieldnd(long wnd, long points, long directions, int r, int c, String title);
public static native void afDrawVectorField2d(long wnd, long xPoints, long yPoints, long xDirections,
long yDirections, int r, int c, String title);
public static native void afDrawVectorField3d(long wnd, long xPoints, long yPoints, long zPoints, long xDirections,
long yDirections, long zDirections, int r, int c, String title);
public static native void afGrid(long wnd, int rows, int columns);
public static native void afSetAxesLimitsCompute(long wnd, long arrX, long arrY, long arrZ, boolean isExact, int r,
int c);
public static native void afSetAxesLimits2d(long wnd, float xMin, float xMax, float yMin, float yMax, boolean isExact,
int r, int c);
public static native void afSetAxesLimits3d(long wnd, float xMin, float xMax, float yMin, float yMax, float zMin,
float zMax, boolean isExact, int r, int c);
public static native void afSetAxesTitles(String xTitle, String yTitle, String zTitle);
public static native void afShow(long wnd);
public static native boolean afClose(long wnd);
public static native void afSetVisibility(long wnd, boolean isVisible);
}