mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-12 11:32:33 +02:00
0805133048
- **Tools**
- **PCB Exposure:**
- (Add) Able to choose the size midpoint rounding method (#520)
- (Fix) Allow to flash alone D03 commands (#520)
- (Fix) Correct line thickness to have at least 1px error (#523)
- (Improvement) Layer arithmetic: Use ; to split and start a new arithmetic operation
- (Add) Cmd: Convert command now allow to pass 'auto' as target type to auto convert specific files, valid for SL1 files configured with FILEFORMAT_xxx (#522)
- (Add) GCode: Command to sync and wait for movement completion [Only enabled for cws format] (#514)
- (Add) VDT: Transition layer count
- (Upgrade) AvaloniaUI from 0.10.16 to 0.10.17
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
/*
|
|
* 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.Primitives;
|
|
|
|
public abstract class Primitive
|
|
{
|
|
#region Properties
|
|
public abstract string Name { get; }
|
|
|
|
public bool IsParsed { get; protected set; } = false;
|
|
|
|
public GerberDocument Document { get; init; }
|
|
|
|
#endregion
|
|
|
|
//protected Primitive() { }
|
|
|
|
protected Primitive(GerberDocument document)
|
|
{
|
|
Document = document;
|
|
}
|
|
|
|
public abstract void DrawFlashD3(Mat mat, PointF at, MCvScalar color, LineType lineType = LineType.EightConnected);
|
|
|
|
public abstract void ParseExpressions(GerberDocument document, params string[] args);
|
|
|
|
public virtual Primitive Clone() => (Primitive)MemberwiseClone();
|
|
} |