IpcSEMController.cs 885 B

12345678910111213141516171819202122232425262728293031
  1. using OTSModelSharp.ServiceInterface;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Drawing;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OTSMeasureApp.ServiceCenter
  9. {
  10. public class IpcSEMController: MarshalByRefObject
  11. {
  12. private SemController sem= SemController.GetSEMController();
  13. public bool MoveSEMToPoint(Point poi)
  14. {
  15. if (!sem.IsConnected())
  16. {
  17. return false;
  18. }
  19. return sem.MoveSEMToPoint(poi);
  20. }
  21. public bool GetSemPositionXY(ref double a_dPositionX, ref double a_dPositionY, ref double a_dPositionR)
  22. {
  23. if (!sem.IsConnected())
  24. {
  25. return false;
  26. }
  27. return sem.GetSemPositionXY(ref a_dPositionX, ref a_dPositionY, ref a_dPositionR);
  28. }
  29. }
  30. }