SEMCommonConst.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #include "stdafx.h"
  2. #include "SEMCommonConst.h"
  3. namespace OTSController {
  4. CSEMCommonConst::CSEMCommonConst()
  5. {
  6. }
  7. CSEMCommonConst::~CSEMCommonConst()
  8. {
  9. }
  10. BOOL COTSPreferenceData::m_bIsEMAutoAxisDirection = TRUE;
  11. int COTSPreferenceData::m_nSampleChamberWidth(SAMPLECHAMBER_WIDTH_DEFAULT);
  12. BOOL COTSPreferenceData::m_bIsEMAxisXRightDirection = TRUE;
  13. int COTSPreferenceData::m_nSampleChamberHeight(SAMPLECHAMBER_HEIGHT_DEFAULT);
  14. BOOL COTSPreferenceData::m_bIsEMAxisYUpDirection = TRUE;
  15. /*CString OTSSEMController::GetName(const int a_nId)
  16. {
  17. if (a_nId < (int)SEM_ID::MIN || a_nId >(int)SEM_ID::MAX)
  18. {
  19. return _T("Invalid EM");
  20. }
  21. return SEM_CONTROLLER_NAMES[a_nId - (int)SEM_ID::MIN];
  22. }*/
  23. // convert SEM position
  24. void ConvertEMPosition(const BOOL a_bIsAutoAxis,
  25. const double a_dStageWidth, const BOOL a_bIsXRightDirection,
  26. const double a_dStageHeight, const BOOL a_bIsYUpDirection,
  27. double& a_dPositionX, double& a_dPositionY)
  28. {
  29. if (a_bIsAutoAxis)
  30. {
  31. return;
  32. }
  33. if (!a_bIsXRightDirection)
  34. {
  35. a_dPositionX = a_dStageWidth - a_dPositionX;
  36. }
  37. if (!a_bIsYUpDirection)
  38. {
  39. a_dPositionY = a_dStageHeight - a_dPositionY;
  40. }
  41. }
  42. int COTSPreferenceData::m_nEMScreenRatioIndex(0);
  43. /*CString EDSController::GetName(const int a_nId)
  44. {
  45. if (a_nId < (int)EDS_ID::MIN || a_nId >(int)EDS_ID::MAX)
  46. {
  47. return _T("Invalid EDS");
  48. }
  49. return EDS_CONTROLLER_NAMES[a_nId - (int)EDS_ID::MIN];
  50. }*/
  51. //CString ScanController::GetName(const int a_nId)
  52. //{
  53. // if (a_nId < (int)SCANNER_ID::MIN || a_nId >(int)SCANNER_ID::MAX)
  54. // {
  55. // return _T("Invalid Scan");
  56. // }
  57. // return "";// SCANER_CONTROLLER_NAMES[a_nId - (int)SCANNER_ID::MIN];
  58. //}
  59. }