Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/Operations/Operation.cs')
-rw-r--r--UVtools.Core/Operations/Operation.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/UVtools.Core/Operations/Operation.cs b/UVtools.Core/Operations/Operation.cs
index 168d629..f64f4c7 100644
--- a/UVtools.Core/Operations/Operation.cs
+++ b/UVtools.Core/Operations/Operation.cs
@@ -8,6 +8,7 @@
using System;
using System.Drawing;
+using System.Threading.Tasks;
using System.Xml.Serialization;
using Emgu.CV;
using Emgu.CV.Util;
@@ -398,6 +399,19 @@ namespace UVtools.Core.Operations
throw new NotImplementedException();
}
+ /// <summary>
+ /// Copy this operation base configuration to another operation.
+ /// Layer range, ROI, Masks
+ /// </summary>
+ /// <param name="operation"></param>
+ public void CopyConfigurationTo(Operation operation)
+ {
+ operation.LayerIndexStart = LayerIndexStart;
+ operation.LayerIndexEnd = LayerIndexEnd;
+ operation.ROI = ROI;
+ operation.MaskPoints = MaskPoints;
+ }
+
public virtual Operation Clone()
{
var operation = MemberwiseClone() as Operation;