IGageInfoService.cs 1.93 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
潘栩锋's avatar
潘栩锋 committed
6 7
using FObjBase;
using FObjBase.Reflect;
潘栩锋's avatar
潘栩锋 committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

namespace FLY.Thick.Base.IService
{
    public interface IGageInfoService:INotifyPropertyChanged
    {
        /// <summary>
        /// 机架总长,脉冲
        /// </summary>
        int PosLen { get; }

        /// <summary>
        /// 1个grid = N个pos
        /// </summary>
        int PosOfGrid { get; }
        
        /// <summary>
        /// 数据好了!!!!
        /// 当 flyad7 的poslen, posOfGrid 发生变化时,DataOK = false, 需要重新记录。
        /// </summary>
        bool DataOK { get; }

        /// <summary>
        /// 当前进度 0 - 100 
        /// </summary>
        int Progress { get; }
潘栩锋's avatar
潘栩锋 committed
33 34 35 36 37 38

        /// <summary>
        /// 数据更新时间
        /// </summary>
        DateTime[] UpdateTimes { get; }

潘栩锋's avatar
潘栩锋 committed
39 40 41 42 43 44 45 46
        /// <summary>
        /// 正在机架修正中
        /// </summary>
        bool IsRunning { get; }

        /// <summary>
        /// 数据录制,记下来回扫描的AD值数组
        /// </summary>
47
        void Start();
潘栩锋's avatar
潘栩锋 committed
48 49

        void Stop();
潘栩锋's avatar
潘栩锋 committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79

        [Call(typeof(GetGageInfoResponse))]
        void GetGageInfo(int idx, AsyncCBHandler asyncDelegate, object asyncContext);
    }
    public class GageInfoData
    {
        /// <summary>
        /// 正向扫描数据
        /// </summary>
        public int[] ForwData = null;
        /// <summary>
        /// 反向扫描数据
        /// </summary>
        public int[] BackwData = null;
    }
    public class GetGageInfoResponse
    {
        /// <summary>
        /// 0 为 射线正向, 1为射线反向
        /// </summary>
        public int Idx;
        /// <summary>
        /// 扫描数据
        /// </summary>
        public int[] Data = null;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime;
潘栩锋's avatar
潘栩锋 committed
80 81
    }
}