Pcbnew: Block selection enhancement, from Bug #593997 (whishlist)

1. block created from-left-to-right selects only 100%inside selection objects (as it now does)
2.block created from-right-to-left selects all overlapping objects inside selection
From the patch sent by mathieulj (mathieulj), and some fixes and code cleaning.
This commit is contained in:
jean-pierre charras
2013-09-21 20:09:41 +02:00
parent a010b6177c
commit c46b8aecbc
22 changed files with 342 additions and 103 deletions
+3 -10
View File
@@ -582,14 +582,7 @@ int CPolyLine::GetEndContour( int ic )
}
CRect CPolyLine::GetBounds()
{
CRect r = GetCornerBounds();
return r;
}
CRect CPolyLine::GetCornerBounds()
CRect CPolyLine::GetBoundingBox()
{
CRect r;
@@ -608,7 +601,7 @@ CRect CPolyLine::GetCornerBounds()
}
CRect CPolyLine::GetCornerBounds( int icont )
CRect CPolyLine::GetBoundingBox( int icont )
{
CRect r;
@@ -1381,7 +1374,7 @@ bool CPolyLine::IsPolygonSelfIntersecting()
cr.reserve( n_cont );
for( int icont = 0; icont<n_cont; icont++ )
cr.push_back( GetCornerBounds( icont ) );
cr.push_back( GetBoundingBox( icont ) );
for( int icont = 0; icont<n_cont; icont++ )
{