123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using OTSDataType;
- namespace OTSModelSharp
- {
- public class DataPublic
- {
- // program manager file mark
- public const int PROG_MGR_FILE_MARK = 'P' + 'R' + 'O' + 'J' + 'E' + 'K' + 'T' + 'M' + 'A' + 'N' + 'A' + 'G' + 'E' + 'R';
- // program manger file version
- public const string PROG_MGR_FILE_VERSION = "1.1.1";
- public const int SCREEN_WIDTH_MAG100 = 1142;
- //stage data x start
- public const int STAGE_DATA_X_AXIS_START = -100000;
- //stage data x end
- public const int STAGE_DATA_X_AXIS_END = 100000;
- //stage data y start
- public const int STAGE_DATA_Y_AXIS_START = -100000;
- //stage data y end
- public const int STAGE_DATA_Y_AXIS_END = 100000;
- //stage data x direction
- public const otsdataconst.OTS_X_AXIS_DIRECTION STAGE_DATA_X_AXIS_DIRECTION = otsdataconst.OTS_X_AXIS_DIRECTION.LEFT_TOWARD;
- //stage data y direction
- public const otsdataconst.OTS_Y_AXIS_DIRECTION STAGE_DATA_Y_AXIS_DIRECTION = otsdataconst.OTS_Y_AXIS_DIRECTION.UP_TOWARD;
- // auto name
- public const string AUTO_NAME = "Sample";
- // sample name
- public const string SAMPLE_NAME = "Sample";
- // measure switch
- public const int MEASURE_SWITCH = 1;
- // stop mode
- public const otsdataconst.OTS_MEASURE_STOP_MODE STOPT_MODE = otsdataconst.OTS_MEASURE_STOP_MODE.CoverMode;
- // stop time
- public const int MEASURE_TIME = 360;
- // stop field num
- public const int FIELDS_NUM = 200;
- // stop part num
- public const int PARTICL_NUM = 50000;
- // get image mode
- public const otsdataconst.OTS_GET_IMAGE_MODE FETCH_IMAGE_MODE = otsdataconst.OTS_GET_IMAGE_MODE.Spiral;
- // scan speed
- public const otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS SCAN_SPEED = otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS.meddium;
- // image size
- public const otsdataconst.OTS_IMAGE_RESULOTION_OPTIONS IMAGE_SIZE = otsdataconst.OTS_IMAGE_RESULOTION_OPTIONS._1024_768;
- // particle area
- public readonly CDoubleRange INCA_AREA = new CDoubleRange(5, 100);
- // background gray
- public readonly CIntRange BACK_GRAY = new CIntRange(100, 255);
- // particle gray
- public readonly CIntRange INCA_GRAY = new CIntRange(5, 100);
- // XRay scan mode
- public const otsdataconst.OTS_X_RAY_SCAN_MODE SCAN_MODE = otsdataconst.OTS_X_RAY_SCAN_MODE.PointMode;
- // XRay search speed
- public const otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS SEARCH_SPEED = otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS.meddium;
- // XRay search count
- public const int SEARCH_COUNT = 5000;
- // XRay analysis speed
- public const otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS ANALYSIS_SPEED = otsdataconst.OTS_IMAGE_SCANSPEED_OPTIONS.meddium;
- // XRay analysis expect count
- public const int ANALYSIS_EXPECT_COUNT = 10000;
- //原来定义在OTSLicMgr.h中
- // machine id string length
- public const int MACHINEID_STR_LEN = 19;
-
- // license file mark
- public const int LICENNSE_FILE_MARK = 'L' + 'I' + 'C' + 'E' + 'N' + 'S' + 'E';
- // license file version string
- public const string LICENNSE_FILE_VERSION = "1.1.1";
- public const string LICENSE_FILENAME = "OTSlicense.lcs";
- // license info file mark
- public const int LICENSE_INFO_FILE_MARK = 'L' + 'I' + 'C' + 'E' + 'N' + 'S' + 'E' + 'I' + 'N' + 'F' + 'O';
- // license into file version string
- public const string LICENSE_InFO_FILE_VERSION = "1.1.1";
- // license into file name
- public const string LICENSE_INFO_FILE_NAME = "OTSlicenseInfo.lsf";
- // license key
- public const string LICENSEKEY_FILE_EXT = ".lsk";
- public const string LICENSEKEY_FILTER = "License Key Files (*.lsk)|*.lsk||";
- //Email address
- public const string SUPPORT_EMAIL_ADDRESS = "OTSSupport@opton.com.cn";
- //Email title
- public const string SUPPORT_EMAIL_TITLE = "License info";
- // expire date string length
- public const int EXPIRE_DATE_STR_LENGTH = 8;
- // license string minimum length
- // computer machine id string -- length MACHINEID_STR_LEN (19)
- // software package id string -- length 1
- // license type id string -- length 1
- // expired date string -- length 8
- // computer nick name -- at least 1
- public const int LICENSE_STR_MIN_LENGTH = MACHINEID_STR_LEN + 1 + 1 + EXPIRE_DATE_STR_LENGTH + 1;
- // close overdue days
- public const int CLOSE_OVERDUE_DAYS = 5;
- // 原来在OTSTools中
- // stage file name
- public const String STAGE_FILE_NAME = "OTSStage.stg";
- public const String STR_APPNAME_OTSINCA = "OTSIncA";
- public const String STR_COFIGPATH = "Config";
- public const String STR_SYSTEM_DATA = "SysData";
- }
- }
|