KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_pcb_render.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 (C) 2024 Alex Shvartzkop <[email protected]>
6 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef JOB_PCB_RENDER_H
23#define JOB_PCB_RENDER_H
24
25#include <kicommon.h>
26#include "job.h"
27#include <optional>
28#include <math/vector3.h>
29
30// Defined in wingdi.h
31#ifdef TRANSPARENT
32#undef TRANSPARENT
33#endif
34
35#ifdef OPAQUE
36#undef OPAQUE
37#endif
38
40{
41public:
42 enum class FORMAT
43 {
46 };
47
48 static std::map<JOB_PCB_RENDER::FORMAT, wxString>& GetFormatNameMap();
49
50public:
52 wxString GetDefaultDescription() const override;
53 wxString GetSettingsDialogTitle() const override;
54
55 wxString m_filename;
56
57 // Do not rename enum values as they are used for CLI args
65
72
73 enum class SIDE
74 {
81 };
82
86 int m_width = 0;
87 int m_height = 0;
88 std::string m_appearancePreset;
91 double m_zoom = 1.0;
92 bool m_perspective = false;
97 bool m_floor = false;
98 bool m_antiAlias = true;
99 bool m_postProcess = false;
105};
106
107#endif
VECTOR3D m_lightBottomIntensity
VECTOR3D m_lightTopIntensity
VECTOR3D m_lightCameraIntensity
VECTOR3D m_rotation
wxString m_filename
bool m_useBoardStackupColors
VECTOR3D m_lightSideIntensity
std::string m_appearancePreset
JOB(const std::string &aType, bool aOutputIsDirectory)
Definition job.cpp:26
virtual wxString GetDefaultDescription() const
Definition job.cpp:74
virtual wxString GetSettingsDialogTitle() const
Definition job.cpp:80
#define KICOMMON_API
Definition kicommon.h:28
VECTOR3< double > VECTOR3D
Definition vector3.h:230