Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CommentPrimitive.cs « Primitives « Gerber « UVtools.Core - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25a9b071a4b8135fad24a84d4f2665c795335d9c (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 *                     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(params string[] args)
    {
    }
}