PNS: Re-add debugging of via dragging
This commit is contained in:
parent
6ebc2fca15
commit
79a6b0d129
|
@ -1056,12 +1056,11 @@ SHOVE::SHOVE_STATUS SHOVE::onReverseCollidingVia( LINE& aCurrent, VIA* aObstacle
|
|||
|
||||
if( st != SH_OK )
|
||||
{
|
||||
#if 0
|
||||
m_logger.NewGroup( "on-reverse-via-fail-shove", m_iter );
|
||||
m_logger.Log( aObstacleVia, 0, "the-via" );
|
||||
m_logger.Log( &aCurrent, 1, "current-line" );
|
||||
m_logger.Log( &shoved, 3, "shoved-line" );
|
||||
#endif
|
||||
PNS_DBG( Dbg(), BeginGroup, "on-reverse-via-fail-shove", m_iter );
|
||||
PNS_DBG( Dbg(), AddItem, aObstacleVia, LIGHTRED, 100000, wxT( "the-via" ) );
|
||||
PNS_DBG( Dbg(), AddItem, &aCurrent, LIGHTGREEN, 10000, wxT( "current-line" ) );
|
||||
PNS_DBG( Dbg(), AddItem, &shoved, LIGHTRED, 10000, wxT( "shoved-line" ) );
|
||||
PNS_DBGN( Dbg(), EndGroup );
|
||||
|
||||
return st;
|
||||
}
|
||||
|
@ -1073,11 +1072,10 @@ SHOVE::SHOVE_STATUS SHOVE::onReverseCollidingVia( LINE& aCurrent, VIA* aObstacle
|
|||
|
||||
if( !n )
|
||||
{
|
||||
#if 0
|
||||
m_logger.NewGroup( "on-reverse-via-fail-lonevia", m_iter );
|
||||
m_logger.Log( aObstacleVia, 0, "the-via" );
|
||||
m_logger.Log( &aCurrent, 1, "current-line" );
|
||||
#endif
|
||||
PNS_DBG( Dbg(), BeginGroup, "on-reverse-via-fail-lonevia", m_iter );
|
||||
PNS_DBG( Dbg(), AddItem, aObstacleVia, LIGHTRED, 100000, wxT( "the-via" ) );
|
||||
PNS_DBG( Dbg(), AddItem, &aCurrent, LIGHTGREEN, 10000, wxT( "current-line" ) );
|
||||
PNS_DBGN( Dbg(), EndGroup );
|
||||
|
||||
LINE head( aCurrent );
|
||||
head.Line().Clear();
|
||||
|
@ -1095,16 +1093,11 @@ SHOVE::SHOVE_STATUS SHOVE::onReverseCollidingVia( LINE& aCurrent, VIA* aObstacle
|
|||
if( aCurrent.EndsWithVia() )
|
||||
shoved.AppendVia( aCurrent.Via() );
|
||||
|
||||
#if 0
|
||||
m_logger.NewGroup( "on-reverse-via", m_iter );
|
||||
m_logger.Log( aObstacleVia, 0, "the-via" );
|
||||
m_logger.Log( &aCurrent, 1, "current-line" );
|
||||
m_logger.Log( &shoved, 3, "shoved-line" );
|
||||
#endif
|
||||
|
||||
PNS_DBG( Dbg(), BeginGroup, "on-reverse-via", m_iter );
|
||||
PNS_DBG( Dbg(), AddItem, aObstacleVia, YELLOW, 0, wxT( "rr-the-via" ) );
|
||||
PNS_DBG( Dbg(), AddItem, &aCurrent, BLUE, 0, wxT( "rr-current-line" ) );
|
||||
PNS_DBG( Dbg(), AddItem, &shoved, GREEN, 0, wxT( "rr-shoved-line" ) );
|
||||
PNS_DBGN( Dbg(), EndGroup );
|
||||
|
||||
int currentRank = aCurrent.Rank();
|
||||
replaceLine( aCurrent, shoved );
|
||||
|
@ -1565,10 +1558,6 @@ SHOVE::SHOVE_STATUS SHOVE::ShoveLines( const LINE& aCurrentHead )
|
|||
m_optimizerQueue.clear();
|
||||
m_newHead = OPT_LINE();
|
||||
|
||||
#if 0
|
||||
m_logger.Clear();
|
||||
#endif
|
||||
|
||||
// Pop NODEs containing previous shoves which are no longer necessary
|
||||
//
|
||||
ITEM_SET headSet;
|
||||
|
@ -1674,10 +1663,6 @@ SHOVE::SHOVE_STATUS SHOVE::ShoveMultiLines( const ITEM_SET& aHeadSet )
|
|||
m_lineStack.clear();
|
||||
m_optimizerQueue.clear();
|
||||
|
||||
#if 0
|
||||
m_logger.Clear();
|
||||
#endif
|
||||
|
||||
VIA_HANDLE dummyVia;
|
||||
|
||||
NODE* parent = reduceSpringback( headSet, dummyVia );
|
||||
|
|
Loading…
Reference in New Issue