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.

61 lines
1.2 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: 12/12/2001
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgPolygon.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgPolygon.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__POLYGON__H__INCLUDED__
  15. #define __LG__POLYGON__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "LgAux.h"
  20. class CLgPolygon
  21. {
  22. public:
  23. CLgPolygon();
  24. ~CLgPolygon();
  25. public:
  26. BOOL Add( CLgDPoint &dp );
  27. void RemoveAll();
  28. public:
  29. CLgDPoint& operator[] (INT nIndex) { return m_pPoint[nIndex]; }
  30. INT GetCount() { return m_nCount; }
  31. private:
  32. CLgDPoint *m_pPoint;
  33. INT m_nCount;
  34. };
  35. class CLgPolyPolygon
  36. {
  37. public:
  38. CLgPolyPolygon();
  39. ~CLgPolyPolygon();
  40. public:
  41. BOOL Add( CLgPolygon& polygon );
  42. void RemoveAll();
  43. public:
  44. CLgPolygon& operator[] (INT nIndex) { return m_pPolygon[nIndex]; }
  45. INT GetCount() { return m_nCount; }
  46. private:
  47. CLgPolygon *m_pPolygon;
  48. INT m_nCount;
  49. };
  50. #endif