|
KiCad PCB EDA Suite
|
Public Member Functions | |
| DRC_TASK (API_HANDLER_PCB *aHandler, bool aReportAllTrackErrors, bool aTestFootprints, bool aRequireZonesFilled) | |
| void | Run () override |
| The task runner; called on the main thread. | |
| void | FillStatus (TaskStatusResponse &aStatus) const override |
| DrcTaskResult | Result () const |
| virtual void | FillStatus (kiapi::common::tasks::TaskStatusResponse &aStatus) const =0 |
| Called after Run() returns; should fill in the result of the run. | |
Private Member Functions | |
| bool | checkZonesFilled () |
| bool | fetchNetlist () |
| void | buildResult () |
Private Attributes | |
| API_HANDLER_PCB * | m_handler |
| BOARD * | m_board |
| bool | m_reportAllTrackErrors |
| bool | m_testFootprints |
| bool | m_requireZonesFilled |
| TaskState | m_state = TS_UNKNOWN |
| std::string | m_errorMessage |
| std::unique_ptr< NETLIST > | m_netlist |
| std::unique_ptr< BOARD_COMMIT > | m_commit |
| std::vector< PCB_MARKER * > | m_violationMarkers |
| DrcTaskResult | m_result |
Definition at line 177 of file api_handler_pcb_tasks.cpp.
|
inline |
Definition at line 180 of file api_handler_pcb_tasks.cpp.
References API_HANDLER_PCB::API_HANDLER_PCB(), API_HANDLER_BOARD::board(), m_board, m_handler, m_reportAllTrackErrors, m_requireZonesFilled, and m_testFootprints.
|
inlineprivate |
Definition at line 493 of file api_handler_pcb_tasks.cpp.
References PCB_MARKER::GetSeverity(), m_result, and m_violationMarkers.
Referenced by Run().
|
inlineprivate |
Definition at line 398 of file api_handler_pcb_tasks.cpp.
References m_board, m_errorMessage, and m_state.
Referenced by Run().
|
inlineprivate |
Definition at line 417 of file api_handler_pcb_tasks.cpp.
References _, eeschema, KIWAY::FACE_SCH, API_HANDLER_PCB::frame(), GetKifaceService(), FILEEXT::KiCadSchematicFileExtension, KIWAY::KiFACE(), FILEEXT::LegacySchematicFileExtension, KICAD_NETLIST_READER::LoadNetlist(), m_board, m_errorMessage, m_handler, m_netlist, m_state, and MAIL_SCH_GET_NETLIST_CANCELLED.
Referenced by Run().
|
inlineoverride |
Definition at line 383 of file api_handler_pcb_tasks.cpp.
References m_errorMessage, and m_state.
|
pure virtualinherited |
Called after Run() returns; should fill in the result of the run.
|
inline |
Definition at line 392 of file api_handler_pcb_tasks.cpp.
References m_result.
Referenced by API_HANDLER_PCB::handleGetDrcTaskResult().
|
inlineoverridevirtual |
The task runner; called on the main thread.
Implements API_TASK.
Definition at line 190 of file api_handler_pcb_tasks.cpp.
References _, buildResult(), checkZonesFilled(), DRC_TOOL_NAME, fetchNetlist(), TOOL_MANAGER::FindTool(), API_HANDLER_PCB::frame(), DRC_TOOL::GetDRCDialog(), TOOL_MANAGER::GetTool(), DRC_TOOL::IsDRCRunning(), m_board, m_commit, m_errorMessage, m_handler, m_netlist, m_reportAllTrackErrors, m_requireZonesFilled, m_state, m_testFootprints, m_violationMarkers, MARKER_BASE::MARKER_DRAWING_SHEET, MM, pcbIUScale, PR_CAN_ABORT, TOOL_MANAGER::RegisterTool(), reporter, SKIP_SET_DIRTY, SKIP_UNDO, and TO_UTF8.
|
private |
Definition at line 534 of file api_handler_pcb_tasks.cpp.
Referenced by checkZonesFilled(), DRC_TASK(), fetchNetlist(), and Run().
|
private |
Definition at line 543 of file api_handler_pcb_tasks.cpp.
Referenced by Run().
|
private |
Definition at line 540 of file api_handler_pcb_tasks.cpp.
Referenced by checkZonesFilled(), fetchNetlist(), FillStatus(), and Run().
|
private |
Definition at line 533 of file api_handler_pcb_tasks.cpp.
Referenced by DRC_TASK(), fetchNetlist(), and Run().
|
private |
Definition at line 542 of file api_handler_pcb_tasks.cpp.
Referenced by fetchNetlist(), and Run().
|
private |
Definition at line 535 of file api_handler_pcb_tasks.cpp.
Referenced by DRC_TASK(), and Run().
|
private |
Definition at line 537 of file api_handler_pcb_tasks.cpp.
Referenced by DRC_TASK(), and Run().
|
private |
Definition at line 545 of file api_handler_pcb_tasks.cpp.
Referenced by buildResult(), and Result().
|
private |
Definition at line 539 of file api_handler_pcb_tasks.cpp.
Referenced by checkZonesFilled(), fetchNetlist(), FillStatus(), and Run().
|
private |
Definition at line 536 of file api_handler_pcb_tasks.cpp.
Referenced by DRC_TASK(), and Run().
|
private |
Definition at line 544 of file api_handler_pcb_tasks.cpp.
Referenced by buildResult(), and Run().