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.

62 lines
1.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: BorderLGS.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of BorderLGS.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __BORDER__LGS__H__INCLUDED__
  15. #define __BORDER__LGS__H__INCLUDED__
  16. #pragma once
  17. class CBorderLGS
  18. {
  19. public:
  20. CBorderLGS();
  21. virtual ~CBorderLGS();
  22. public:
  23. void Destroy();
  24. void Serialize( CArchive& ar );
  25. void LoadAsSingleIPI( LPCTSTR pFileName );
  26. void SaveAsSingleIPI( LPCTSTR pFileName );
  27. BOOL Copy( CBorderLGS *pBorderLGS );
  28. public:
  29. typedef struct
  30. {
  31. double dAngle[2];
  32. double dRange[2];
  33. int bExist[2];
  34. }BORDER, *PBORDER;
  35. public:
  36. PBORDER operator []( int nIndex ) { return GetAt( nIndex ); }
  37. int GetCount() { return m_nBorder; }
  38. PBORDER GetAt( int nIndex );
  39. public:
  40. BOOL Draw( CDC *pDC, CPoint *pCenter, double dScaleToPixel, double dRotateAngle = 0.0 );
  41. protected:
  42. PBORDER m_pBorder;
  43. INT m_nBorder;
  44. };
  45. inline
  46. CBorderLGS::PBORDER CBorderLGS::GetAt( int nIndex )
  47. {
  48. if( nIndex < 0 || nIndex >= m_nBorder )
  49. return NULL;
  50. return m_pBorder + nIndex;
  51. }
  52. #endif