KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_gerber_export_png.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_EXPORT_PNG_H
21
#define JOB_GERBER_EXPORT_PNG_H
22
23
#include <
kicommon.h
>
24
#include "
job.h
"
25
31
class
KICOMMON_API
JOB_GERBER_EXPORT_PNG
:
public
JOB
32
{
33
public
:
34
JOB_GERBER_EXPORT_PNG
();
35
36
enum class
UNITS
37
{
38
MM
,
39
INCH
,
40
MILS
41
};
42
43
wxString
m_inputFile
;
44
int
m_dpi
= 300;
45
int
m_width
= 0;
46
int
m_height
= 0;
47
bool
m_antialias
=
true
;
48
bool
m_transparentBackground
=
true
;
49
bool
m_strict
=
false
;
50
51
// Viewport override. When both window dimensions are > 0, the viewport is
52
// defined by origin + window rather than the gerber bounding box.
53
// Values are in the units specified by m_units.
54
UNITS
m_units
=
UNITS::MM
;
55
double
m_originX
= 0.0;
56
double
m_originY
= 0.0;
57
double
m_windowWidth
= 0.0;
58
double
m_windowHeight
= 0.0;
59
60
wxString
m_foregroundColor
;
61
wxString
m_backgroundColor
;
62
};
63
64
#endif
JOB_GERBER_EXPORT_PNG::m_height
int m_height
Definition
job_gerber_export_png.h:46
JOB_GERBER_EXPORT_PNG::m_width
int m_width
Definition
job_gerber_export_png.h:45
JOB_GERBER_EXPORT_PNG::m_originX
double m_originX
Definition
job_gerber_export_png.h:55
JOB_GERBER_EXPORT_PNG::JOB_GERBER_EXPORT_PNG
JOB_GERBER_EXPORT_PNG()
JOB_GERBER_EXPORT_PNG::m_inputFile
wxString m_inputFile
Definition
job_gerber_export_png.h:43
JOB_GERBER_EXPORT_PNG::m_backgroundColor
wxString m_backgroundColor
Definition
job_gerber_export_png.h:61
JOB_GERBER_EXPORT_PNG::m_transparentBackground
bool m_transparentBackground
Definition
job_gerber_export_png.h:48
JOB_GERBER_EXPORT_PNG::m_foregroundColor
wxString m_foregroundColor
Definition
job_gerber_export_png.h:60
JOB_GERBER_EXPORT_PNG::m_windowHeight
double m_windowHeight
Definition
job_gerber_export_png.h:58
JOB_GERBER_EXPORT_PNG::m_dpi
int m_dpi
Definition
job_gerber_export_png.h:44
JOB_GERBER_EXPORT_PNG::m_units
UNITS m_units
Definition
job_gerber_export_png.h:54
JOB_GERBER_EXPORT_PNG::m_antialias
bool m_antialias
Definition
job_gerber_export_png.h:47
JOB_GERBER_EXPORT_PNG::m_strict
bool m_strict
Definition
job_gerber_export_png.h:49
JOB_GERBER_EXPORT_PNG::m_windowWidth
double m_windowWidth
Definition
job_gerber_export_png.h:57
JOB_GERBER_EXPORT_PNG::UNITS
UNITS
Definition
job_gerber_export_png.h:37
JOB_GERBER_EXPORT_PNG::UNITS::INCH
@ INCH
Definition
job_gerber_export_png.h:39
JOB_GERBER_EXPORT_PNG::UNITS::MILS
@ MILS
Definition
job_gerber_export_png.h:40
JOB_GERBER_EXPORT_PNG::UNITS::MM
@ MM
Definition
job_gerber_export_png.h:38
JOB_GERBER_EXPORT_PNG::m_originY
double m_originY
Definition
job_gerber_export_png.h:56
JOB::JOB
JOB(const std::string &aType, bool aOutputIsDirectory)
Definition
job.cpp:26
job.h
kicommon.h
KICOMMON_API
#define KICOMMON_API
Definition
kicommon.h:27
src
common
jobs
job_gerber_export_png.h
Generated on Tue Nov 17 2026 00:06:09 for KiCad PCB EDA Suite by
1.13.2