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)

new_state()

layout editor state machine

plotselptseg(pt[, color, ms, marker])

plot selected point or segments

show(fig, ax[, clear, dnodes, dedges, …])

show layout

update_state()

update state

Methods Documentation

OnClick(event)[source]

handle OnClick event

event :

pylayers.gis.layout.Layout.ispoint

OnClickRelease(event)[source]
OnMotion(event)[source]
OnPress(event, verbose=True)[source]

Keyboard event handler

event verbose

OnRelease(event)[source]
format_coord(x, y)[source]
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

show(fig, ax, clear=False, dnodes=True, dedges=True, font_size=14, title='')[source]

show layout

clear : boolean dnodes : boolean dedges : boolean dlabels : boolean font_size : integer title : string

update_state()[source]

update state