-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathArray2DTracer.h
60 lines (45 loc) · 1.29 KB
/
Array2DTracer.h
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
#ifndef CPP_ARRAY2DTRACER_H
#define CPP_ARRAY2DTRACER_H
#include "Tracer.h"
class Array2DTracer : public Tracer {
public:
Array2DTracer(const string &title = "", const string &className = "Array2DTracer") : Tracer(title, className) {
}
void set(const json &array2d) {
command("set", {array2d});
}
void patch(int x, int y, const json &v) {
command("patch", {x, y, v});
}
void patch(int x, int y) {
command("patch", {x, y});
}
void depatch(int x, int y) {
command("depatch", {x, y});
}
void select(int sx, int sy, int ex, int ey) {
command("select", {sx, sy, ex, ey});
}
void select(int x, int y) {
command("select", {x, y});
}
void selectRow(int x, int sy, int ey) {
command("selectRow", {x, sy, ey});
}
void selectCol(int y, int sx, int ex) {
command("selectCol", {y, sx, ex});
}
void deselect(int sx, int sy, int ex, int ey) {
command("deselect", {sx, sy, ex, ey});
}
void deselect(int x, int y) {
command("deselect", {x, y});
}
void deselectRow(int x, int sy, int ey) {
command("deselectRow", {x, sy, ey});
}
void deselectCol(int y, int sx, int ex) {
command("deselectCol", {y, sx, ex});
}
};
#endif