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.

64 lines
1.7 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: 31/07/2001
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: MapData.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of MapData.cpp
  13. //----------------------------------------------------------------------------
  14. // MapData.cpp: implementation of the CMapData class.
  15. //////////////////////////////////////////////////////////////////////
  16. #include "stdafx.h"
  17. //#include "Chicago.h"
  18. #include "MapData.h"
  19. #include "AuxLib.h"
  20. #include "AfxTempl.h"
  21. #include "Version.h"
  22. #ifdef _DEBUG
  23. #undef THIS_FILE
  24. static char THIS_FILE[]=__FILE__;
  25. #define new DEBUG_NEW
  26. #endif
  27. CMapData::CMapData()
  28. {
  29. }
  30. CMapData::~CMapData()
  31. {
  32. }
  33. BOOL CMapData::Load(LPCTSTR pFileName)
  34. {
  35. return m_Background.Load( pFileName );
  36. }
  37. /*
  38. void CMapData::Paint( CDC *pDC, CRect& viewRect, SDPOINT& mapShift, double mapScale, BOOL bBigSize )
  39. {
  40. CRect rect = CalcDrawRect( viewRect, (CSize&)m_Background.GetSize(), mapShift, mapScale );
  41. m_Background.Draw( pDC, &rect );
  42. if( m_pSensorArray )
  43. m_pSensorArray->Paint( pDC, viewRect, (CSize&)m_Background.GetSize(), mapShift, mapScale, FALSE, bBigSize );
  44. }
  45. */
  46. //DEL BOOL CMapData::PaintMap( CDC *pDC, CRect& viewRect, SDPOINT& mapShift, double mapScale )
  47. //DEL {
  48. //DEL CRect rect = CalcDrawRect( viewRect, (CSize&)m_Background.GetSize(), mapShift, mapScale );
  49. //DEL
  50. //DEL return m_Background.Draw( pDC, &rect );
  51. //DEL }
  52. /*
  53. void CMapData::SetSensorArray(CSensorArray *pSensorArray)
  54. {
  55. m_pSensorArray = pSensorArray;
  56. }
  57. */