Files
UVtools/UVtools.Core/Gerber/Primitives/CommentPrimitive.cs
T
Tiago Conceição 0805133048 v3.5.6
- **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
2022-07-29 18:10:48 +01:00

56 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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)
{
}
}