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.

75 lines
1.8 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: CameraPositionWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of CameraPositionWnd.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __CAMERA__POSITION__WND__H__INCLUDED__
  15. #define __CAMERA__POSITION__WND__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. #include "..\LgLib\MFC\MemoryDC.h"
  20. class CCameraPositionWnd : public CWnd
  21. {
  22. // Construction
  23. public:
  24. CCameraPositionWnd();
  25. // Attributes
  26. public:
  27. // Operations
  28. public:
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CCameraPositionWnd)
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. void SetPosition( double pan, double tilt, double zoom, BOOL bSynch );
  36. void OnDraw( CDC *pDC );
  37. virtual ~CCameraPositionWnd();
  38. BOOL Create( CWnd* pParentWnd, CRect &rect );
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(CCameraPositionWnd)
  42. afx_msg void OnPaint();
  43. afx_msg void OnSize(UINT nType, int cx, int cy);
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. private:
  47. typedef struct PTZ
  48. {
  49. double dPan;
  50. double dTilt;
  51. double dZoom;
  52. }PTZ, *PPTZ;
  53. private:
  54. PTZ m_PTZ;
  55. BOOL m_bSynchronized;
  56. private:
  57. CLgMemoryDC m_MemoryDC;
  58. };
  59. /////////////////////////////////////////////////////////////////////////////
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_CAMERAPOSITIONWND_H__E025BFAE_C578_4D0D_B404_00E889711573__INCLUDED_)