| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using OTSDataType;using System.Drawing;using OTSCLRINTERFACE;namespace OTSModelSharp.ServiceCenter{    public enum EDSTYPE    {      OFFLINE =0,     BRUKER =1,      OXFORD=2,      FEI=3        }    public interface ISemController    {        bool IsConnected();        bool Connect();        bool DisConnect();        bool SetMagnification(double a_dMagnification);        bool GetMagnification(ref double a_dMagnification);        bool SetWorkingDistance(double a_distance);        bool GetWorkingDistance(ref double a_distance);        bool SetScanExternal(bool b);        bool GetScanFieldSize(ref double  dScanFieldSizeX,ref double  dScanFieldSizeY);        bool SetScanFieldSize100(double dScanFieldSizeX,double dScanFieldSizeY);        bool GetScanFieldSize100(ref double dScanFieldSizeX, ref double dScanFieldSizeY);        bool GetSemPositionXY(ref double a_dPositionX, ref double a_dPositionY, ref double a_dPositionR);        bool MoveSEMToPoint(double a_dPositionX, double a_dPositionY, double rotation);        bool MoveSEMToPoint(double a_dPositionX, double a_dPositionY);        bool SetSemBrightness(double a_dBrightness);        bool GetSemBrightness(ref double a_dBrightness);        bool SetSemContrast(double a_dContrast);        bool GetSemContrast(ref double a_dContrast);        bool SetSemHighTension(double a_dKV);        bool GetSemHighTension(ref double a_dKV);        bool SetSemBeamCurrent(bool a_dKV);        bool SetSemBeamBlank(bool a_dKV);        bool GetSemBeamBlank(ref int a_nBeamBlank);        bool StopXrayAcquisition();           }    public interface IScanController    {        bool Init();        bool SetDwellTime(double val);        bool SetImageSize(int nWidth,int nHeight);              CBSEImgClr AcquireBSEImage();    }    public interface IEDSController    {        bool Init();        bool GetXRayByFeatures(List<COTSParticleClr> a_listParticles,  double a_nXRayAQTime, bool a_bElementInfo /*= FALSE*/);//这里将DWORD转成了Double类型,因为在后续调用时还有DWORD强制转换        bool GetXRayByParts(List<COTSParticleClr> a_listParticles, uint a_nXRayAQTime, bool a_bElementInfo /*= FALSE*/);        bool CollectSpectrum(uint a_nXRayAQTime, ref uint[] a_XrayData);        EDSTYPE GetEDSType();        void SetFilterKeyEleNames(List<string> KeyNameList);        void SetResolution(int resolutionWidth, int resolutionHeight);    }}
 |