KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_export_pcb_plot.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 (C) 2022 Mark Roszko <[email protected]>
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#pragma once
22
23#include <kicommon.h>
24#include <plotprint_opts.h>
25#include <layer_ids.h>
26#include <lseq.h>
27#include "job.h"
28
30{
31public:
42
43 JOB_EXPORT_PCB_PLOT( PLOT_FORMAT aFormat, const std::string& aType, bool aOutputIsDirectory );
44
45 void FromJson( const nlohmann::json& aJson ) override;
46
53 LSEQ ResolvePlotLayers( const LSET& aEnabledLayers ) const;
54
55public:
56 std::optional<wxString> m_argLayers;
57 std::optional<wxString> m_argCommonLayers;
58
60
61 wxString m_filename;
62 wxString m_colorTheme;
64 wxString m_variant;
65
72 double m_scale;
73
78
84
86
89
92
95
98
100};
LSEQ ResolvePlotLayers(const LSET &aEnabledLayers) const
Return the layers to plot on a board with aEnabledLayers.
JOB_EXPORT_PCB_PLOT(PLOT_FORMAT aFormat, const std::string &aType, bool aOutputIsDirectory)
bool m_useDrillOrigin
Used by SVG/DXF/PDF/Gerbers.
LSEQ m_plotOnAllLayersSequence
Layers to include on all individual layer prints.
std::optional< wxString > m_argLayers
DRILL_MARKS m_drillShapeOption
Used by SVG & PDF.
std::optional< wxString > m_argCommonLayers
bool m_plotAllCopperLayers
Plot every copper layer of the board in addition to m_plotLayerSequence.
bool m_mirror
Common Options.
virtual void FromJson(const nlohmann::json &j)
Definition job.cpp:60
JOB(const std::string &aType, bool aOutputIsDirectory)
Definition job.cpp:26
LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
Definition lseq.h:47
LSET is a set of PCB_LAYER_IDs.
Definition lset.h:37
#define KICOMMON_API
Definition kicommon.h:27
DRILL_MARKS
Plots and prints can show holes in pads and vias 3 options are available: