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

Public Member Functions

 EMPTY_POWER_VALUE_ERC_FIXTURE ()
 
LIB_SYMBOL * MakePowerLibSymbol (const wxString &aName, bool aLocal)
 Build a single pin power symbol, the shape every rail symbol in the stock library has.
 
LIB_SYMBOL * MakeSymbolWithHiddenPowerPin (const wxString &aName, const wxString &aPinName)
 An ordinary symbol carrying a hidden power input, the legacy shape that names its net from the pin and never from the value.
 
SCH_SYMBOL * Place (LIB_SYMBOL *aPart, const VECTOR2I &aPos, const wxString &aValue)
 
int RunCheck ()
 
int CountMarkers ()
 

Public Attributes

SETTINGS_MANAGER m_mgr
 
std::unique_ptr< SCHEMATIC > m_schematic
 
SCH_SCREEN * m_screen
 
SCH_SHEET * m_sheet
 
std::vector< std::unique_ptr< LIB_SYMBOL > > m_libSymbols
 

Detailed Description

Definition at line 38 of file test_erc_empty_power_value.cpp.

Constructor & Destructor Documentation

◆ EMPTY_POWER_VALUE_ERC_FIXTURE()

EMPTY_POWER_VALUE_ERC_FIXTURE::EMPTY_POWER_VALUE_ERC_FIXTURE ( )
inline

Definition at line 40 of file test_erc_empty_power_value.cpp.

References m_mgr, m_schematic, m_screen, and m_sheet.

Member Function Documentation

◆ CountMarkers()

int EMPTY_POWER_VALUE_ERC_FIXTURE::CountMarkers ( )
inline

◆ MakePowerLibSymbol()

LIB_SYMBOL * EMPTY_POWER_VALUE_ERC_FIXTURE::MakePowerLibSymbol ( const wxString & aName,
bool aLocal )
inline

Build a single pin power symbol, the shape every rail symbol in the stock library has.

Definition at line 56 of file test_erc_empty_power_value.cpp.

References LIB_SYMBOL::AddDrawItem(), LIB_SYMBOL::GetValueField(), m_libSymbols, pin, PT_POWER_IN, LIB_SYMBOL::SetGlobalPower(), LIB_SYMBOL::SetLocalPower(), and SCH_FIELD::SetText().

◆ MakeSymbolWithHiddenPowerPin()

LIB_SYMBOL * EMPTY_POWER_VALUE_ERC_FIXTURE::MakeSymbolWithHiddenPowerPin ( const wxString & aName,
const wxString & aPinName )
inline

An ordinary symbol carrying a hidden power input, the legacy shape that names its net from the pin and never from the value.

Definition at line 80 of file test_erc_empty_power_value.cpp.

References LIB_SYMBOL::AddDrawItem(), m_libSymbols, pin, and PT_POWER_IN.

◆ Place()

SCH_SYMBOL * EMPTY_POWER_VALUE_ERC_FIXTURE::Place ( LIB_SYMBOL * aPart,
const VECTOR2I & aPos,
const wxString & aValue )
inline

◆ RunCheck()

int EMPTY_POWER_VALUE_ERC_FIXTURE::RunCheck ( )
inline

Member Data Documentation

◆ m_libSymbols

std::vector<std::unique_ptr<LIB_SYMBOL> > EMPTY_POWER_VALUE_ERC_FIXTURE::m_libSymbols

◆ m_mgr

SETTINGS_MANAGER EMPTY_POWER_VALUE_ERC_FIXTURE::m_mgr

Definition at line 128 of file test_erc_empty_power_value.cpp.

Referenced by EMPTY_POWER_VALUE_ERC_FIXTURE().

◆ m_schematic

std::unique_ptr<SCHEMATIC> EMPTY_POWER_VALUE_ERC_FIXTURE::m_schematic

Definition at line 129 of file test_erc_empty_power_value.cpp.

Referenced by EMPTY_POWER_VALUE_ERC_FIXTURE(), Place(), and RunCheck().

◆ m_screen

SCH_SCREEN* EMPTY_POWER_VALUE_ERC_FIXTURE::m_screen

◆ m_sheet

SCH_SHEET* EMPTY_POWER_VALUE_ERC_FIXTURE::m_sheet

Definition at line 131 of file test_erc_empty_power_value.cpp.

Referenced by EMPTY_POWER_VALUE_ERC_FIXTURE().


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