forked from atsommer/Simplicio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCameraSettings.h
57 lines (51 loc) · 1.09 KB
/
CameraSettings.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
#ifndef CAMERA_SETTINGS
#define CAMERA_SETTINGS
/*
int mode;
int trig;
int roix1;
int roix2;
int roiy1;
int roiy2;
int hbin;
int vbin;
char table[300];
GET_SETTINGS( &mode, &trig, &roix1, &roix2, &roiy1, &roiy2, &hbin, &vbin, (char**)table);
int cols = 32*(roix2-roix1+1);
int rows = 32*(roiy2-roiy1+1);
*/
namespace forms2{
public class CameraSettings{
public:
static const int MODE = 1;
static const int TRIG = 1<<1;
static const int ROIX1 = 1<<2;
static const int ROIX2 = 1<<3;
static const int ROIY1 = 1<<4;
static const int ROIY2 = 1<<5;
static const int HBIN = 1<<6;
static const int VBIN = 1<<7;
// static const int TABLE = 1<<8;
static const int NULL_SETTING = -999;
CameraSettings(void);
int getSetting(int settingID);
int getRows();
int getCols();
int getHBin(){getSettings();return hbin;}
int getVBin(){getSettings();return vbin;}
bool isDouble();
void update();
protected:
int mode;
int trig;
int roix1;
int roix2;
int roiy1;
int roiy2;
int hbin;
int vbin;
char table[300];
void getSettings();
};
}
#endif