Files
UVtools/UVtools.Core/Gerber/Primitives/CommentPrimitive.cs
T
Tiago Conceição 67fbec1fff v3.5.1
- **PCB Exposure:**
   - (Fix) Able to omit X or Y coordinate and use last known value in place
   - (Fix) Reusing macros in apertures was causing to use the last aperture values for all previous apertures that share the same macro name
   - (Fix) Implement the inch measurement (%MOIN*%)
   - (Fix) Crash when redo the operation (Ctrl + Shift + Z)
- **UI - Issue list:**
   - (Add) Context menu when right click issues to select an action
   - (Add) Option to solidify suction cups when right click on the issue
   - (Improvement) Better confirmation text when click on remove issue(s) with detailed list of actions
2022-06-24 04:53:54 +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()
{
IsParsed = true;
}
public CommentPrimitive(string comment)
{
Comment = comment;
IsParsed = true;
}
public override void DrawFlashD3(Mat mat, SizeF xyPpmm, PointF at, MCvScalar color, LineType lineType = LineType.EightConnected)
{
}
public override void ParseExpressions(GerberDocument document, params string[] args)
{
}
}