/// <summary> /// 创建Sensor新实例 /// </summary> /// <param name="name">传感器名</param> /// <param name="sensorType">传感器类型</param> /// <param name="shutterType">快门类型</param> /// <param name="resolutionSize">分辨率</param> /// <param name="pixelSize">像素尺寸</param> /// <param name="maxImageCircle">靶面尺寸</param> /// <param name="frameRate">帧率</param> public Sensor(string name, SensorType sensorType, ShutterType shutterType, Size <int> resolutionSize, double pixelSize, string maxImageCircle) { Name = name; SensorType = sensorType; ShutterType = shutterType; ResolutionSize = resolutionSize; PixelSize = pixelSize; MaxImageCircle = maxImageCircle; SensorSize = new Size <double>(ResolutionSize.Horizontal * pixelSize / 1000, ResolutionSize.Vertical * pixelSize / 1000); Resolution = ResolutionSize.Horizontal * ResolutionSize.Vertical; //FrameRate = frameRate; }
public DrawShutterTool() : base(SR.TooltipDrawShutter) { _selectedShutterType = ShutterType.Polygon; this.Behaviour |= MouseButtonHandlerBehaviour.SuppressContextMenu | MouseButtonHandlerBehaviour.SuppressOnTileActivate | MouseButtonHandlerBehaviour.ConstrainToTile; }
public smbShutter(ShutterType shutter) { m_shuttertype = shutter; }