KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_gerber_diff.h
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5
*
6
* This program is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the
8
* Free Software Foundation, either version 3 of the License, or (at your
9
* option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef JOB_GERBER_DIFF_H
21
#define JOB_GERBER_DIFF_H
22
23
#include <
kicommon.h
>
24
#include "
job.h
"
25
32
class
KICOMMON_API
JOB_GERBER_DIFF
:
public
JOB
33
{
34
public
:
35
JOB_GERBER_DIFF
();
36
37
wxString
GetDefaultDescription
()
const override
;
38
wxString
GetSettingsDialogTitle
()
const override
;
39
40
enum class
OUTPUT_FORMAT
41
{
42
PNG
,
43
TEXT
,
44
JSON
45
};
46
47
wxString
m_inputFileA
;
48
wxString
m_inputFileB
;
49
OUTPUT_FORMAT
m_outputFormat
=
OUTPUT_FORMAT::PNG
;
50
51
// PNG output options
52
int
m_dpi
= 300;
53
bool
m_antialias
=
true
;
54
bool
m_transparentBackground
=
true
;
55
56
// When true, only report whether files differ (exit code 0 = identical, 1 = different)
57
bool
m_exitCodeOnly
=
false
;
58
59
// Tolerance for floating point comparisons in IU
60
int
m_tolerance
= 0;
61
62
// In strict mode, fail on any parse warnings/errors
63
bool
m_strict
=
false
;
64
65
// When true, skip bounding-box origin alignment before computing the diff.
66
// Use this in regression tests to catch absolute-placement errors (wrong origin,
67
// sign flip, unit conversion mistake, etc.) that auto-alignment would hide.
68
bool
m_noAlign
=
false
;
69
};
70
71
#endif
JOB_GERBER_DIFF::m_tolerance
int m_tolerance
Definition
job_gerber_diff.h:60
JOB_GERBER_DIFF::OUTPUT_FORMAT
OUTPUT_FORMAT
Definition
job_gerber_diff.h:41
JOB_GERBER_DIFF::OUTPUT_FORMAT::JSON
@ JSON
Definition
job_gerber_diff.h:44
JOB_GERBER_DIFF::OUTPUT_FORMAT::PNG
@ PNG
Definition
job_gerber_diff.h:42
JOB_GERBER_DIFF::OUTPUT_FORMAT::TEXT
@ TEXT
Definition
job_gerber_diff.h:43
JOB_GERBER_DIFF::m_exitCodeOnly
bool m_exitCodeOnly
Definition
job_gerber_diff.h:57
JOB_GERBER_DIFF::m_transparentBackground
bool m_transparentBackground
Definition
job_gerber_diff.h:54
JOB_GERBER_DIFF::m_noAlign
bool m_noAlign
Definition
job_gerber_diff.h:68
JOB_GERBER_DIFF::m_antialias
bool m_antialias
Definition
job_gerber_diff.h:53
JOB_GERBER_DIFF::m_inputFileB
wxString m_inputFileB
Definition
job_gerber_diff.h:48
JOB_GERBER_DIFF::m_strict
bool m_strict
Definition
job_gerber_diff.h:63
JOB_GERBER_DIFF::m_dpi
int m_dpi
Definition
job_gerber_diff.h:52
JOB_GERBER_DIFF::m_inputFileA
wxString m_inputFileA
Definition
job_gerber_diff.h:47
JOB_GERBER_DIFF::m_outputFormat
OUTPUT_FORMAT m_outputFormat
Definition
job_gerber_diff.h:49
JOB_GERBER_DIFF::JOB_GERBER_DIFF
JOB_GERBER_DIFF()
JOB::JOB
JOB(const std::string &aType, bool aOutputIsDirectory)
Definition
job.cpp:26
JOB::GetDefaultDescription
virtual wxString GetDefaultDescription() const
Definition
job.cpp:74
JOB::GetSettingsDialogTitle
virtual wxString GetSettingsDialogTitle() const
Definition
job.cpp:80
job.h
kicommon.h
KICOMMON_API
#define KICOMMON_API
Definition
kicommon.h:27
src
common
jobs
job_gerber_diff.h
Generated on Tue Apr 14 2026 00:07:47 for KiCad PCB EDA Suite by
1.13.2