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
56 lines
1.5 KiB
C#
56 lines
1.5 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;
|
||
|
||
/// <summary>
|
||
/// The comment primitive has no effect on the image but adds human-readable comments in an AM command.
|
||
/// The comment primitive starts with the ‘0’ code followed by a space and then a single-line text string.
|
||
/// The text string follows the syntax for strings in section 3.4.3.
|
||
/// </summary>
|
||
public class CommentPrimitive : Primitive
|
||
{
|
||
#region Constants
|
||
public const byte Code = 0;
|
||
#endregion
|
||
#region Properties
|
||
public override string Name => "Comment";
|
||
|
||
/// <summary>
|
||
/// The comment
|
||
/// 1
|
||
/// </summary>
|
||
public string Comment { get; set; } = string.Empty;
|
||
#endregion
|
||
|
||
public CommentPrimitive(GerberDocument document) : base(document)
|
||
{
|
||
IsParsed = true;
|
||
}
|
||
|
||
public CommentPrimitive(GerberDocument document, string comment) : base(document)
|
||
{
|
||
Comment = comment;
|
||
IsParsed = true;
|
||
}
|
||
|
||
|
||
public override void DrawFlashD3(Mat mat, PointF at, MCvScalar color, LineType lineType = LineType.EightConnected)
|
||
{
|
||
|
||
}
|
||
|
||
public override void ParseExpressions(GerberDocument document, params string[] args)
|
||
{
|
||
}
|
||
} |