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

The 3D model export job settings must survive a real save/load cycle through a .kicad_jobset on disk. More...

Public Member Functions

 JOB_EXPORT_PCB_3D_TEST_FIXTURE ()
 
 ~JOB_EXPORT_PCB_3D_TEST_FIXTURE ()
 
JOB_EXPORT_PCB_3DloadFilteredJob (JOBSET &aJobset)
 The reporter's second job, "3D model export (resistors only)".
 
wxString jobsetPath () const
 
wxString jobsetContents () const
 

Public Attributes

fs::path m_tempDir
 
fs::path m_jobsetPath
 

Detailed Description

The 3D model export job settings must survive a real save/load cycle through a .kicad_jobset on disk.

An unmapped field is invisible in memory: the dialog reads it back from the still live job object and only a reload exposes the loss.

Regression tests for https://gitlab.com/kicad/code/kicad/-/issues/25107

Definition at line 43 of file test_job_export_pcb_3d.cpp.

Constructor & Destructor Documentation

◆ JOB_EXPORT_PCB_3D_TEST_FIXTURE()

JOB_EXPORT_PCB_3D_TEST_FIXTURE::JOB_EXPORT_PCB_3D_TEST_FIXTURE ( )
inline

◆ ~JOB_EXPORT_PCB_3D_TEST_FIXTURE()

JOB_EXPORT_PCB_3D_TEST_FIXTURE::~JOB_EXPORT_PCB_3D_TEST_FIXTURE ( )
inline

Definition at line 59 of file test_job_export_pcb_3d.cpp.

References m_tempDir.

Member Function Documentation

◆ jobsetContents()

wxString JOB_EXPORT_PCB_3D_TEST_FIXTURE::jobsetContents ( ) const
inline

Definition at line 79 of file test_job_export_pcb_3d.cpp.

References jobsetPath(), and SafeReadFile().

◆ jobsetPath()

wxString JOB_EXPORT_PCB_3D_TEST_FIXTURE::jobsetPath ( ) const
inline

Definition at line 77 of file test_job_export_pcb_3d.cpp.

References m_jobsetPath.

Referenced by jobsetContents().

◆ loadFilteredJob()

JOB_EXPORT_PCB_3D * JOB_EXPORT_PCB_3D_TEST_FIXTURE::loadFilteredJob ( JOBSET & aJobset)
inline

The reporter's second job, "3D model export (resistors only)".

Definition at line 66 of file test_job_export_pcb_3d.cpp.

References BOOST_REQUIRE(), JOBSET::GetJobs(), and JSON_SETTINGS::LoadFromFile().

Member Data Documentation

◆ m_jobsetPath

fs::path JOB_EXPORT_PCB_3D_TEST_FIXTURE::m_jobsetPath

Definition at line 82 of file test_job_export_pcb_3d.cpp.

Referenced by JOB_EXPORT_PCB_3D_TEST_FIXTURE(), and jobsetPath().

◆ m_tempDir

fs::path JOB_EXPORT_PCB_3D_TEST_FIXTURE::m_tempDir

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