DataPublic.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using OTSDataType;
  7. namespace OTSModelSharp
  8. {
  9. public class DataPublic
  10. {
  11. // program manager file mark
  12. public const int PROG_MGR_FILE_MARK = 'P' + 'R' + 'O' + 'J' + 'E' + 'K' + 'T' + 'M' + 'A' + 'N' + 'A' + 'G' + 'E' + 'R';
  13. // program manger file version
  14. public const string PROG_MGR_FILE_VERSION = "1.1.1";
  15. public const int SCREEN_WIDTH_MAG100 = 1142;
  16. //stage data x start
  17. public const int STAGE_DATA_X_AXIS_START = -100000;
  18. //stage data x end
  19. public const int STAGE_DATA_X_AXIS_END = 100000;
  20. //stage data y start
  21. public const int STAGE_DATA_Y_AXIS_START = -100000;
  22. //stage data y end
  23. public const int STAGE_DATA_Y_AXIS_END = 100000;
  24. //stage data x direction
  25. public const otsdataconst.OTS_X_AXIS_DIRECTION STAGE_DATA_X_AXIS_DIRECTION = otsdataconst.OTS_X_AXIS_DIRECTION.LEFT_TOWARD;
  26. //stage data y direction
  27. public const otsdataconst.OTS_Y_AXIS_DIRECTION STAGE_DATA_Y_AXIS_DIRECTION = otsdataconst.OTS_Y_AXIS_DIRECTION.UP_TOWARD;
  28. // auto name
  29. public const string AUTO_NAME = "Sample";
  30. // sample name
  31. public const string SAMPLE_NAME = "Sample";
  32. // measure switch
  33. public const int MEASURE_SWITCH = 1;
  34. // stop mode
  35. public const otsdataconst.OTS_MEASURE_STOP_MODE STOPT_MODE = otsdataconst.OTS_MEASURE_STOP_MODE.CoverMode;
  36. // stop time
  37. public const int MEASURE_TIME = 360;
  38. // stop field num
  39. public const int FIELDS_NUM = 200;
  40. // stop part num
  41. public const int PARTICL_NUM = 50000;
  42. // get image mode
  43. public const otsdataconst.OTS_GET_IMAGE_MODE FETCH_IMAGE_MODE = otsdataconst.OTS_GET_IMAGE_MODE.Spiral;
  44. // scan speed
  45. public const otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS SCAN_SPEED = otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS.meddium;
  46. // image size
  47. public const otsdataconst.OTS_IMAGE_RESULOTION_OPTIONS IMAGE_SIZE = otsdataconst.OTS_IMAGE_RESULOTION_OPTIONS._1024_768;
  48. // particle area
  49. public readonly CDoubleRange INCA_AREA = new CDoubleRange(5, 100);
  50. // background gray
  51. public readonly CIntRange BACK_GRAY = new CIntRange(100, 255);
  52. // particle gray
  53. public readonly CIntRange INCA_GRAY = new CIntRange(5, 100);
  54. // XRay scan mode
  55. public const otsdataconst.OTS_X_RAY_SCAN_MODE SCAN_MODE = otsdataconst.OTS_X_RAY_SCAN_MODE.PointMode;
  56. // XRay search speed
  57. public const otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS SEARCH_SPEED = otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS.meddium;
  58. // XRay search count
  59. public const int SEARCH_COUNT = 5000;
  60. // XRay analysis speed
  61. public const otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS ANALYSIS_SPEED = otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS.meddium;
  62. // XRay analysis expect count
  63. public const int ANALYSIS_EXPECT_COUNT = 10000;
  64. //原来定义在OTSLicMgr.h中
  65. // machine id string length
  66. public const int MACHINEID_STR_LEN = 19;
  67. // license file mark
  68. public const int LICENNSE_FILE_MARK = 'L' + 'I' + 'C' + 'E' + 'N' + 'S' + 'E';
  69. // license file version string
  70. public const string LICENNSE_FILE_VERSION = "1.1.1";
  71. public const string LICENSE_FILENAME = "OTSlicense.lcs";
  72. // license info file mark
  73. public const int LICENSE_INFO_FILE_MARK = 'L' + 'I' + 'C' + 'E' + 'N' + 'S' + 'E' + 'I' + 'N' + 'F' + 'O';
  74. // license into file version string
  75. public const string LICENSE_InFO_FILE_VERSION = "1.1.1";
  76. // license into file name
  77. public const string LICENSE_INFO_FILE_NAME = "OTSlicenseInfo.lsf";
  78. // license key
  79. public const string LICENSEKEY_FILE_EXT = ".lsk";
  80. public const string LICENSEKEY_FILTER = "License Key Files (*.lsk)|*.lsk||";
  81. //Email address
  82. public const string SUPPORT_EMAIL_ADDRESS = "OTSSupport@opton.com.cn";
  83. //Email title
  84. public const string SUPPORT_EMAIL_TITLE = "License info";
  85. // expire date string length
  86. public const int EXPIRE_DATE_STR_LENGTH = 8;
  87. // license string minimum length
  88. // computer machine id string -- length MACHINEID_STR_LEN (19)
  89. // software package id string -- length 1
  90. // license type id string -- length 1
  91. // expired date string -- length 8
  92. // computer nick name -- at least 1
  93. public const int LICENSE_STR_MIN_LENGTH = MACHINEID_STR_LEN + 1 + 1 + EXPIRE_DATE_STR_LENGTH + 1;
  94. // close overdue days
  95. public const int CLOSE_OVERDUE_DAYS = 5;
  96. // 原来在OTSTools中
  97. // stage file name
  98. public const String STAGE_FILE_NAME = "OTSStage.stg";
  99. public const String STR_APPNAME_OTSINCA = "OTSIncA";
  100. public const String STR_COFIGPATH = "Config";
  101. public const String STR_SYSTEM_DATA = "SysData";
  102. }
  103. }