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.

93 lines
2.1 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 02/04/2000
  5. // Last modification: 08/10/2003
  6. // Project Intruder Position Indicator
  7. // SUBSYSTEM: Camera controls
  8. // FILE: CameraDlg.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of class CCameraDlg
  13. //----------------------------------------------------------------------------
  14. #ifndef __CAMERADLG__H__INCLUDED__
  15. #define __CAMERADLG__H__INCLUDED__
  16. #include "VideoWnd.h"
  17. #include "CameraPtz.h"
  18. #include "LogFiles.h"
  19. #include "Locator.h"
  20. //#include "Indicator.h"
  21. #include "Structs.h"
  22. #include "DialogItemsPosition.h"
  23. enum {MANUAL, ROTATE_LEFT, ROTATE_RIGHT};
  24. struct PTZ_CTRL
  25. {
  26. INT tiltSpeed;
  27. INT panSpeed;
  28. INT zoomSpeed;
  29. INT rotate;
  30. };
  31. class CApplication;
  32. class CCameraDlg
  33. {
  34. public:
  35. CCameraDlg();
  36. ~CCameraDlg();
  37. void SetDebugMode(BOOL fDebug) { m_bDebugMode = fDebug; }
  38. void SetCameraAutoCheck(BOOL fCheck);
  39. void SetIrisCheck(BOOL fDay);
  40. void SetFenceCheck(BOOL fCheck);
  41. void SetDoplerCheck(BOOL bOn);
  42. void EnableCameraAuto(BOOL fEnable);
  43. void EnableNavigate(BOOL fEnable);
  44. BOOL Create(HWND hParentWnd, CApplication *pApplication, CCameraPtz *pPTZ, CLgsRadarWnd* pLocator, LPPOINT pPoint, LPSIZE pSize);
  45. HWND GetSafeHwnd() const;
  46. private:
  47. void OnTimer();
  48. LRESULT OnSize( WPARAM, LPARAM );
  49. LRESULT OnMove( WPARAM, LPARAM );
  50. LRESULT OnPaint( WPARAM, LPARAM );
  51. LRESULT OnEraseBackground( WPARAM, LPARAM );
  52. private:
  53. void OnDraw( HDC );
  54. private:
  55. static BOOL CALLBACK WndProc_(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
  56. private:
  57. CApplication *m_pApplication;
  58. CLgsRadarWnd *m_pLocator;
  59. PTZ_CTRL m_ptzCtrl;
  60. CCameraPtz *m_pPTZ;
  61. HBITMAP m_hBitmap;
  62. HBITMAP m_hBBitmaps[40];
  63. BYTE m_CameraAddress;
  64. HWND m_hWnd;
  65. SIZE m_Size;
  66. BOOL m_bDebugMode;
  67. private:
  68. CDialogItemsPosition m_DialogItemsPosition;
  69. };
  70. inline
  71. HWND CCameraDlg::GetSafeHwnd() const
  72. {
  73. return m_hWnd;
  74. }
  75. #endif