SelectL¶
-
class
pylayers.gis.selectl.
SelectL
(L, fig, ax)[source]¶ Bases:
object
Associates a Layout and a figure
‘l’ : select activelayer ‘i’ : back to init state ‘e’ : edit segment ‘CTLR + t’ : translate structure ‘h’ : add subsegment ‘d’ : delete subsegment ‘r’ : refresh ‘o’ : toggle overlay ‘m’ : toggle mode (point or segment) ‘z’ : change display parameters ‘q’ : quit interactive mode ‘x’ : save .str2 file ‘w’ : display all layers
Methods Summary
OnClick
(event)handle OnClick event
OnClickRelease
(event)OnMotion
(event)OnPress
(event[, verbose])Keyboard event handler
OnRelease
(event)format_coord
(x, y)layout editor state machine
plotselptseg
(pt[, color, ms, marker])plot selected point or segments
show
(fig, ax[, clear, dnodes, dedges, …])show layout
update state
Methods Documentation
-
new_state
()[source]¶ layout editor state machine
‘l’ : select activelayer ‘i’ : back to init state ‘j’ : vertical and horizontal scaling ‘e’ : edit segment ‘b’ : edit segment keyboard ‘CTRL + t’ : translate structure ‘h’ : add subsegment ‘d |Del’ : delete subsegment ‘r |F5’ : refresh ‘o’ : toggle overlay (<> CP mode)
set origin (CP mode)
‘m’ : toggle mode (point or segment) ‘n’ : toggle node label display ‘z’ : change display parameters ‘CTRL+q’ : quit ‘x |CTRL+s’ : save .str2 and .ini file ‘w’ : display all layers ‘v’ : flip layout w.r.t y axis ‘f’ : toggle points nodes display ‘g’ : toggle segments nodes display ‘=’ : increment layer ‘$’ : decrement layer
-
plotselptseg
(pt, color='y', ms=10, marker='o')[source]¶ plot selected point or segments
- ptlist
list of points or segments to plot
-