Skip to content

Commit

Permalink
Added quadrant selection points for linear dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
frank committed Dec 4, 2014
1 parent 1ec40fc commit 506b53a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion selectionOverlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ def addSelectionPoint( x, y ): #common code
graphicsItem.setZValue( 1.01**-r ) #smaller circles on top
postProcessGraphicsItem(graphicsItem, {'x':x,'y':y,'r':r})
if doPoints:
addSelectionPoint ( x, y )
addSelectionPoint ( x, y ) #Circle center point
addSelectionPoint ( x + r, y ) #Circle right quadrant point
addSelectionPoint ( x - r, y ) #Circle left quadrant point
addSelectionPoint ( x , y + r ) #Circle top quadrant point
addSelectionPoint ( x , y - r ) #Circle bottom quadrant point

if element.tag == 'text' and doTextItems:
addSelectionPoint( *element.applyTransforms( float( element.parms['x'] ), float( element.parms['y'] ) ) )
if element.tag == 'path':
Expand Down

0 comments on commit 506b53a

Please sign in to comment.