|
KiCad PCB EDA Suite
|
#include <job_export_pcb_pos.h>
Public Types | |
| enum class | SIDE { FRONT , BACK , BOTH } |
| enum class | UNITS { INCH , MM } |
| enum class | FORMAT { ASCII , CSV , GERBER } |
Public Member Functions | |
| JOB_EXPORT_PCB_POS () | |
| wxString | GetDefaultDescription () const override |
| wxString | GetSettingsDialogTitle () const override |
| void | SetDefaultOutputPath (const wxString &aReferenceName) |
| const std::string & | GetType () const |
| const std::map< wxString, wxString > & | GetVarOverrides () const |
| void | SetVarOverrides (const std::map< wxString, wxString > &aVarOverrides) |
| void | SetTitleBlock (const TITLE_BLOCK &aTitleBlock) |
| virtual void | FromJson (const nlohmann::json &j) |
| virtual void | ToJson (nlohmann::json &j) const |
| const std::vector< JOB_PARAM_BASE * > & | GetParams () |
| void | ClearExistingOutputs () |
| const std::vector< JOB_OUTPUT > & | GetOutputs () |
| void | AddOutput (wxString aOutputPath) |
| void | SetTempOutputDirectory (const wxString &aBase) |
| Sets the temporary output directory for the job, this is used to prefix with a given output path when GetFullOutputPath is called. | |
| void | SetConfiguredOutputPath (const wxString &aPath) |
| Sets the configured output path for the job, this path is always saved to file. | |
| wxString | GetConfiguredOutputPath () const |
| Returns the configured output path for the job. | |
| void | SetWorkingOutputPath (const wxString &aPath) |
| Sets a transient output path for the job, it takes priority over the configured output path when GetFullOutputPath is called. | |
| wxString | GetWorkingOutputPath () const |
| Returns the working output path for the job, if one has been set. | |
| wxString | GetFullOutputPath (PROJECT *aProject) const |
| Returns the full output path for the job, taking into account the configured output path, any configured working path and the temporary output directory. | |
| wxString | ResolveOutputPath (const wxString &aPath, bool aPathIsDirectory, PROJECT *aProject) const |
| bool | GetOutputPathIsDirectory () const |
Public Attributes | |
| wxString | m_filename |
| bool | m_useDrillPlaceFileOrigin |
| bool | m_smdOnly |
| bool | m_excludeFootprintsWithTh |
| bool | m_excludeDNP |
| bool | m_excludeBOM |
| bool | m_negateBottomX |
| bool | m_singleFile |
| bool | m_nakedFilename |
| SIDE | m_side |
| UNITS | m_units |
| FORMAT | m_format |
| bool | m_gerberBoardEdge |
| wxString | m_variant |
| Variant name for variant-aware filtering. | |
Protected Attributes | |
| std::string | m_type |
| std::map< wxString, wxString > | m_varOverrides |
| TITLE_BLOCK | m_titleBlock |
| wxString | m_tempOutputDirectory |
| wxString | m_outputPath |
| bool | m_outputPathIsDirectory |
| wxString | m_description |
| wxString | m_workingOutputPath |
| The working output path is a transient path that takes priority over the configured output path when determining where to write output files. | |
| std::vector< JOB_PARAM_BASE * > | m_params |
| std::vector< JOB_OUTPUT > | m_outputs |
Definition at line 28 of file job_export_pcb_pos.h.
|
strong |
| Enumerator | |
|---|---|
| ASCII | |
| CSV | |
| GERBER | |
Definition at line 50 of file job_export_pcb_pos.h.
|
strong |
| Enumerator | |
|---|---|
| FRONT | |
| BACK | |
| BOTH | |
Definition at line 37 of file job_export_pcb_pos.h.
|
strong |
| Enumerator | |
|---|---|
| INCH | |
| MM | |
Definition at line 44 of file job_export_pcb_pos.h.
| JOB_EXPORT_PCB_POS::JOB_EXPORT_PCB_POS | ( | ) |
References SetDefaultOutputPath().
|
inlineinherited |
Definition at line 216 of file job.h.
References m_outputs.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos(), and PCBNEW_JOBS_HANDLER::JobExportStats().
|
inlineinherited |
|
virtualinherited |
Definition at line 60 of file job.cpp.
References m_params.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), from_json(), and from_json().
|
inlineinherited |
Returns the configured output path for the job.
Definition at line 233 of file job.h.
References m_outputPath.
Referenced by EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportDrc(), PCBNEW_JOBS_HANDLER::JobExportDxf(), PCBNEW_JOBS_HANDLER::JobExportGencad(), PCBNEW_JOBS_HANDLER::JobExportGerber(), PCBNEW_JOBS_HANDLER::JobExportIpc2581(), PCBNEW_JOBS_HANDLER::JobExportIpcD356(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), PCBNEW_JOBS_HANDLER::JobExportOdb(), PCBNEW_JOBS_HANDLER::JobExportPdf(), PCBNEW_JOBS_HANDLER::JobExportPos(), PCBNEW_JOBS_HANDLER::JobExportPs(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), PCBNEW_JOBS_HANDLER::JobExportRender(), PCBNEW_JOBS_HANDLER::JobExportStats(), PCBNEW_JOBS_HANDLER::JobExportStep(), PCBNEW_JOBS_HANDLER::JobExportSvg(), PCBNEW_JOBS_HANDLER::JobImport(), EESCHEMA_JOBS_HANDLER::JobSchErc(), PCB_PLOTTER::PlotJobToPlotOpts(), and JOBS_RUNNER::runSpecialExecute().
|
overridevirtual |
|
inherited |
Returns the full output path for the job, taking into account the configured output path, any configured working path and the temporary output directory.
Additionally variable resolution will take place
Definition at line 150 of file job.cpp.
References m_outputPath, m_outputPathIsDirectory, m_workingOutputPath, and ResolveOutputPath().
Referenced by PCBNEW_JOBS_HANDLER::doFpExportSvg(), DIALOG_EXPORT_ODBPP::GenerateODBPPFiles(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportFpSvg(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), EESCHEMA_JOBS_HANDLER::JobExportPlot(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), PCBNEW_JOBS_HANDLER::JobExportStep(), EESCHEMA_JOBS_HANDLER::JobSchErc(), PCBNEW_JOBS_HANDLER::resolveJobOutputPath(), JOBS_RUNNER::runSpecialCopyFiles(), and JOBS_RUNNER::runSpecialExecute().
|
inlineinherited |
Definition at line 256 of file job.h.
References m_outputPathIsDirectory.
Referenced by EESCHEMA_JOBS_HANDLER::JobExportPlot().
|
inlineinherited |
|
inlineinherited |
|
overridevirtual |
|
inlineinherited |
Definition at line 195 of file job.h.
References m_type.
Referenced by JOB_DISPATCHER::HandleJobConfig(), PANEL_JOBSET::OpenJobOptionsForListItem(), and JOB_DISPATCHER::RunJob().
|
inlineinherited |
Definition at line 197 of file job.h.
References m_varOverrides.
Referenced by PCBNEW_JOBS_HANDLER::doFpExportSvg(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportDxf(), PCBNEW_JOBS_HANDLER::JobExportGerber(), PCBNEW_JOBS_HANDLER::JobExportGerbers(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), PCBNEW_JOBS_HANDLER::JobExportPdf(), EESCHEMA_JOBS_HANDLER::JobExportPlot(), PCBNEW_JOBS_HANDLER::JobExportPs(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), PCBNEW_JOBS_HANDLER::JobExportSvg(), EESCHEMA_JOBS_HANDLER::JobSchErc(), and PCBNEW_JOBS_HANDLER::resolveJobOutputPath().
|
inlineinherited |
Returns the working output path for the job, if one has been set.
Definition at line 244 of file job.h.
References m_workingOutputPath.
Referenced by PCBNEW_JOBS_HANDLER::JobExportStats().
|
inherited |
Definition at line 100 of file job.cpp.
References ExpandTextVars(), m_tempOutputDirectory, m_titleBlock, PrependDirectoryToPath(), and PROJECT::TextVarResolver().
Referenced by GetFullOutputPath(), and PCBNEW_JOBS_HANDLER::JobExportDrill().
|
inherited |
Sets the configured output path for the job, this path is always saved to file.
Definition at line 157 of file job.cpp.
References m_outputPath.
Referenced by BOARD_EDITOR_CONTROL::GenerateODBPPFiles(), EESCHEMA_JOBS_HANDLER::JobExportBom(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), EESCHEMA_JOBS_HANDLER::JobSchErc(), CLI::PCB_EXPORT_GERBER_COMMAND::populateJob(), JOBS_RUNNER::runSpecialExecute(), JOB_EXPORT_PCB_IPC2581::SetDefaultOutputPath(), JOB_EXPORT_PCB_IPCD356::SetDefaultOutputPath(), JOB_EXPORT_PCB_ODB::SetDefaultOutputPath(), and JOB_EXPORT_PCB_POS::SetDefaultOutputPath().
| void JOB_EXPORT_PCB_POS::SetDefaultOutputPath | ( | const wxString & | aReferenceName | ) |
Definition at line 113 of file job_export_pcb_pos.cpp.
References ASCII, CSV, FILEEXT::CsvFileExtension, FILEEXT::FootprintPlaceFileExtension, GERBER, FILEEXT::GerberFileExtension, m_format, and JOB::SetConfiguredOutputPath().
Referenced by JOB_EXPORT_PCB_POS().
|
inherited |
Sets the temporary output directory for the job, this is used to prefix with a given output path when GetFullOutputPath is called.
This is intended for use with running jobsets and otherwise has no impact on individual job runs outside jobsets.
Definition at line 86 of file job.cpp.
References m_tempOutputDirectory.
|
inlineinherited |
Definition at line 204 of file job.h.
References m_titleBlock.
Referenced by EESCHEMA_JOBS_HANDLER::JobExportBom(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), EESCHEMA_JOBS_HANDLER::JobExportPlot(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), EESCHEMA_JOBS_HANDLER::JobSchErc(), and PCBNEW_JOBS_HANDLER::resolveJobOutputPath().
|
inlineinherited |
Definition at line 199 of file job.h.
References m_varOverrides.
Referenced by CLI::PCB_EXPORT_GERBER_COMMAND::populateJob().
|
inlineinherited |
Sets a transient output path for the job, it takes priority over the configured output path when GetFullOutputPath is called.
Definition at line 239 of file job.h.
References m_workingOutputPath.
Referenced by PCBNEW_JOBS_HANDLER::JobExportDrc(), PCBNEW_JOBS_HANDLER::JobExportDxf(), PCBNEW_JOBS_HANDLER::JobExportGencad(), PCBNEW_JOBS_HANDLER::JobExportGerber(), PCBNEW_JOBS_HANDLER::JobExportIpc2581(), PCBNEW_JOBS_HANDLER::JobExportIpcD356(), PCBNEW_JOBS_HANDLER::JobExportOdb(), PCBNEW_JOBS_HANDLER::JobExportPdf(), PCBNEW_JOBS_HANDLER::JobExportPos(), PCBNEW_JOBS_HANDLER::JobExportPs(), PCBNEW_JOBS_HANDLER::JobExportRender(), PCBNEW_JOBS_HANDLER::JobExportStep(), PCBNEW_JOBS_HANDLER::JobExportSvg(), and JOB_EXPORT_PCB_STATS::SetDefaultOutputPath().
|
virtualinherited |
Definition at line 67 of file job.cpp.
References m_params.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and to_json().
|
protectedinherited |
| bool JOB_EXPORT_PCB_POS::m_excludeBOM |
Definition at line 64 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| bool JOB_EXPORT_PCB_POS::m_excludeDNP |
Definition at line 63 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| bool JOB_EXPORT_PCB_POS::m_excludeFootprintsWithTh |
Definition at line 62 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| wxString JOB_EXPORT_PCB_POS::m_filename |
Definition at line 58 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| FORMAT JOB_EXPORT_PCB_POS::m_format |
Definition at line 70 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos(), and SetDefaultOutputPath().
| bool JOB_EXPORT_PCB_POS::m_gerberBoardEdge |
Definition at line 71 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| bool JOB_EXPORT_PCB_POS::m_nakedFilename |
Definition at line 67 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| bool JOB_EXPORT_PCB_POS::m_negateBottomX |
Definition at line 65 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
|
protectedinherited |
Definition at line 265 of file job.h.
Referenced by GetConfiguredOutputPath(), GetFullOutputPath(), JOB(), and SetConfiguredOutputPath().
|
protectedinherited |
Definition at line 266 of file job.h.
Referenced by GetFullOutputPath(), GetOutputPathIsDirectory(), and JOB().
|
protectedinherited |
Definition at line 277 of file job.h.
Referenced by AddOutput(), ClearExistingOutputs(), and GetOutputs().
|
protectedinherited |
Definition at line 275 of file job.h.
Referenced by FromJson(), GetParams(), JOB(), JOB_EXPORT_PCB_3D::JOB_EXPORT_PCB_3D(), JOB_EXPORT_PCB_DXF::JOB_EXPORT_PCB_DXF(), JOB_EXPORT_PCB_GENCAD::JOB_EXPORT_PCB_GENCAD(), JOB_EXPORT_PCB_GERBER::JOB_EXPORT_PCB_GERBER(), JOB_EXPORT_PCB_GERBERS::JOB_EXPORT_PCB_GERBERS(), JOB_EXPORT_PCB_IPC2581::JOB_EXPORT_PCB_IPC2581(), JOB_EXPORT_PCB_ODB::JOB_EXPORT_PCB_ODB(), JOB_EXPORT_SCH_BOM::JOB_EXPORT_SCH_BOM(), JOB_PCB_DRC::JOB_PCB_DRC(), JOB_PCB_IMPORT::JOB_PCB_IMPORT(), JOB_PCB_RENDER::JOB_PCB_RENDER(), JOB_RC::JOB_RC(), JOB_SPECIAL_COPYFILES::JOB_SPECIAL_COPYFILES(), JOB_SPECIAL_EXECUTE::JOB_SPECIAL_EXECUTE(), ToJson(), and ~JOB().
| SIDE JOB_EXPORT_PCB_POS::m_side |
Definition at line 68 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| bool JOB_EXPORT_PCB_POS::m_singleFile |
Definition at line 66 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| bool JOB_EXPORT_PCB_POS::m_smdOnly |
Definition at line 61 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
|
protectedinherited |
Definition at line 263 of file job.h.
Referenced by JOB(), ResolveOutputPath(), and SetTempOutputDirectory().
|
protectedinherited |
Definition at line 261 of file job.h.
Referenced by ResolveOutputPath(), and SetTitleBlock().
|
protectedinherited |
| UNITS JOB_EXPORT_PCB_POS::m_units |
Definition at line 69 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| bool JOB_EXPORT_PCB_POS::m_useDrillPlaceFileOrigin |
Definition at line 60 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
| wxString JOB_EXPORT_PCB_POS::m_variant |
Variant name for variant-aware filtering.
Definition at line 73 of file job_export_pcb_pos.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
|
protectedinherited |
Definition at line 260 of file job.h.
Referenced by GetVarOverrides(), JOB(), and SetVarOverrides().
|
protectedinherited |
The working output path is a transient path that takes priority over the configured output path when determining where to write output files.
Definition at line 273 of file job.h.
Referenced by GetFullOutputPath(), GetWorkingOutputPath(), JOB(), and SetWorkingOutputPath().