KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PCBNEW_JOBS_HANDLER Class Reference

#include <pcbnew_jobs_handler.h>

Inheritance diagram for PCBNEW_JOBS_HANDLER:
JOB_DISPATCHER

Public Member Functions

 PCBNEW_JOBS_HANDLER (KIWAY *aKiway)
 
int JobExportStep (JOB *aJob)
 
int JobExportSvg (JOB *aJob)
 
int JobExportDxf (JOB *aJob)
 
int JobExportPdf (JOB *aJob)
 
int JobExportGerber (JOB *aJob)
 
int JobExportGerbers (JOB *aJob)
 
int JobExportDrill (JOB *aJob)
 
int JobExportPos (JOB *aJob)
 
int JobExportFpUpgrade (JOB *aJob)
 
int JobExportFpSvg (JOB *aJob)
 
int JobExportDrc (JOB *aJob)
 
int JobExportIpc2581 (JOB *aJob)
 
void Register (const std::string &aJobTypeName, std::function< int(JOB *job)> aHandler)
 
int RunJob (JOB *job)
 
void SetReporter (REPORTER *aReporter)
 
void SetProgressReporter (PROGRESS_REPORTER *aReporter)
 

Protected Attributes

KIWAYm_kiway
 
REPORTERm_reporter
 
PROGRESS_REPORTERm_progressReporter
 

Private Member Functions

void populateGerberPlotOptionsFromJob (PCB_PLOT_PARAMS &aPlotOpts, JOB_EXPORT_PCB_GERBER *aJob)
 
int doFpExportSvg (JOB_FP_EXPORT_SVG *aSvgJob, const FOOTPRINT *aFootprint)
 
void loadOverrideDrawingSheet (BOARD *brd, const wxString &aSheetPath)
 
DS_PROXY_VIEW_ITEMgetDrawingSheetProxyView (BOARD *aBrd)
 

Private Attributes

std::map< std::string, std::function< int(JOB *job)> > m_jobHandlers
 

Detailed Description

Definition at line 34 of file pcbnew_jobs_handler.h.

Constructor & Destructor Documentation

◆ PCBNEW_JOBS_HANDLER()

Member Function Documentation

◆ doFpExportSvg()

◆ getDrawingSheetProxyView()

◆ JobExportDrc()

int PCBNEW_JOBS_HANDLER::JobExportDrc ( JOB aJob)

◆ JobExportDrill()

int PCBNEW_JOBS_HANDLER::JobExportDrill ( JOB aJob)

Definition at line 554 of file pcbnew_jobs_handler.cpp.

References _, JOB_EXPORT_PCB_DRILL::ABS, EXCELLON_WRITER::CreateDrillandMapFilesSet(), GERBER_WRITER::CreateDrillandMapFilesSet(), JOB_EXPORT_PCB_DRILL::DECIMAL, GENDRILL_WRITER_BASE::DECIMAL_FORMAT, JOB_EXPORT_PCB_DRILL::DXF, CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT, CLI::EXIT_CODES::ERR_UNKNOWN, JOB_EXPORT_PCB_DRILL::EXCELLON, JOB_EXPORT_PCB_DRILL::GERBER, JOB_EXPORT_PCB_DRILL::GERBER_X2, BOARD_DESIGN_SETTINGS::GetAuxOrigin(), BOARD::GetDesignSettings(), JOB_EXPORT_PCB_DRILL::INCHES, JOB::IsCli(), JOB_EXPORT_PCB_DRILL::KEEP_ZEROS, GENDRILL_WRITER_BASE::KEEP_ZEROS, LoadBoard(), JOB_EXPORT_PCB_DRILL::m_drillOrigin, JOB_EXPORT_PCB_DRILL::m_drillUnits, JOB_EXPORT_PCB_DRILL::m_excellonCombinePTHNPTH, JOB_EXPORT_PCB_DRILL::m_excellonMinimalHeader, JOB_EXPORT_PCB_DRILL::m_excellonMirrorY, JOB_EXPORT_PCB_DRILL::m_excellonOvalDrillRoute, JOB_EXPORT_PCB_DRILL::m_filename, JOB_EXPORT_PCB_DRILL::m_format, JOB_EXPORT_PCB_DRILL::m_generateMap, JOB_EXPORT_PCB_DRILL::m_gerberPrecision, DRILL_PRECISION::m_Lhs, JOB_EXPORT_PCB_DRILL::m_mapFormat, JOB_EXPORT_PCB_DRILL::m_outputDir, JOB_DISPATCHER::m_reporter, DRILL_PRECISION::m_Rhs, JOB_EXPORT_PCB_DRILL::m_zeroFormat, JOB_EXPORT_PCB_DRILL::MILLIMETERS, CLI::EXIT_CODES::OK, JOB_EXPORT_PCB_DRILL::PDF, JOB_EXPORT_PCB_DRILL::POSTSCRIPT, precisionListForInches, precisionListForMetric, REPORTER::Report(), RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, EXCELLON_WRITER::SetFormat(), GERBER_WRITER::SetFormat(), GENDRILL_WRITER_BASE::SetMapFileFormat(), EXCELLON_WRITER::SetOptions(), GERBER_WRITER::SetOptions(), EXCELLON_WRITER::SetRouteModeForOvalHoles(), JOB_EXPORT_PCB_DRILL::SUPPRESS_LEADING, GENDRILL_WRITER_BASE::SUPPRESS_LEADING, JOB_EXPORT_PCB_DRILL::SUPPRESS_TRAILING, GENDRILL_WRITER_BASE::SUPPRESS_TRAILING, and JOB_EXPORT_PCB_DRILL::SVG.

