KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_export_pcb_plot.cpp
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
21
22JOB_EXPORT_PCB_PLOT::JOB_EXPORT_PCB_PLOT( PLOT_FORMAT aFormat, const std::string& aType,
23 bool aOutputIsDirectory ) :
24 JOB( aType, aOutputIsDirectory ),
25 m_plotFormat( aFormat ),
26 m_filename(),
27 m_colorTheme(),
28 m_drawingSheet(),
29 m_mirror( false ),
30 m_blackAndWhite( false ),
31 m_negative( false ),
32 m_sketchPadsOnFabLayers( false ),
33 m_hideDNPFPsOnFabLayers( false ),
34 m_sketchDNPFPsOnFabLayers( true ),
35 m_crossoutDNPFPsOnFabLayers( true ),
36 m_plotFootprintValues( true ),
37 m_plotRefDes( true ),
38 m_plotDrawingSheet( true ),
39 m_subtractSolderMaskFromSilk( false ),
40 m_plotPadNumbers( false ),
41 m_plotLayerSequence(),
42 m_plotOnAllLayersSequence(),
43 m_drillShapeOption( DRILL_MARKS::FULL_DRILL_SHAPE ),
44 m_useDrillOrigin( false )
45{
46 m_params.emplace_back( new JOB_PARAM_LSEQ( "layers",
48
49 m_params.emplace_back( new JOB_PARAM_LSEQ( "layers_to_include_on_all_layers",
52
53 m_params.emplace_back( new JOB_PARAM<bool>( "mirror",
54 &m_mirror, m_mirror ) );
55 m_params.emplace_back( new JOB_PARAM<bool>( "black_and_white",
57 m_params.emplace_back( new JOB_PARAM<bool>( "negative",
59
60 m_params.emplace_back( new JOB_PARAM<bool>( "plot_footprint_values",
62 m_params.emplace_back( new JOB_PARAM<bool>( "plot_ref_des",
64
65 m_params.emplace_back( new JOB_PARAM<bool>( "hide_dnp_footprints_on_fab_layers",
68 m_params.emplace_back( new JOB_PARAM<bool>( "sketch_dnp_footprints_on_fab_layers",
71 m_params.emplace_back( new JOB_PARAM<bool>( "crossout_dnp_footprints_on_fab_layers",
74
75 m_params.emplace_back( new JOB_PARAM<bool>( "sketch_pads_on_fab_layers",
78 m_params.emplace_back( new JOB_PARAM<bool>( "plot_pad_numbers",
80
81 m_params.emplace_back( new JOB_PARAM<bool>( "plot_drawing_sheet",
83
84 m_params.emplace_back( new JOB_PARAM<bool>( "subtract_solder_mask_from_silk",
87
88 m_params.emplace_back( new JOB_PARAM<bool>( "use_drill_origin",
90
91 m_params.emplace_back( new JOB_PARAM<DRILL_MARKS>( "drill_shape",
93
94 m_params.emplace_back( new JOB_PARAM<wxString>( "drawing_sheet",
96}
JOB_EXPORT_PCB_PLOT(PLOT_FORMAT aFormat, const std::string &aType, bool aOutputIsDirectory)
DRILL_MARKS m_drillShapeOption
Used by SVG/DXF/PDF/Gerbers.
bool m_mirror
Common Options.
LSEQ m_plotLayerSequence
Layers to include on all individual layer prints.
Definition: job.h:50
An simple container class that lets us dispatch output jobs to kifaces.
Definition: job.h:182
std::vector< JOB_PARAM_BASE * > m_params
Definition: job.h:261