1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
-
- using OTSDataType;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using OTSCLRINTERFACE;
- namespace OTSModelSharp.ServiceInterface
- {
-
-
- using OTSCLRINTERFACE;
- using System.Drawing;
- public class EDSController : IEDSController
- {
- private COTSControlFunExport eds;
- public EDSController()
- {
-
-
-
- }
- public void GetXRayByFeatures(List<COTSParticleClr> a_listParticles, double a_nXRayAQTime, bool a_bElementInfo)
- {
- Init();
- 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)
- {
- Init();
- 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()
- {
- eds = SemController.hw;
- return eds.EDSInit();
- }
- }
- }
|