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.

66 lines
2.5 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: LgNetMessagePTZ.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgNetMessagePTZ.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__NET__MESSAGE__PTZ__H__INCLUDED__
  15. #define __LG__NET__MESSAGE__PTZ__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "LgNetMessage.h"
  20. #include "..\Device\LgDevPTZ.h"
  21. class CLgNetMessagePTZ :
  22. public CLgNetMessage
  23. {
  24. public:
  25. BOOL BuildCmdGetPTZ();
  26. BOOL BuildCmdSetPTZ( CLgDevicePTZ::PTZ_DEGREE dPan, CLgDevicePTZ::PTZ_DEGREE dTilt, CLgDevicePTZ::PTZ_PERCENT dZoom );
  27. BOOL BuildCmdSetIris( CLgDevicePTZ::PTZ_PERCENT dIris );
  28. BOOL BuildCmdSetFocus( CLgDevicePTZ::PTZ_PERCENT dFocus );
  29. BOOL BuildCmdGetFocus();
  30. BOOL BuildCmdMoveTilt( BOOL bUp, CLgDevicePTZ::PTZ_PERCENT dSpeed );
  31. BOOL BuildCmdMovePan( BOOL bRight, CLgDevicePTZ::PTZ_PERCENT dSpeed );
  32. BOOL BuildCmdMoveZoom( BOOL bTele, CLgDevicePTZ::PTZ_PERCENT dSpeed );
  33. BOOL BuildCmdMoveFocus( BOOL bFar, CLgDevicePTZ::PTZ_PERCENT dSpeed );
  34. BOOL BuildCmdWiper( BOOL bOn );
  35. public:
  36. BOOL BuildEvtGetPTZ( CLgDevicePTZ::PTZ_DEGREE dPan, CLgDevicePTZ::PTZ_DEGREE dTilt, CLgDevicePTZ::PTZ_PERCENT dZoom );
  37. BOOL BuildEvtSetPTZ( CLgDevicePTZ::PTZ_DEGREE dPan, CLgDevicePTZ::PTZ_DEGREE dTilt, CLgDevicePTZ::PTZ_PERCENT dZoom );
  38. BOOL BuildEvtSetIris( CLgDevicePTZ::PTZ_PERCENT dIris );
  39. BOOL BuildEvtSetFocus( CLgDevicePTZ::PTZ_PERCENT dFocus );
  40. BOOL BuildEvtGetFocus( CLgDevicePTZ::PTZ_PERCENT dFocus );
  41. BOOL BuildEvtMoveTilt( BOOL bUp, CLgDevicePTZ::PTZ_PERCENT dSpeed );
  42. BOOL BuildEvtMovePan( BOOL bRight, CLgDevicePTZ::PTZ_PERCENT dSpeed );
  43. BOOL BuildEvtMoveZoom( BOOL bTele, CLgDevicePTZ::PTZ_PERCENT dSpeed );
  44. BOOL BuildEvtMoveFocus( BOOL bTele, CLgDevicePTZ::PTZ_PERCENT dSpeed );
  45. BOOL BuildEvtWiper( BOOL bOn );
  46. public:
  47. BOOL GetPTZ( CLgDevicePTZ::PPTZ_POSITION pPosition );
  48. BOOL GetPan( CLgDevicePTZ::PPTZ_PAN pPan );
  49. BOOL GetTilt( CLgDevicePTZ::PPTZ_TILT pTilt );
  50. BOOL GetZoom( CLgDevicePTZ::PPTZ_ZOOM pZoom );
  51. BOOL GetIris( CLgDevicePTZ::PTZ_PERCENT *pIris );
  52. BOOL GetWiper( PBOOL pOn );
  53. BOOL GetFocus( CLgDevicePTZ::PTZ_PERCENT *pFocus );
  54. BOOL GetFocus( CLgDevicePTZ::PPTZ_FOCUS pFocus );
  55. };
  56. #endif