123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
-
- using OTSDataType;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using NSOTSController;
- namespace OTSModelSharp.ServiceInterface
- {
-
-
- using OTSCOMMONCLR;
- using System.Drawing;
- public class EDSController : IEDSController
- {
- private COTSControlFunExport eds;
- public EDSController()
- {
-
- eds = SemController.hw;
- Init();
- }
- public void GetXRayByFeatures(List<COTSParticleClr> a_listParticles, double a_nXRayAQTime, bool a_bElementInfo)
- {
-
- COTSParticleClr[] parts = a_listParticles.ToArray();
-
-
- eds.GetXRayByFeatures((uint)a_nXRayAQTime, parts, a_bElementInfo);
-
- }
- public void GetXRayByPoints(List<COTSParticleClr> a_listParticles, uint a_nXRayAQTime, bool a_bElementInfo)
- {
- int xrayNum = a_listParticles.Count;
- Point[] Ps = new Point[xrayNum];
- for (int i = 0; i < xrayNum; i++)
- {
- Point p = (Point)a_listParticles[i].GetXRayPos();
- Ps[i].X = p.X;
- Ps[i].Y = p.Y;
- }
-
- COTSParticleClr[] parts = a_listParticles.ToArray();
- string[] a_strEleResult = new string[xrayNum];
- eds.GetXRayByPoints(a_nXRayAQTime, Ps,parts, a_bElementInfo);
- return ;
- }
- public bool Init()
- {
- return eds.EDSInit();
- }
- }
- }
|