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.

71 lines
1.6 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: SensorDC.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of SensorDC.h
  13. //----------------------------------------------------------------------------
  14. // SensorDC.h: interface for the CSensorDC class.
  15. //
  16. //////////////////////////////////////////////////////////////////////
  17. #ifndef __SENSOR__DC__H__INCLUDED__
  18. #define __SENSOR__DC__H__INCLUDED__
  19. #include "Sensor.h"
  20. #include "DirectInputSet.h"
  21. #include "ObjectFactory.h"
  22. using namespace OFNS;
  23. class CSensorDC :
  24. public CSensor
  25. {
  26. public:
  27. CSensorDC();
  28. virtual ~CSensorDC();
  29. public:
  30. virtual void Reset();
  31. void AddBitPos( CLgDPoint& pos );
  32. CLgDPoint *GetBitPos( int nBit ) { return (m_nBitPos > nBit) ? &m_pBitPos[ nBit ] : NULL; }
  33. int GetBitPosCount() { return m_nBitPos; }
  34. CLgMemoryDC* GetBG() { return m_pBG; }
  35. void SetBG( CLgMemoryDC* pBG ) { m_pBG = pBG; }
  36. void CheckState();
  37. void SetPTZ( double pan, double tilt, double zoom );
  38. public:
  39. CDirectInputSet& GetSensorInputSet() { return m_SensorInputSet; }
  40. protected:
  41. virtual void OnCommand( INT nCommand, BOOL bOn );
  42. private:
  43. // CDirectInput **m_ppInput;
  44. // int m_nInput;
  45. int m_nBitPos;
  46. CLgDPoint *m_pBitPos;
  47. CLgMemoryDC *m_pBG;
  48. struct PTZ
  49. {
  50. double pan;
  51. double tilt;
  52. double zoom;
  53. }m_PTZ;
  54. private:
  55. CDirectInputSet m_SensorInputSet;
  56. };
  57. #endif