12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using OTSCLRINTERFACE;
- using OTSCommon.Model;
- using OTSDataType;
- using OTSMeasureApp._0_OTSModel.Measure._4_ReMeasure;
- using OTSModelSharp;
- using OTSModelSharp.ServiceCenter;
- using OTSModelSharp.ServiceInterface;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OTSMeasureApp.ServiceCenter
- {
- public class IpcSEMController: MarshalByRefObject
- {
- private SemController sem= SemController.GetSEMController();
- public bool MoveSEMToPoint(Point poi)
- {
- if (!sem.IsConnected())
- {
- return false;
- }
- return sem.MoveSEMToPoint(poi.X, poi.Y);
- }
- public bool GetSemPositionXY(ref double a_dPositionX, ref double a_dPositionY, ref double a_dPositionR)
- {
- if (!sem.IsConnected())
- {
- return false;
- }
- return sem.GetSemPositionXY(ref a_dPositionX, ref a_dPositionY, ref a_dPositionR);
- }
- public bool ReMeasure(string samplePath, int width, int height, Dictionary<int, List<Particle>> keyValues, int IMGSCANSPEED_INDEX, int XRAYSCANMODE_INDEX, int NUD_SCANTIME_COUNT)
- {
- SmplMeasureReMeasure smplMeasure = new SmplMeasureReMeasure();
- bool isSuccess = smplMeasure.ReMeasure(samplePath, width, height, keyValues, IMGSCANSPEED_INDEX, XRAYSCANMODE_INDEX, NUD_SCANTIME_COUNT);
- return isSuccess;
- }
- }
- }
|