using MainShell.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MainShell.Vision
{
    /// <summary>
    /// 默认抓圆请求。
    /// </summary>
    public class FindEdgeCircleRequest
    {
        private CameraCaptureOptions _captureOptions;

        public FindEdgeCircleRequest()
        {
            _captureOptions = new CameraCaptureOptions();
            TimeoutMilliseconds = 3000;
            Parameters = new FindEdgeCircleParameters();
        }

        /// <summary>
        /// 相机来源。
        /// </summary>
        public CameraType CameraSource { get; set; }

        /// <summary>
        /// 采图选项。
        /// </summary>
        public CameraCaptureOptions CaptureOptions
        {
            get
            {
                return _captureOptions;
            }
            set
            {
                _captureOptions = value ?? new CameraCaptureOptions();
            }
        }

        /// <summary>
        /// 算法超时时间（毫秒）。
        /// </summary>
        public int TimeoutMilliseconds { get; set; }

        /// <summary>
        /// 抓圆参数。
        /// </summary>
        public FindEdgeCircleParameters Parameters { get; set; }
    }
}
