PNS code formatting.
This commit is contained in:
parent
1b4daade82
commit
66778e1b00
|
@ -71,6 +71,7 @@ void PNS_LINE_PLACER::setWorld ( PNS_NODE* aWorld )
|
||||||
m_world = aWorld;
|
m_world = aWorld;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const PNS_VIA PNS_LINE_PLACER::makeVia( const VECTOR2I& aP )
|
const PNS_VIA PNS_LINE_PLACER::makeVia( const VECTOR2I& aP )
|
||||||
{
|
{
|
||||||
const PNS_LAYERSET layers( m_sizes.GetLayerTop(), m_sizes.GetLayerBottom() );
|
const PNS_LAYERSET layers( m_sizes.GetLayerTop(), m_sizes.GetLayerBottom() );
|
||||||
|
@ -82,6 +83,7 @@ const PNS_VIA PNS_LINE_PLACER::makeVia ( const VECTOR2I& aP )
|
||||||
bool PNS_LINE_PLACER::ToggleVia( bool aEnabled )
|
bool PNS_LINE_PLACER::ToggleVia( bool aEnabled )
|
||||||
{
|
{
|
||||||
m_placingVia = aEnabled;
|
m_placingVia = aEnabled;
|
||||||
|
|
||||||
if( !m_idle )
|
if( !m_idle )
|
||||||
Move( m_currentEnd, NULL );
|
Move( m_currentEnd, NULL );
|
||||||
|
|
||||||
|
@ -89,7 +91,6 @@ bool PNS_LINE_PLACER::ToggleVia( bool aEnabled )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void PNS_LINE_PLACER::setInitialDirection( const DIRECTION_45& aDirection )
|
void PNS_LINE_PLACER::setInitialDirection( const DIRECTION_45& aDirection )
|
||||||
{
|
{
|
||||||
m_initial_direction = aDirection;
|
m_initial_direction = aDirection;
|
||||||
|
@ -357,8 +358,6 @@ bool PNS_LINE_PLACER::mergeHead()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool PNS_LINE_PLACER::rhWalkOnly( const VECTOR2I& aP, PNS_LINE& aNewHead )
|
bool PNS_LINE_PLACER::rhWalkOnly( const VECTOR2I& aP, PNS_LINE& aNewHead )
|
||||||
{
|
{
|
||||||
PNS_LINE initTrack( m_head );
|
PNS_LINE initTrack( m_head );
|
||||||
|
@ -863,6 +862,7 @@ bool PNS_LINE_PLACER::FixRoute( const VECTOR2I& aP, PNS_ITEM* aEndItem )
|
||||||
Router()->CommitRouting( m_lastNode );
|
Router()->CommitRouting( m_lastNode );
|
||||||
m_idle = true;
|
m_idle = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -657,6 +657,7 @@ bool ROUTER_TOOL::onViaCommand( VIATYPE_T aType )
|
||||||
// Cannot place microvias or blind vias if not allowed (obvious)
|
// Cannot place microvias or blind vias if not allowed (obvious)
|
||||||
if( ( aType == VIA_BLIND_BURIED ) && ( !bds.m_BlindBuriedViaAllowed ) )
|
if( ( aType == VIA_BLIND_BURIED ) && ( !bds.m_BlindBuriedViaAllowed ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if( ( aType == VIA_MICROVIA ) && ( !bds.m_MicroViasAllowed ) )
|
if( ( aType == VIA_MICROVIA ) && ( !bds.m_MicroViasAllowed ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue