//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: DeviceCameraTKS576.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of DeviceCameraTKS576.h //---------------------------------------------------------------------------- #ifndef __DEVICE__CAMERA__TK__S__576__H__INCLUDED__ #define __DEVICE__CAMERA__TK__S__576__H__INCLUDED__ #if _MSC_VER > 1000 #pragma once #endif #include "..\DLIB\DevicePTZ.h" #include "..\DLIB\Device.h" #include "..\..\LgLib\Net\LgNetDevicePTZTKS576.h" #include "SocketCameraTKS576.h" class CDeviceCameraTKS576 : public CDevice, public CDevicePTZ, public CLgNetDevicePTZTKS576 { public: CDeviceCameraTKS576(); virtual ~CDeviceCameraTKS576(); public: virtual void SetCameraPTZ( CVideoCameraPTZ *pPTZ ) { CDevicePTZ::SetCameraPTZ( pPTZ ); CDevicePTZ::SetPTZ(0,0,0); } protected: virtual void PTZ_PostInit() { CDevicePTZ::PTZ_PostInit(); ((CSocketCameraTKS576*)m_pSocket)->Resume(); } virtual void PTZ_PostReset() { CDevicePTZ::PTZ_PostReset(); ((CSocketCameraTKS576*)m_pSocket)->Resume(); } virtual void PTZ_PostSetPTZ( double pan, double tilt, double zoom ) { CDevicePTZ::PTZ_PostSetPTZ( pan, tilt, zoom ); ((CSocketCameraTKS576*)m_pSocket)->Resume(); } virtual void PTZ_PostGetPTZ() { CDevicePTZ::PTZ_PostGetPTZ(); ((CSocketCameraTKS576*)m_pSocket)->Resume(); } virtual void PTZ_PostPan( double speed, int nDir ) { CDevicePTZ::PTZ_PostPan( speed, nDir ); ((CSocketCameraTKS576*)m_pSocket)->Resume(); } virtual void PTZ_PostTilt( double speed, int nDir ) { CDevicePTZ::PTZ_PostTilt( speed, nDir ); ((CSocketCameraTKS576*)m_pSocket)->Resume(); } virtual void PTZ_PostZoom( double speed, int nDir ) { CDevicePTZ::PTZ_PostZoom( speed, nDir ); ((CSocketCameraTKS576*)m_pSocket)->Resume(); } virtual void PTZ_PostIris( double value ) { CDevicePTZ::PTZ_PostIris( value ); ((CSocketCameraTKS576*)m_pSocket)->Resume(); } virtual void PTZ_PostWiper( BOOL bOn ) { CDevicePTZ::SetReady(); } protected: virtual BOOL DeviceProc( CLgNetSocket *pSocket, CProtocol *pProtocol ); private: CLgNetObject m_MessageDispatcher; }; #endif