Files
UVtools/UVtools.Core/Gerber/Enumerations.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

75 lines
2.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;
using System.ComponentModel;
namespace UVtools.Core.Gerber;
public enum GerberZerosSuppressionType : byte
{
/// <summary>
/// Do not omit zeros
/// </summary>
NoSuppression,
/// <summary>
/// Omit left zeros
/// </summary>
Leading,
/// <summary>
/// Omit right zeros
/// </summary>
Trail
}
public enum GerberPositionType : byte
{
Absolute,
Relative
}
public enum GerberUnitType : byte
{
Millimeter,
Inch
}
public enum GerberPolarityType : byte
{
Dark,
Clear
}
public enum GerberMoveType : byte
{
// G01
Linear,
// G02
Arc,
// G03
ArcCounterClockwise
}
public enum GerberMidpointRounding
{
[Description("To even: The strategy of rounding to the nearest number, and when a number is halfway between two others, it's rounded toward the nearest even number.")]
ToEven = MidpointRounding.ToEven,
[Description("Away from zero: The strategy of rounding to the nearest number, and when a number is halfway between two others, it's rounded toward the nearest number that's away from zero.")]
AwayFromZero = MidpointRounding.AwayFromZero,
[Description("To zero: The strategy of directed rounding toward zero, with the result closest to and no greater in magnitude than the infinitely precise result.")]
ToZero = MidpointRounding.ToZero,
[Description("To negative inifity: The strategy of downwards-directed rounding, with the result closest to and no greater than the infinitely precise result.")]
ToNegativeInfinity = MidpointRounding.ToNegativeInfinity,
[Description("To positive inifity: The strategy of upwards-directed rounding, with the result closest to and no less than the infinitely precise result.")]
ToPositiveInfinity = MidpointRounding.ToPositiveInfinity
}