Beispiel #1
0
		/// <summary>
		/// Clone this
		/// </summary>
		/// <returns></returns>
		public override AbstractProcessingTask Clone()
		{
			ScanTask ret = new ScanTask();
			ret.Precision = Precision;
			ret.UseTexture = UseTexture;
			ret.UseCorrectionMatrix = UseCorrectionMatrix;
			ret.LaserId = (new List<short>(LaserId)).ToArray();
			return ret;
		}
		private void BackgroundWorker_DoWork(object sender, DoWorkEventArgs e)
		{
			Process proc = new Process();
			ScanTask scan = new ScanTask();
			scan.Precision = Settings.Get<Settings>().Read(Settings.SCANNER, Settings.CALIBRATIONPRECISION, 5);
			scan.UseTexture = false;
			scan.UseCorrectionMatrix = false;
			scan.FileName = QuickFileName;
			ScanData data = scan.Run(null, this, sender == null ? null : BackgroundWorker, e, UpdateScanEvent);
			if (sender != null)
				BackgroundWorker.ReportProgress(100, data);
			else
				ProcessScanData(data);
		}