Files missing from earlier commit.
This commit is contained in:
parent
c16e86be9a
commit
8cbfd8af9f
|
@ -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()
|
LSET PAD::PTHMask()
|
||||||
{
|
{
|
||||||
static LSET saved = LSET::AllCuMask() | LSET( 2, F_Mask, B_Mask );
|
static LSET saved = LSET::AllCuMask() | LSET( 2, F_Mask, B_Mask );
|
||||||
|
|
12
pcbnew/pad.h
12
pcbnew/pad.h
|
@ -155,6 +155,18 @@ public:
|
||||||
return GetParent() == other->GetParent() && m_number == other->m_number;
|
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.
|
* Set the new shape of this pad.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue