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
17 * along with this program. If not, see <https://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
33{
34public:
36
37 enum class OUTPUT_FORMAT
38 {
42 };
43
44 wxString m_inputFileA;
45 wxString m_inputFileB;
47
48 // PNG output options
49 int m_dpi = 300;
50 bool m_antialias = true;
52
53 // When true, only report whether files differ (exit code 0 = identical, 1 = different)
54 bool m_exitCodeOnly = false;
55
56 // Tolerance for floating point comparisons in IU
57 int m_tolerance = 0;
58
59 // In strict mode, fail on any parse warnings/errors
60 bool m_strict = false;
61
62 // When true, skip bounding-box origin alignment before computing the diff.
63 // Use this in regression tests to catch absolute-placement errors (wrong origin,
64 // sign flip, unit conversion mistake, etc.) that auto-alignment would hide.
65 bool m_noAlign = false;
66};
67
68#endif
OUTPUT_FORMAT m_outputFormat
JOB(const std::string &aType, bool aOutputIsDirectory)
Definition job.cpp:26
#define KICOMMON_API
Definition kicommon.h:27