Code formatting
This commit is contained in:
parent
80956ef1e6
commit
fc122834c2
|
@ -68,7 +68,6 @@ ROUTER::ROUTER()
|
||||||
{
|
{
|
||||||
theRouter = this;
|
theRouter = this;
|
||||||
|
|
||||||
|
|
||||||
m_state = IDLE;
|
m_state = IDLE;
|
||||||
m_mode = PNS_MODE_ROUTE_SINGLE;
|
m_mode = PNS_MODE_ROUTE_SINGLE;
|
||||||
|
|
||||||
|
@ -94,6 +93,7 @@ ROUTER::~ROUTER()
|
||||||
theRouter = nullptr;
|
theRouter = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ROUTER::SyncWorld()
|
void ROUTER::SyncWorld()
|
||||||
{
|
{
|
||||||
ClearWorld();
|
ClearWorld();
|
||||||
|
@ -126,10 +126,9 @@ const ITEM_SET ROUTER::QueryHoverItems( const VECTOR2I& aP )
|
||||||
if( m_state == IDLE )
|
if( m_state == IDLE )
|
||||||
return m_world->HitTest( aP );
|
return m_world->HitTest( aP );
|
||||||
else
|
else
|
||||||
{
|
|
||||||
return m_placer->CurrentNode()->HitTest( aP );
|
return m_placer->CurrentNode()->HitTest( aP );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
bool ROUTER::StartDragging( const VECTOR2I& aP, ITEM* aStartItem )
|
bool ROUTER::StartDragging( const VECTOR2I& aP, ITEM* aStartItem )
|
||||||
{
|
{
|
||||||
|
@ -152,6 +151,7 @@ bool ROUTER::StartDragging( const VECTOR2I& aP, ITEM* aStartItem )
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ROUTER::StartRouting( const VECTOR2I& aP, ITEM* aStartItem, int aLayer )
|
bool ROUTER::StartRouting( const VECTOR2I& aP, ITEM* aStartItem, int aLayer )
|
||||||
{
|
{
|
||||||
switch( m_mode )
|
switch( m_mode )
|
||||||
|
@ -197,6 +197,7 @@ void ROUTER::DisplayItems( const ITEM_SET& aItems )
|
||||||
m_iface->DisplayItem( item );
|
m_iface->DisplayItem( item );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ROUTER::Move( const VECTOR2I& aP, ITEM* endItem )
|
void ROUTER::Move( const VECTOR2I& aP, ITEM* endItem )
|
||||||
{
|
{
|
||||||
m_currentEnd = aP;
|
m_currentEnd = aP;
|
||||||
|
@ -228,8 +229,7 @@ void ROUTER::moveDragging( const VECTOR2I& aP, ITEM* aEndItem )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent,
|
void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent, NODE::ITEM_VECTOR& aRemoved )
|
||||||
NODE::ITEM_VECTOR& aRemoved )
|
|
||||||
{
|
{
|
||||||
for( ITEM* item : aCurrent.Items() )
|
for( ITEM* item : aCurrent.Items() )
|
||||||
{
|
{
|
||||||
|
@ -483,6 +483,7 @@ void ROUTER::SetMode( ROUTER_MODE aMode )
|
||||||
m_mode = aMode;
|
m_mode = aMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ROUTER::SetInterface( ROUTER_IFACE *aIface )
|
void ROUTER::SetInterface( ROUTER_IFACE *aIface )
|
||||||
{
|
{
|
||||||
m_iface = aIface;
|
m_iface = aIface;
|
||||||
|
|
Loading…
Reference in New Issue