KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_ELLIPSE_FIXTURE Struct Reference

Public Member Functions

 SCH_ELLIPSE_FIXTURE ()
 
 ~SCH_ELLIPSE_FIXTURE ()
 
wxString GetTempFileName (const wxString &aPrefix)
 
SCH_SHAPERoundTrip (SCH_SHAPE *aShape, const wxString &aTag)
 Helper: add a SCH_SHAPE to the first screen, save, reload, and return the matching shape from the reloaded schematic.
 

Public Attributes

SETTINGS_MANAGER m_settingsManager
 
std::unique_ptr< SCHEMATICm_schematic
 
PROJECTm_project
 
std::vector< wxString > m_tempFiles
 

Detailed Description

Definition at line 37 of file test_sch_ellipse_roundtrip.cpp.

Constructor & Destructor Documentation

◆ SCH_ELLIPSE_FIXTURE()

SCH_ELLIPSE_FIXTURE::SCH_ELLIPSE_FIXTURE ( )
inline

Definition at line 39 of file test_sch_ellipse_roundtrip.cpp.

References m_project, m_schematic, m_settingsManager, and m_tempFiles.

◆ ~SCH_ELLIPSE_FIXTURE()

SCH_ELLIPSE_FIXTURE::~SCH_ELLIPSE_FIXTURE ( )
inline

Definition at line 52 of file test_sch_ellipse_roundtrip.cpp.

References m_schematic, and m_tempFiles.

Member Function Documentation

◆ GetTempFileName()

wxString SCH_ELLIPSE_FIXTURE::GetTempFileName ( const wxString & aPrefix)
inline

Definition at line 63 of file test_sch_ellipse_roundtrip.cpp.

References m_tempFiles.

Referenced by RoundTrip().

◆ RoundTrip()

SCH_SHAPE * SCH_ELLIPSE_FIXTURE::RoundTrip ( SCH_SHAPE * aShape,
const wxString & aTag )
inline

Helper: add a SCH_SHAPE to the first screen, save, reload, and return the matching shape from the reloaded schematic.

Caller checks fields.

Definition at line 75 of file test_sch_ellipse_roundtrip.cpp.

References SCH_SCREEN::Append(), SCH_SHEET::GetScreen(), EDA_SHAPE::GetShape(), GetTempFileName(), SCH_SCREEN::Items(), SCH_IO_KICAD_SEXPR::LoadSchematicFile(), m_schematic, m_tempFiles, SCH_IO_KICAD_SEXPR::SaveSchematicFile(), and SCH_SCREEN::SetFileName().

Member Data Documentation

◆ m_project

PROJECT* SCH_ELLIPSE_FIXTURE::m_project

Definition at line 119 of file test_sch_ellipse_roundtrip.cpp.

Referenced by SCH_ELLIPSE_FIXTURE().

◆ m_schematic

std::unique_ptr<SCHEMATIC> SCH_ELLIPSE_FIXTURE::m_schematic

◆ m_settingsManager

SETTINGS_MANAGER SCH_ELLIPSE_FIXTURE::m_settingsManager

Definition at line 117 of file test_sch_ellipse_roundtrip.cpp.

Referenced by SCH_ELLIPSE_FIXTURE().

◆ m_tempFiles

std::vector<wxString> SCH_ELLIPSE_FIXTURE::m_tempFiles

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