Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

88 lines
2.0 KiB

#ifndef __LG__DEVICE__DOPLER__H__INCLUDED__
#define __LG__DEVICE__DOPLER__H__INCLUDED__
#pragma once
#ifdef __BORLANDC__
#include "..\LgLib\Device\LgDevPTZ.h"
#else
#include "LgDevPTZ.h"
#endif
class CLgDeviceDopler : public CLgDevicePTZ
{
public:
CLgDeviceDopler();
virtual ~CLgDeviceDopler();
public:
enum { MAX_DOPLER_MASK = 8 };
public:
#pragma pack(1)
typedef struct DOPLER
{
BOOL bEnable;
PTZ_DEGREE dPanStep;
DWORD dwTimeout;
}DOPLER, *PDOPLER;
typedef struct DOPLER_ALARM
{
BOOL bAlarm;
PTZ_DEGREE dPan;
}DOPLER_ALARM, *PDOPLER_ALARM;
typedef struct DOPLER_MASK
{
SHORT nStartAngle;
SHORT nStopAngle;
}DOPLER_MASK, *PDOPLER_MASK;
typedef struct DOPLER_MASK_ARRAY
{
BYTE bEnable;
BYTE nCount;
DOPLER_MASK pMask[MAX_DOPLER_MASK];
}DOPLER_MASK_ARRAY, *PDOPLER_MASK_ARRAY;
#pragma pack()
public:
BOOL CmdSetDopler( BOOL bEnable, PTZ_DEGREE dPanStep, DWORD dwTimeout );
BOOL CmdGetDopler();
BOOL CmdSetDoplerMask( PDOPLER_MASK_ARRAY pMask );
BOOL CmdGetDoplerMask();
protected:
virtual void OnEvtSetDopler( BOOL bEnable, PTZ_DEGREE dPanStep, DWORD dwTimeout ) = 0;
virtual void OnEvtGetDopler( BOOL bEnable, PTZ_DEGREE dPanStep, DWORD dwTimeout ) = 0;
virtual void OnEvtSetDoplerMask( PDOPLER_MASK_ARRAY pMask ) = 0;
virtual void OnEvtGetDoplerMask( PDOPLER_MASK_ARRAY pMask ) = 0;
virtual void OnEvtDoplerAlarm( BOOL bAlarm, PTZ_DEGREE dPan ) = 0;
public:
enum
{
CMD_SET_DOPLER = CMD_DEVICE_PTZ + 1,
CMD_GET_DOPLER = CMD_DEVICE_PTZ + 2,
CMD_SET_DOPLER_MASK = CMD_DEVICE_PTZ + 3,
CMD_GET_DOPLER_MASK = CMD_DEVICE_PTZ + 4,
CMD_DEVICE_DOPLER = CMD_DEVICE_PTZ + 5,
EVT_SET_DOPLER = EVT_DEVICE_PTZ + 1,
EVT_GET_DOPLER = EVT_DEVICE_PTZ + 2,
EVT_SET_DOPLER_MASK = CMD_DEVICE_PTZ + 3,
EVT_GET_DOPLER_MASK = CMD_DEVICE_PTZ + 4,
EVT_DOPLER_ALARM = EVT_DEVICE_PTZ + 5,
EVT_DEVICE_DOPLER = EVT_DEVICE_PTZ + 6,
};
protected:
DOPLER m_Dopler;
DOPLER_MASK_ARRAY m_Mask;
};
#endif