Use node & unconnected count from CONNECTIVITY object
This commit is contained in:
parent
7b9330129c
commit
f1d650d5be
|
@ -77,8 +77,6 @@ BOARD::BOARD() :
|
||||||
|
|
||||||
m_Status_Pcb = 0; // Status word: bit 1 = calculate.
|
m_Status_Pcb = 0; // Status word: bit 1 = calculate.
|
||||||
SetColorsSettings( &g_ColorsSettings );
|
SetColorsSettings( &g_ColorsSettings );
|
||||||
m_nodeCount = 0; // Number of connected pads.
|
|
||||||
m_unconnectedNetCount = 0; // Number of unconnected nets.
|
|
||||||
|
|
||||||
m_CurrentZoneContour = NULL; // This ZONE_CONTAINER handle the
|
m_CurrentZoneContour = NULL; // This ZONE_CONTAINER handle the
|
||||||
// zone contour currently in progress
|
// zone contour currently in progress
|
||||||
|
@ -1054,7 +1052,13 @@ int BOARD::GetNumSegmZone() const
|
||||||
|
|
||||||
unsigned BOARD::GetNodesCount() const
|
unsigned BOARD::GetNodesCount() const
|
||||||
{
|
{
|
||||||
return m_nodeCount;
|
return m_connectivity->GetPadCount();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
unsigned BOARD::GetUnconnectedNetCount() const
|
||||||
|
{
|
||||||
|
return m_connectivity->GetUnconnectedCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -198,12 +198,6 @@ private:
|
||||||
TITLE_BLOCK m_titles; ///< text in lower right of screen and plots
|
TITLE_BLOCK m_titles; ///< text in lower right of screen and plots
|
||||||
PCB_PLOT_PARAMS m_plotOptions;
|
PCB_PLOT_PARAMS m_plotOptions;
|
||||||
|
|
||||||
/// Number of pads connected to the current net.
|
|
||||||
int m_nodeCount;
|
|
||||||
|
|
||||||
/// Number of unconnected nets in the current rats nest.
|
|
||||||
int m_unconnectedNetCount;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function chainMarkedSegments
|
* Function chainMarkedSegments
|
||||||
* is used by MarkTrace() to set the BUSY flag of connected segments of the trace
|
* is used by MarkTrace() to set the BUSY flag of connected segments of the trace
|
||||||
|
@ -712,27 +706,11 @@ public:
|
||||||
*/
|
*/
|
||||||
unsigned GetNodesCount() const;
|
unsigned GetNodesCount() const;
|
||||||
|
|
||||||
/**
|
|
||||||
* Function SetNodeCount
|
|
||||||
* set the number of nodes of the current net to \a aCount.
|
|
||||||
*
|
|
||||||
* @param aCount is the number of nodes attached to the current net.
|
|
||||||
*/
|
|
||||||
void SetNodeCount( unsigned aCount ) { m_nodeCount = aCount; }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function GetUnconnectedNetCount
|
* Function GetUnconnectedNetCount
|
||||||
* @return the number of unconnected nets in the current rats nest.
|
* @return the number of unconnected nets in the current ratsnest.
|
||||||
*/
|
*/
|
||||||
unsigned GetUnconnectedNetCount() const { return m_unconnectedNetCount; }
|
unsigned GetUnconnectedNetCount() const;
|
||||||
|
|
||||||
/**
|
|
||||||
* Function SetUnconnectedNetCount
|
|
||||||
* sets the number of unconnected nets in the current rats nest to \a aCount.
|
|
||||||
*
|
|
||||||
* @param aCount is the number of unconneceted nets in the current rats nest.
|
|
||||||
*/
|
|
||||||
void SetUnconnectedNetCount( unsigned aCount ) { m_unconnectedNetCount = aCount; }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function GetPadCount
|
* Function GetPadCount
|
||||||
|
|
|
@ -654,8 +654,8 @@ void LEGACY_PLUGIN::loadGENERAL()
|
||||||
|
|
||||||
else if( TESTLINE( "NoConn" ) )
|
else if( TESTLINE( "NoConn" ) )
|
||||||
{
|
{
|
||||||
int tmp = intParse( line + SZ( "NoConn" ) );
|
// ignore
|
||||||
m_board->SetUnconnectedNetCount( tmp );
|
intParse( line + SZ( "NoConn" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
else if( TESTLINE( "Di" ) )
|
else if( TESTLINE( "Di" ) )
|
||||||
|
|
|
@ -611,7 +611,8 @@ void PCB_PARSER::parseGeneralSection()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T_no_connects:
|
case T_no_connects:
|
||||||
m_board->SetUnconnectedNetCount( parseInt( "no connect count" ) );
|
// ignore
|
||||||
|
parseInt( "no connect count" );
|
||||||
NeedRIGHT();
|
NeedRIGHT();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue