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.
75 lines
2.7 KiB
75 lines
2.7 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: DeviceMigvanPTZ.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of DeviceMigvanPTZ.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __DEVICE__MIGVAN__PTZ__H__INCLUDED__
|
|
#define __DEVICE__MIGVAN__PTZ__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "Device.h"
|
|
#include "DevicePTZ.h"
|
|
#include "SocketMigvanPTZ.h"
|
|
#include "..\..\LgLib\Net\LgNetDeviceMigvanPTZ.h"
|
|
|
|
class CDeviceMigvanPTZ :
|
|
public CDevice,
|
|
public CDevicePTZ,
|
|
public CLgNetDeviceMigvanPTZ
|
|
{
|
|
public:
|
|
CDeviceMigvanPTZ();
|
|
virtual ~CDeviceMigvanPTZ();
|
|
|
|
public:
|
|
void InitDevice() { PTZ_PostInit(); }
|
|
|
|
public:
|
|
void SetHardwareID( LPBYTE pID ) { ::CopyMemory( m_pHardwareID, pID, sizeof(BYTE) * 5 ); }
|
|
void SetHardwareID( BYTE id0, BYTE id1, BYTE id2, BYTE id3, BYTE id4 ) { m_pHardwareID[0] = id0; m_pHardwareID[1] = id1; m_pHardwareID[2] = id2; m_pHardwareID[3] = id3; m_pHardwareID[4] = id4; }
|
|
|
|
public:
|
|
void SetAutoInit( BOOL bAutoInit ) { m_bAutoInit = bAutoInit; }
|
|
|
|
protected:
|
|
virtual void SetAddress( INT nAddress )
|
|
{
|
|
CLgNetDeviceMigvanPTZ::SetAddress( nAddress );
|
|
PTZ_PostInit();
|
|
}
|
|
|
|
protected:
|
|
virtual void PTZ_PostInit() { CDevicePTZ::PTZ_PostInit(); ((CSocketMigvanPTZ*)m_pSocket)->Resume(); }
|
|
virtual void PTZ_PostReset() { CDevicePTZ::PTZ_PostReset(); ((CSocketMigvanPTZ*)m_pSocket)->Resume(); }
|
|
virtual void PTZ_PostSetPTZ( double pan, double tilt, double zoom ) { CDevicePTZ::PTZ_PostSetPTZ( pan, tilt, zoom ); ((CSocketMigvanPTZ*)m_pSocket)->Resume(); }
|
|
virtual void PTZ_PostGetPTZ() { CDevicePTZ::PTZ_PostGetPTZ(); ((CSocketMigvanPTZ*)m_pSocket)->Resume(); }
|
|
virtual void PTZ_PostPan( double speed, int nDir ) { CDevicePTZ::PTZ_PostPan( speed, nDir ); ((CSocketMigvanPTZ*)m_pSocket)->Resume(); }
|
|
virtual void PTZ_PostTilt( double speed, int nDir ) { CDevicePTZ::PTZ_PostTilt( speed, nDir ); ((CSocketMigvanPTZ*)m_pSocket)->Resume(); }
|
|
virtual void PTZ_PostZoom( double speed, int nDir ) { CDevicePTZ::PTZ_PostZoom( speed, nDir ); ((CSocketMigvanPTZ*)m_pSocket)->Resume(); }
|
|
virtual void PTZ_PostIris( double value ) { CDevicePTZ::PTZ_PostIris( value ); ((CSocketMigvanPTZ*)m_pSocket)->Resume(); }
|
|
virtual void PTZ_PostWiper( BOOL bOn ) { CDevicePTZ::SetReady(); }
|
|
|
|
protected:
|
|
virtual BOOL DeviceProc( CLgNetSocket *pSocket, CProtocol *pProtocol );
|
|
|
|
private:
|
|
BOOL m_bEnable;
|
|
CLgNetObject m_MessageDispatcher;
|
|
|
|
private:
|
|
BYTE m_pHardwareID[5];
|
|
BOOL m_bAutoInit;
|
|
};
|
|
|
|
#endif
|