91 BOOST_CHECK( ( m_sch_pin->GetType() == m_lib_pin->GetType() ) );
134 m_sch_pin->SetIsDangling(
false );
138 m_sch_pin->SetIsDangling(
true );
149 const wxString
name = m_sch_pin->GetDefaultNetName(
path );
154 const wxString map_name = m_sch_pin->GetDefaultNetName(
path );
165 m_parent_part->SetPower();
170 delete m_parent_symbol;
171 m_parent_symbol =
new SCH_SYMBOL( *m_parent_part, m_parent_part->GetLibId(), &
path, 0, 0,
173 m_parent_symbol->SetRef( &
path,
"U2" );
174 m_parent_symbol->SetValueFieldText(
"voltage_value" );
175 m_parent_symbol->UpdatePins();
177 m_sch_pin = m_parent_symbol->GetPins( &
path )[0];
180 const wxString pwr_name = m_sch_pin->GetDefaultNetName(
path );
Define a library symbol object.
const LIB_ID & GetLibId() const override
void AddDrawItem(SCH_ITEM *aItem, bool aSort=true)
Add a new draw aItem to the draw object list and sort according to aSort.
const SYMBOL * GetParentSymbol() const
void SetNumber(const wxString &aNumber)
ALT GetAlt(const wxString &aAlt)
void SetName(const wxString &aName)
void SetPosition(const VECTOR2I &aPos) override
void SetType(ELECTRICAL_PINTYPE aType)
const wxString & GetNumber() const
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
void UpdatePins()
Updates the cache of SCH_PIN objects for each pin.
void SetRef(const SCH_SHEET_PATH *aSheet, const wxString &aReference)
Set the reference for the given sheet path for this symbol.
std::vector< SCH_PIN * > GetPins(const SCH_SHEET_PATH *aSheet) const
Retrieve a list of the SCH_PINs for the given sheet path.
SCH_SYMBOL * m_parent_symbol
LIB_SYMBOL * m_parent_part
@ PT_POWER_IN
power input (GND, VCC for ICs). Must be connected to a power output.
BOOST_CHECK_EQUAL(ret, c.m_exp_result)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(DefaultProperties)
Declare the test suite.
VECTOR2< int32_t > VECTOR2I