KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_export_pcb_3d.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 along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef JOB_EXPORT_STEP_H
22#define JOB_EXPORT_STEP_H
23
24#include <kicommon.h>
25#include <math/vector2d.h>
26#include "job.h"
27
28// Default value to chain 2 shapes when creating the board outlines
29// from shapes on Edges.Cut layer
30#define BOARD_DEFAULT_CHAINING_EPSILON 0.01
31
33{
34public:
36 m_Origin(),
37 m_Overwrite( false ),
38 m_UseGridOrigin( false ),
39 m_UseDrillOrigin( false ),
40 m_UseDefinedOrigin( false ),
41 m_UsePcbCenterOrigin( false ),
42 m_IncludeUnspecified( true ),
43 m_IncludeDNP( true ),
44 m_SubstModels( true ),
45 m_BoardOutlinesChainingEpsilon( BOARD_DEFAULT_CHAINING_EPSILON ),
46 m_BoardOnly( false ),
47 m_CutViasInBody( false ),
48 m_ExportBoardBody( true ),
49 m_ExportComponents( true ),
50 m_ExportTracksVias( false ),
51 m_ExportPads( false ),
52 m_ExportZones( false ),
53 m_ExportInnerCopper( false ),
54 m_ExportSilkscreen( false ),
55 m_ExportSoldermask( false ),
56 m_FuseShapes( false ),
57 m_FillAllVias( false ),
58 m_OptimizeStep( true ),
59 m_Format( FORMAT::STEP ),
60 m_OutputFile()
61 {};
62
63 enum class FORMAT
64 {
65 STEP,
66 STEPZ,
67 BREP,
68 XAO,
69 GLB,
70 PLY,
71 STL
72 };
73
74 wxString m_NetFilter;
76
78
102 wxString m_OutputFile;
103
104 wxString GetDefaultExportExtension() const;
105 wxString GetFormatName() const;
106};
107
108
110{
111public:
113 wxString GetDefaultDescription() const override;
114 wxString GetSettingsDialogTitle() const override;
115
116 void SetStepFormat( EXPORTER_STEP_PARAMS::FORMAT aFormat );
117
118 enum class FORMAT
119 {
120 UNKNOWN, // defefer to arg
121 STEP,
122 STEPZ,
123 BREP,
124 XAO,
125 GLB,
126 VRML,
127 PLY,
128 STL
129 };
130
131 enum class VRML_UNITS
132 {
133 INCH, // Do not use IN: it conflicts with a Windows header
134 MM,
135 METERS,
136 TENTHS // inches
137 };
138
139public:
141 wxString m_filename;
142
144
147
151};
152
153#endif
JOB_EXPORT_PCB_3D::FORMAT m_format
EXPORTER_STEP_PARAMS m_3dparams
Despite the name; also used for other formats.
An simple container class that lets us dispatch output jobs to kifaces.
Definition: job.h:183
#define BOARD_DEFAULT_CHAINING_EPSILON
#define KICOMMON_API
Definition: kicommon.h:28
@ INCH
Definition: rs274x.cpp:62