blob: 54c199e38216815da9f98ba4b09b84947d906e06 (
plain)
1
2
3
4
5
6
7
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
33
34
35
36
37
38
|
/*
* GNU AFFERO GENERAL PUBLIC LICENSE
* Version 3, 19 November 2007
* Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
*/
using System.Drawing;
using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
namespace UVtools.Core.Gerber.Apertures;
public class MacroAperture : Aperture
{
#region Properties
public Macro Macro { get; set; }
#endregion
#region Constructor
public MacroAperture() : base("Macro") { }
public MacroAperture(int index, Macro macro) : base(index, "Macro")
{
Macro = macro;
}
#endregion
public override void DrawFlashD3(Mat mat, SizeF xyPpmm, Point at, MCvScalar color, LineType lineType = LineType.EightConnected)
{
foreach (var macro in Macro)
{
macro.DrawFlashD3(mat, xyPpmm, at, color, lineType);
}
}
}
|