Subversion Repositories seema-scanner

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 jakw 1
#pragma once
2
#pragma warning(disable:4996)
3
#ifndef CAMERAIDSIMAGING_H
4
#define CAMERAIDSIMAGING_H
5
 
6
// IDS specific type
7
#ifdef WIN32
8
    typedef unsigned long HIDS;
9
    typedef void * HANDLE;
10
#else
11
    typedef unsigned int HIDS;
12
#endif
13
 
14
#include "Camera.h"
15
 
16
class CameraIDSImaging : public Camera {
17
    public:
18
        // Static methods
19
        static std::vector<CameraInfo> getCameraList();
20
        // Interface function
21
        CameraIDSImaging(unsigned int camNum);
22
        CameraSettings getCameraSettings();
23
        void setCameraSettings(CameraSettings);
24
        void startCapture();
25
        void stopCapture();
26
        CameraFrame lockFrame();
27
        void unlockFrame();
28
        CameraFrame getSingleFrame();
29
        size_t getFrameSizeBytes();
30
        void getFrameWidthHeight(unsigned int *width, unsigned int *height);
31
        ~CameraIDSImaging();
32
    private:
33
        HIDS camera;
34
        unsigned int frameWidth, frameHeight;
35
        char* frameMemory; // 10 char pointers
36
        int memoryID;
37
        #ifdef WIN32
38
            HANDLE hEvent;
39
        #endif
40
};
41
 
42
#endif