Code formatting.
This commit is contained in:
parent
db0d708300
commit
81ad03cf91
|
@ -790,12 +790,12 @@ void PNS_LINE_PLACER::Start( const VECTOR2I& aP, PNS_ITEM* aStartItem )
|
|||
m_currentEnd = p;
|
||||
m_currentNet = net;
|
||||
|
||||
PNS_NODE *rootNode = Router()->GetWorld()->Branch();
|
||||
PNS_NODE* rootNode = Router()->GetWorld()->Branch();
|
||||
|
||||
if( splitSeg )
|
||||
splitAdjacentSegments( rootNode, aStartItem, p );
|
||||
|
||||
setWorld ( rootNode );
|
||||
setWorld( rootNode );
|
||||
setInitialDirection( Settings().InitialDirection() );
|
||||
startPlacement( p, m_currentNet, m_currentWidth, m_currentLayer );
|
||||
}
|
||||
|
@ -848,7 +848,7 @@ bool PNS_LINE_PLACER::FixRoute( const VECTOR2I& aP, PNS_ITEM* aEndItem )
|
|||
|
||||
PNS_LINE pl = Trace();
|
||||
|
||||
if (m_currentMode == RM_MarkObstacles &&
|
||||
if( m_currentMode == RM_MarkObstacles &&
|
||||
!Settings().CanViolateDRC() &&
|
||||
m_world->CheckColliding( &pl ) )
|
||||
return false;
|
||||
|
@ -889,9 +889,9 @@ bool PNS_LINE_PLACER::FixRoute( const VECTOR2I& aP, PNS_ITEM* aEndItem )
|
|||
m_lastNode->Add( pl.Via().Clone() );
|
||||
|
||||
if( realEnd )
|
||||
simplifyNewLine ( m_lastNode, lastSeg );
|
||||
simplifyNewLine( m_lastNode, lastSeg );
|
||||
|
||||
Router()->CommitRouting ( m_lastNode );
|
||||
Router()->CommitRouting( m_lastNode );
|
||||
|
||||
m_lastNode = NULL;
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
* Starts routing a single track at point aP, taking item aStartItem as anchor
|
||||
* (unless NULL).
|
||||
*/
|
||||
void Start ( const VECTOR2I& aP, PNS_ITEM* aStartItem );
|
||||
void Start( const VECTOR2I& aP, PNS_ITEM* aStartItem );
|
||||
|
||||
/**
|
||||
* Function Move()
|
||||
|
|
|
@ -612,7 +612,7 @@ void PNS_ROUTER::moveDragging( const VECTOR2I& aP, PNS_ITEM* aEndItem )
|
|||
m_dragger->Drag( aP );
|
||||
PNS_ITEMSET dragged = m_dragger->Traces();
|
||||
|
||||
updateView ( m_dragger->CurrentNode(), dragged );
|
||||
updateView( m_dragger->CurrentNode(), dragged );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ private:
|
|||
PNS_NODE* m_world;
|
||||
PNS_NODE* m_lastNode;
|
||||
PNS_LINE_PLACER* m_placer;
|
||||
PNS_DRAGGER *m_dragger;
|
||||
PNS_DRAGGER* m_dragger;
|
||||
PNS_LINE* m_draggedLine;
|
||||
PNS_SHOVE* m_shove;
|
||||
int m_draggedSegmentIndex;
|
||||
|
|
Loading…
Reference in New Issue