KiCad PCB EDA Suite
|
#include <job_pcb_render.h>
Public Types | |
enum class | FORMAT { PNG , JPEG } |
enum class | QUALITY { BASIC , HIGH , USER } |
enum class | BG_STYLE { DEFAULT , TRANSPARENT , OPAQUE } |
enum class | SIDE { TOP , BOTTOM , LEFT , RIGHT , FRONT , BACK } |
Public Member Functions | |
JOB_PCB_RENDER (bool aIsCli) | |
const std::string & | GetType () const |
bool | IsCli () const |
const std::map< wxString, wxString > & | GetVarOverrides () const |
void | SetVarOverrides (const std::map< wxString, wxString > &aVarOverrides) |
virtual void | FromJson (const nlohmann::json &j) |
virtual void | ToJson (nlohmann::json &j) const |
virtual wxString | GetDescription () |
const std::vector< JOB_PARAM_BASE * > & | GetParams () |
void | ClearExistingOutputs () |
const std::vector< JOB_OUTPUT > & | GetOutputs () |
void | AddOutput (wxString aOutputPath) |
void | SetTempOutputDirectory (const wxString &aBase) |
void | SetOutputPath (const wxString &aPath) |
wxString | GetOutputPath () const |
wxString | GetFullOutputPath () const |
bool | OutputPathFullSpecified () const |
Public Attributes | |
wxString | m_filename |
wxString | m_outputFile |
FORMAT | m_format = FORMAT::PNG |
QUALITY | m_quality = QUALITY::BASIC |
BG_STYLE | m_bgStyle = BG_STYLE::DEFAULT |
int | m_width = 0 |
int | m_height = 0 |
std::string | m_colorPreset |
SIDE | m_side = SIDE::TOP |
double | m_zoom = 1.0 |
bool | m_perspective = false |
VECTOR3D | m_rotation |
VECTOR3D | m_pan |
VECTOR3D | m_pivot |
bool | m_floor = false |
Protected Attributes | |
std::string | m_type |
bool | m_isCli |
std::map< wxString, wxString > | m_varOverrides |
wxString | m_tempOutputDirectory |
wxString | m_outputPath |
bool | m_outputPathIsDirectory |
std::vector< JOB_PARAM_BASE * > | m_params |
std::vector< JOB_OUTPUT > | m_outputs |
Definition at line 31 of file job_pcb_render.h.
|
strong |
Enumerator | |
---|---|
DEFAULT | |
TRANSPARENT | |
OPAQUE |
Definition at line 52 of file job_pcb_render.h.
|
strong |
Enumerator | |
---|---|
PNG | |
JPEG |
Definition at line 39 of file job_pcb_render.h.
|
strong |
Enumerator | |
---|---|
BASIC | |
HIGH | |
USER |
Definition at line 45 of file job_pcb_render.h.
|
strong |
Enumerator | |
---|---|
TOP | |
BOTTOM | |
LEFT | |
RIGHT | |
FRONT | |
BACK |
Definition at line 59 of file job_pcb_render.h.
JOB_PCB_RENDER::JOB_PCB_RENDER | ( | bool | aIsCli | ) |
Definition at line 25 of file job_pcb_render.cpp.
|
inlineinherited |
Definition at line 112 of file job.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportPos().
|
inlineinherited |
Definition at line 104 of file job.h.
Referenced by JOB_DISPATCHER::RunJob().
|
virtualinherited |
|
virtualinherited |
Reimplemented in JOB_EXPORT_PCB_3D, JOB_EXPORT_PCB_DRILL, JOB_EXPORT_PCB_DXF, JOB_EXPORT_PCB_GERBER, JOB_EXPORT_PCB_GERBERS, JOB_EXPORT_PCB_IPC2581, JOB_EXPORT_PCB_PDF, JOB_EXPORT_PCB_POS, JOB_EXPORT_PCB_SVG, JOB_EXPORT_SCH_BOM, JOB_EXPORT_SCH_NETLIST, JOB_EXPORT_SCH_PLOT, JOB_EXPORT_SCH_PYTHONBOM, JOB_PCB_DRC, and JOB_SCH_ERC.
|
inherited |
Definition at line 88 of file job.cpp.
References JOB::m_outputPath, JOB::m_outputPathIsDirectory, JOB::m_tempOutputDirectory, and PrependDirectoryToPath().
Referenced by PCBNEW_JOBS_HANDLER::JobExportDrill(), PCBNEW_JOBS_HANDLER::JobExportDxf(), PCBNEW_JOBS_HANDLER::JobExportGencad(), PCBNEW_JOBS_HANDLER::JobExportGerber(), PCBNEW_JOBS_HANDLER::JobExportGerbers(), PCBNEW_JOBS_HANDLER::JobExportIpc2581(), PCBNEW_JOBS_HANDLER::JobExportPdf(), PCBNEW_JOBS_HANDLER::JobExportPos(), PCBNEW_JOBS_HANDLER::JobExportStep(), and PCBNEW_JOBS_HANDLER::JobExportSvg().
|
inlineinherited |
Definition at line 120 of file job.h.
Referenced by DIALOG_EXPORT_2581::DIALOG_EXPORT_2581(), DIALOG_EXPORT_NETLIST::DIALOG_EXPORT_NETLIST(), DIALOG_GEN_FOOTPRINT_POSITION::initDialog(), DIALOG_GENDRILL::InitDisplayParams(), DIALOG_PLOT_SCHEMATIC::initDlg(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportDxf(), PCBNEW_JOBS_HANDLER::JobExportGencad(), PCBNEW_JOBS_HANDLER::JobExportGerber(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), PCBNEW_JOBS_HANDLER::JobExportPos(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), and PCBNEW_JOBS_HANDLER::JobExportStep().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 85 of file job.h.
Referenced by JOB_DISPATCHER::HandleJobConfig(), and JOB_DISPATCHER::RunJob().
|
inlineinherited |
Definition at line 88 of file job.h.
Referenced by PCBNEW_JOBS_HANDLER::doFpExportSvg(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportDrc(), PCBNEW_JOBS_HANDLER::JobExportDxf(), PCBNEW_JOBS_HANDLER::JobExportGerber(), PCBNEW_JOBS_HANDLER::JobExportGerbers(), PCBNEW_JOBS_HANDLER::JobExportPdf(), EESCHEMA_JOBS_HANDLER::JobExportPlot(), PCBNEW_JOBS_HANDLER::JobExportRender(), PCBNEW_JOBS_HANDLER::JobExportStep(), PCBNEW_JOBS_HANDLER::JobExportSvg(), and EESCHEMA_JOBS_HANDLER::JobSchErc().
|
inlineinherited |
Definition at line 86 of file job.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportFpSvg(), PCBNEW_JOBS_HANDLER::JobExportFpUpgrade(), PCBNEW_JOBS_HANDLER::JobExportGencad(), and PCBNEW_JOBS_HANDLER::JobExportSvg().
|
inherited |
Definition at line 136 of file job.cpp.
References JOB::m_outputPath, and JOB::m_outputPathIsDirectory.
Referenced by PCBNEW_JOBS_HANDLER::JobExportIpc2581(), and PCBNEW_JOBS_HANDLER::JobExportPdf().
|
inherited |
Definition at line 130 of file job.cpp.
References JOB::m_outputPath.
Referenced by EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportDxf(), PCBNEW_JOBS_HANDLER::JobExportGencad(), PCBNEW_JOBS_HANDLER::JobExportGerber(), PCBNEW_JOBS_HANDLER::JobExportIpc2581(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), PCBNEW_JOBS_HANDLER::JobExportPdf(), PCBNEW_JOBS_HANDLER::JobExportPos(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), PCBNEW_JOBS_HANDLER::JobExportStep(), DIALOG_EXPORT_NETLIST::NetlistUpdateOpt(), DIALOG_EXPORT_STEP::onExportButton(), DIALOG_GENDRILL::OnGenDrillFile(), DIALOG_GEN_FOOTPRINT_POSITION::OnGenerate(), CLI::PCB_EXPORT_GERBER_COMMAND::populateJob(), JOB_EXPORT_PCB_IPC2581::SetDefaultOutputPath(), JOB_EXPORT_PCB_POS::SetDefaultOutputPath(), and DIALOG_EXPORT_2581::TransferDataFromWindow().
|
inherited |
Definition at line 74 of file job.cpp.
References JOB::m_tempOutputDirectory.
|
inlineinherited |
Definition at line 90 of file job.h.
Referenced by CLI::PCB_EXPORT_GERBER_COMMAND::populateJob().
|
virtualinherited |
BG_STYLE JOB_PCB_RENDER::m_bgStyle = BG_STYLE::DEFAULT |
Definition at line 71 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
std::string JOB_PCB_RENDER::m_colorPreset |
Definition at line 74 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
wxString JOB_PCB_RENDER::m_filename |
Definition at line 36 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
bool JOB_PCB_RENDER::m_floor = false |
Definition at line 81 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
FORMAT JOB_PCB_RENDER::m_format = FORMAT::PNG |
Definition at line 69 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
int JOB_PCB_RENDER::m_height = 0 |
Definition at line 73 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
wxString JOB_PCB_RENDER::m_outputFile |
Definition at line 37 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
|
protectedinherited |
Definition at line 133 of file job.h.
Referenced by JOB::GetFullOutputPath(), JOB::JOB(), JOB::OutputPathFullSpecified(), and JOB::SetOutputPath().
|
protectedinherited |
Definition at line 134 of file job.h.
Referenced by JOB::GetFullOutputPath(), JOB::JOB(), and JOB::OutputPathFullSpecified().
|
protectedinherited |
VECTOR3D JOB_PCB_RENDER::m_pan |
Definition at line 79 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
|
protectedinherited |
Definition at line 136 of file job.h.
Referenced by JOB::FromJson(), JOB::JOB(), JOB_EXPORT_PCB_3D::JOB_EXPORT_PCB_3D(), JOB_EXPORT_PCB_GERBER::JOB_EXPORT_PCB_GERBER(), JOB_EXPORT_PCB_GERBERS::JOB_EXPORT_PCB_GERBERS(), JOB_EXPORT_PCB_PDF::JOB_EXPORT_PCB_PDF(), JOB_EXPORT_PCB_SVG::JOB_EXPORT_PCB_SVG(), JOB_EXPORT_SCH_BOM::JOB_EXPORT_SCH_BOM(), JOB::ToJson(), and JOB::~JOB().
bool JOB_PCB_RENDER::m_perspective = false |
Definition at line 77 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
VECTOR3D JOB_PCB_RENDER::m_pivot |
Definition at line 80 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
QUALITY JOB_PCB_RENDER::m_quality = QUALITY::BASIC |
Definition at line 70 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
VECTOR3D JOB_PCB_RENDER::m_rotation |
Definition at line 78 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
Definition at line 75 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
|
protectedinherited |
Definition at line 131 of file job.h.
Referenced by JOB::GetFullOutputPath(), and JOB::SetTempOutputDirectory().
|
protectedinherited |
int JOB_PCB_RENDER::m_width = 0 |
Definition at line 72 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().
double JOB_PCB_RENDER::m_zoom = 1.0 |
Definition at line 76 of file job_pcb_render.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportRender().