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 along
17
* with this program. If not, see <http://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
wxString
GetDefaultDescription
()
const override
;
37
wxString
GetSettingsDialogTitle
()
const override
;
38
39
enum class
UNITS
40
{
41
MM
,
42
INCH
,
43
MILS
44
};
45
46
wxString
m_inputFile
;
47
int
m_dpi
= 300;
48
int
m_width
= 0;
49
int
m_height
= 0;
50
bool
m_antialias
=
true
;
51
bool
m_transparentBackground
=
true
;
52
bool
m_strict
=
false
;
53
54
// Viewport override. When both window dimensions are > 0, the viewport is
55
// defined by origin + window rather than the gerber bounding box.
56
// Values are in the units specified by m_units.
57
UNITS
m_units
=
UNITS::MM
;
58
double
m_originX
= 0.0;
59
double
m_originY
= 0.0;
60
double
m_windowWidth
= 0.0;
61
double
m_windowHeight
= 0.0;
62
63
wxString
m_foregroundColor
;
64
wxString
m_backgroundColor
;
65
};
66
67
#endif
JOB_GERBER_EXPORT_PNG::m_height
int m_height
Definition
job_gerber_export_png.h:49
JOB_GERBER_EXPORT_PNG::m_width
int m_width
Definition
job_gerber_export_png.h:48
JOB_GERBER_EXPORT_PNG::m_originX
double m_originX
Definition
job_gerber_export_png.h:58
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:46
JOB_GERBER_EXPORT_PNG::m_backgroundColor
wxString m_backgroundColor
Definition
job_gerber_export_png.h:64
JOB_GERBER_EXPORT_PNG::m_transparentBackground
bool m_transparentBackground
Definition
job_gerber_export_png.h:51
JOB_GERBER_EXPORT_PNG::m_foregroundColor
wxString m_foregroundColor
Definition
job_gerber_export_png.h:63
JOB_GERBER_EXPORT_PNG::m_windowHeight
double m_windowHeight
Definition
job_gerber_export_png.h:61
JOB_GERBER_EXPORT_PNG::m_dpi
int m_dpi
Definition
job_gerber_export_png.h:47
JOB_GERBER_EXPORT_PNG::m_units
UNITS m_units
Definition
job_gerber_export_png.h:57
JOB_GERBER_EXPORT_PNG::m_antialias
bool m_antialias
Definition
job_gerber_export_png.h:50
JOB_GERBER_EXPORT_PNG::m_strict
bool m_strict
Definition
job_gerber_export_png.h:52
JOB_GERBER_EXPORT_PNG::m_windowWidth
double m_windowWidth
Definition
job_gerber_export_png.h:60
JOB_GERBER_EXPORT_PNG::UNITS
UNITS
Definition
job_gerber_export_png.h:40
JOB_GERBER_EXPORT_PNG::UNITS::INCH
@ INCH
Definition
job_gerber_export_png.h:42
JOB_GERBER_EXPORT_PNG::UNITS::MILS
@ MILS
Definition
job_gerber_export_png.h:43
JOB_GERBER_EXPORT_PNG::UNITS::MM
@ MM
Definition
job_gerber_export_png.h:41
JOB_GERBER_EXPORT_PNG::m_originY
double m_originY
Definition
job_gerber_export_png.h:59
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_export_png.h
Generated on Tue Apr 14 2026 00:07:47 for KiCad PCB EDA Suite by
1.13.2