Referenced by PCBNEW_JOBS_HANDLER().

◆ JobExportDxf()

◆ JobExportFpSvg()

◆ JobExportFpUpgrade()

◆ JobExportGerber()

◆ JobExportGerbers()

◆ JobExportIpc2581()

◆ JobExportPdf()

◆ JobExportPos()

◆ JobExportStep()

int PCBNEW_JOBS_HANDLER::JobExportStep ( JOB aJob)

Definition at line 100 of file pcbnew_jobs_handler.cpp.

References _, PROJECT::ApplyTextVars(), BOARD::ComputeBoundingBox(), CLI::EXIT_CODES::ERR_UNKNOWN, EXPORTER_STEP::Export(), EXPORTER_VRML::ExportVRML_File(), BOX2< Vec >::GetCenter(), BOARD::GetFileName(), BOARD::GetProject(), JOB::GetVarOverrides(), JOB_EXPORT_PCB_3D::GLB, EXPORTER_STEP_PARAMS::GLB, FILEEXT::GltfBinaryFileExtension, JOB_EXPORT_PCB_3D::INCHES, JOB::IsCli(), EDA_IU_SCALE::IUTomm(), LoadBoard(), JOB_EXPORT_PCB_3D::m_boardOnly, EXPORTER_STEP_PARAMS::m_boardOnly, JOB_EXPORT_PCB_3D::m_BoardOutlinesChainingEpsilon, EXPORTER_STEP_PARAMS::m_BoardOutlinesChainingEpsilon, JOB_EXPORT_PCB_3D::m_exportTracks, EXPORTER_STEP_PARAMS::m_exportTracks, JOB_EXPORT_PCB_3D::m_exportZones, EXPORTER_STEP_PARAMS::m_exportZones, JOB_EXPORT_PCB_3D::m_filename, JOB_EXPORT_PCB_3D::m_format, EXPORTER_STEP_PARAMS::m_format, JOB_EXPORT_PCB_3D::m_hasUserOrigin, JOB_EXPORT_PCB_3D::m_includeDNP, EXPORTER_STEP_PARAMS::m_includeDNP, JOB_EXPORT_PCB_3D::m_includeUnspecified, EXPORTER_STEP_PARAMS::m_includeUnspecified, JOB_EXPORT_PCB_3D::m_optimizeStep, EXPORTER_STEP_PARAMS::m_optimizeStep, EXPORTER_STEP_PARAMS::m_origin, JOB_EXPORT_PCB_3D::m_outputFile, EXPORTER_STEP::m_outputFile, JOB_EXPORT_PCB_3D::m_overwrite, EXPORTER_STEP_PARAMS::m_overwrite, JOB_DISPATCHER::m_reporter, JOB_EXPORT_PCB_3D::m_substModels, EXPORTER_STEP_PARAMS::m_substModels, JOB_EXPORT_PCB_3D::m_useDrillOrigin, EXPORTER_STEP_PARAMS::m_useDrillOrigin, JOB_EXPORT_PCB_3D::m_useGridOrigin, EXPORTER_STEP_PARAMS::m_useGridOrigin, JOB_EXPORT_PCB_3D::m_vrmlModelDir, JOB_EXPORT_PCB_3D::m_vrmlRelativePaths, JOB_EXPORT_PCB_3D::m_vrmlUnits, JOB_EXPORT_PCB_3D::m_xOrigin, JOB_EXPORT_PCB_3D::m_yOrigin, JOB_EXPORT_PCB_3D::METERS, JOB_EXPORT_PCB_3D::MILLIMETERS, CLI::EXIT_CODES::OK, pcbIUScale, REPORTER::Report(), RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, scale, JOB_EXPORT_PCB_3D::STEP, EXPORTER_STEP_PARAMS::STEP, FILEEXT::StepFileExtension, JOB_EXPORT_PCB_3D::TENTHS, JOB_EXPORT_PCB_3D::VRML, FILEEXT::VrmlFileExtension, VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by PCBNEW_JOBS_HANDLER().

◆ JobExportSvg()

◆ loadOverrideDrawingSheet()

◆ populateGerberPlotOptionsFromJob()

◆ Register()

void JOB_DISPATCHER::Register ( const std::string &  aJobTypeName,
std::function< int(JOB *job)>  aHandler 
)
inherited

◆ RunJob()

int JOB_DISPATCHER::RunJob ( JOB job)
inherited

◆ SetProgressReporter()

void JOB_DISPATCHER::SetProgressReporter ( PROGRESS_REPORTER aReporter)
inherited

Definition at line 60 of file job_dispatcher.cpp.

References JOB_DISPATCHER::m_progressReporter.

◆ SetReporter()

void JOB_DISPATCHER::SetReporter ( REPORTER aReporter)
inherited

Definition at line 53 of file job_dispatcher.cpp.

References JOB_DISPATCHER::m_reporter.

Member Data Documentation

◆ m_jobHandlers

std::map<std::string, std::function<int( JOB* job )> > JOB_DISPATCHER::m_jobHandlers
privateinherited

Definition at line 49 of file job_dispatcher.h.

Referenced by JOB_DISPATCHER::Register(), and JOB_DISPATCHER::RunJob().

◆ m_kiway

KIWAY* JOB_DISPATCHER::m_kiway
protectedinherited

Definition at line 44 of file job_dispatcher.h.

Referenced by JobExportDrc(), and EESCHEMA_JOBS_HANDLER::JobSchErc().

◆ m_progressReporter

PROGRESS_REPORTER* JOB_DISPATCHER::m_progressReporter
protectedinherited

◆ m_reporter


The documentation for this class was generated from the following files: