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.

60 lines
2.3 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: DeviceCameraVicon.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of DeviceCameraVicon.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __DEVICE__CAMERA__VICON__H__INCLUDED__
  15. #define __DEVICE__CAMERA__VICON__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. #include "..\DLIB\DevicePTZ.h"
  20. #include "..\DLIB\Device.h"
  21. #include "..\..\LgLib\Net\LgNetDevicePTZVicon.h"
  22. #include "SocketCameraVicon.h"
  23. class CDeviceCameraVicon :
  24. public CDevice,
  25. public CDevicePTZ,
  26. public CLgNetDevicePTZVicon
  27. {
  28. public:
  29. CDeviceCameraVicon();
  30. virtual ~CDeviceCameraVicon();
  31. public:
  32. virtual void SetCameraPTZ( CVideoCameraPTZ *pPTZ )
  33. {
  34. CDevicePTZ::SetCameraPTZ( pPTZ );
  35. CDevicePTZ::SetPTZ(0,0,0);
  36. }
  37. protected:
  38. virtual void PTZ_PostInit() { CDevicePTZ::PTZ_PostInit(); ((CSocketCameraVicon*)m_pSocket)->Resume(); }
  39. virtual void PTZ_PostReset() { CDevicePTZ::PTZ_PostReset(); ((CSocketCameraVicon*)m_pSocket)->Resume(); }
  40. virtual void PTZ_PostSetPTZ( double pan, double tilt, double zoom ) { CDevicePTZ::PTZ_PostSetPTZ( pan, tilt, zoom ); ((CSocketCameraVicon*)m_pSocket)->Resume(); }
  41. virtual void PTZ_PostGetPTZ() { CDevicePTZ::PTZ_PostGetPTZ(); ((CSocketCameraVicon*)m_pSocket)->Resume(); }
  42. virtual void PTZ_PostPan( double speed, int nDir ) { CDevicePTZ::PTZ_PostPan( speed, nDir ); ((CSocketCameraVicon*)m_pSocket)->Resume(); }
  43. virtual void PTZ_PostTilt( double speed, int nDir ) { CDevicePTZ::PTZ_PostTilt( speed, nDir ); ((CSocketCameraVicon*)m_pSocket)->Resume(); }
  44. virtual void PTZ_PostZoom( double speed, int nDir ) { CDevicePTZ::PTZ_PostZoom( speed, nDir ); ((CSocketCameraVicon*)m_pSocket)->Resume(); }
  45. virtual void PTZ_PostIris( double value ) { CDevicePTZ::PTZ_PostIris( value ); ((CSocketCameraVicon*)m_pSocket)->Resume(); }
  46. virtual void PTZ_PostWiper( BOOL bOn ) { CDevicePTZ::SetReady(); }
  47. protected:
  48. virtual BOOL DeviceProc( CLgNetSocket *pSocket, CProtocol *pProtocol );
  49. private:
  50. CLgNetObject m_MessageDispatcher;
  51. };
  52. #endif