Files missing from earlier commit.

This commit is contained in:
Jeff Young 2022-09-28 15:10:28 +01:00
parent c16e86be9a
commit 8cbfd8af9f
2 changed files with 26 additions and 0 deletions

View File

@ -156,6 +156,20 @@ bool PAD::IsLocked() const
};
bool PAD::IsNoConnectPad() const
{
return GetShortNetname().StartsWith( wxT( "unconnected-(" ) )
&& ( m_pinType == wxT( "no_connect" ) || m_pinType.EndsWith( wxT( "+no_connect" ) ) );
}
bool PAD::IsFreePad() const
{
return GetShortNetname().StartsWith( wxT( "unconnected-(" ) )
&& m_pinType == wxT( "free" );
}
LSET PAD::PTHMask()
{
static LSET saved = LSET::AllCuMask() | LSET( 2, F_Mask, B_Mask );

View File

@ -155,6 +155,18 @@ public:
return GetParent() == other->GetParent() && m_number == other->m_number;
}
/**
* @return true if the pad is associated with an "unconnected" pin (or a no-connect symbol)
* and has no net.
*/
bool IsNoConnectPad() const;
/**
* @return true if the pad is associated with a "free" pin (not-internally-connected) and has
* not yet been assigned another net (ie: by being routed to).
*/
bool IsFreePad() const;
/**
* Set the new shape of this pad.
*/