forked from atsommer/Simplicio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDriver.h
More file actions
65 lines (57 loc) · 1.54 KB
/
Copy pathDriver.h
File metadata and controls
65 lines (57 loc) · 1.54 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
61
62
63
64
65
#ifndef DRIVER
#define DRIVER
namespace forms2{
using namespace System;
ref class Driver abstract{
public:
virtual int initCamera()=0;
virtual int openCameraDialog(){return 0;}
virtual void lockCameraDialog(bool lock){}
virtual void closeCamera()=0;
virtual void expose()=0;
virtual void stop()=0;//stops acquistion
virtual int getImageStatus()=0;
virtual int getImageWidth()=0;
virtual int getImageHeight()=0;
virtual void readImage(UInt16 *buffer)=0;
virtual int armCamera()=0;
virtual String^ getDriverName()=0;
//String^ getCameraName(){return new String(cameraName);}
//settings
virtual int getRows()=0;
virtual int getCols()=0;
virtual int getHBin(){getSettings();return hbin;}
virtual int getVBin(){getSettings();return vbin;}
virtual bool isDouble(){return false;}
virtual void update()=0;
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;
//status
static const int CAMERA_IDLE = 0;
static const int CAMERA_BUSY = 1;
static const int IMAGE_ERROR = 2;
//detecting the camera
static const int NO_CAMERA = 1;
static const int INIT_ERROR = 2;
protected:
//int mode;
//int trig;
int roix1;
int roix2;
int roiy1;
int roiy2;
int hbin;
int vbin;
//char table[300];
virtual void getSettings()=0;
};
}
#endif