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
2.4 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: SingleIPI.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of SingleIPI.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __SINGLE__IPI__H__INCLUDED__
  15. #define __SINGLE__IPI__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\..\LgLib\Thread.h"
  20. #include "..\..\SingleIPI\Profile.h"
  21. #include "ObjectFactory.h"
  22. class CHiddenZoneList;
  23. class CBorderLGS;
  24. using namespace OFNS;
  25. class CSingleIPI : public CLgThread
  26. {
  27. public:
  28. CSingleIPI();
  29. virtual ~CSingleIPI();
  30. public:
  31. bool SetBorderLGS( CBorderLGS *pBorderLGS );
  32. bool SetCameraParams( INT nType, LPCTSTR pCommPort, int nVideoDevice, int nVideoInput,
  33. BOOL bMigvanAuto, PBYTE pMigvanSerialNumber, INT nMic1300Address,
  34. BOOL bRemoteCamera, double dShift, double *pTiltTable, COFDeviceSensor::PTRANSFORM pTransform,
  35. double *pZoomTable, double *pFocusTable, INT nDoplerAngle, DWORD dwDoplerTimeout );
  36. bool SetLgsParams( LPCTSTR pCommPort, int nBoudRate, int nAddress, double dRange,
  37. int MasterOffset, int MasterDelta, int MasterWidth, int MasterOrder, int MasterSST, int MasterFlip,
  38. int SlaveOffset, int SlaveDelta, int SlaveWidth, int SlaveOrder, int SlaveSST, int SlaveFlip );
  39. bool SetZeroShift( double dZeroShift, BOOL bClockwise );
  40. public:
  41. bool GetCameraParams( PBOOL pRemoteCamera, double *pShift, double *pTiltTable, COFDeviceSensor::PTRANSFORM pTransform,
  42. double *pZoomTable, double *pFocusTable, PINT pDoplerAngle, PDWORD pDoplerTimeout );
  43. public:
  44. bool GetLgsParams( double &dRange,
  45. int &MasterOffset, int &MasterDelta, int &MasterWidth, int &MasterOrder, int &MasterSST, int &MasterFlip,
  46. int &SlaveOffset, int &SlaveDelta, int &SlaveWidth, int &SlaveOrder, int &SlaveSST, int &SlaveFlip );
  47. public:
  48. bool GetZeroShift( double *pZeroShift, PBOOL pClockwise );
  49. public:
  50. bool Run( bool bWait, LPCTSTR pExecutableName, CWnd *pWnd );
  51. protected:
  52. virtual DWORD ThreadProc();
  53. bool OnRun();
  54. protected:
  55. CProfile m_Profile;
  56. CBorderLGS *m_pBorderLGS;
  57. TCHAR m_pExecutableName[MAX_PATH];
  58. CWnd *m_pParentWnd;
  59. };
  60. #endif