forked from atsommer/Simplicio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSC2Driver.h
More file actions
63 lines (59 loc) · 1.56 KB
/
Copy pathSC2Driver.h
File metadata and controls
63 lines (59 loc) · 1.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
61
62
63
#ifndef SC2_DRIVER
#define SC2_DRIVER
#include "Driver.h"
#include "windows.h"
#include "sc2_SDKAddendum.h"
#include "sc2_SDKStructures.h"
#include "SC2_CamExport.h"
#include "pco_structures.h"
#include "pco_convstructures.h"
#include "pco_convexport.h"
#include "pco_convdlgexport.h"
#include "PCO_Err.h"
#include "PCO_Errt.h"
#include "Sc2_DialogExport.h"
#include "sc2_defs.h"
namespace forms2{
public ref class SC2Driver : Driver {
public:
SC2Driver();
~SC2Driver(){}
virtual int initCamera() override;
virtual int openCameraDialog() override;
virtual void lockCameraDialog(bool lock) override;
virtual void closeCamera() override;
virtual void expose() override;
virtual void stop() override;
virtual int getImageStatus() override;
virtual int getImageWidth() override;
virtual int getImageHeight() override;
virtual int armCamera() override;
virtual void readImage(UInt16 *buffer) override;
virtual String^ getDriverName() override {return gcnew String("SC2 Cam");}
//settings
virtual int getRows() override;
virtual int getCols() override;
virtual bool isDouble() override;
virtual void update() override;
protected:
//int mode;
//int trig;
//char table[300];
HANDLE hCam;
HANDLE hDialog;
SHORT sBufNr;
HANDLE hEvent;
WORD* wBuf;
PCO_General strGeneral;
PCO_CameraType strCamType;
PCO_Sensor strSensor;
PCO_Description strDescription;
PCO_Timing strTiming;
PCO_Storage strStorage;
PCO_Recording strRecording;
PCO_Image strImage;
virtual void getSettings() override;
virtual void disconnected();
};
}
#endif