geolinkedviewers

Contains the GeolinkedViewers class.

class tuiview.geolinkedviewers.GeolinkedViewers(loadPlugins=True)[source]

Class that manages a collection of ViewerWindows that have their widgets geolinked.

cleanUp()[source]

remove any viewers that are no longer in the activelist

closeAll()[source]

Call this to close all geonlinked viewers

connectSignals(newviewer)[source]

Connects the appropriate signals for the new viewer

getDesktopSize()[source]

Called at the start of the tiling operation. Default implementation just gets the size of the desktop. if overridden, return a QRect

static getViewerList()[source]

Gets the list of current viewer windows from Qt

newViewer(filename=None, stretch=None)[source]

Call this to create a new geolinked viewer. Returns the created ViewerWindow instance.

onMove(obj)[source]

Called when a widget signals it has moved. Move all the other widgets. A GeolinkInfo object is passed. Sends the id() of the widget and uses this to not move the original widget

onNewQueryWindow(querywindow)[source]

Called when the viewer starts a new query window

onNewWindow()[source]

Called when the user requests a new window

onQuery(obj)[source]

Called when a widget signals the query point has moved. Notify the other widgets. A GeolinkInfo object is passed. Sends the id() of the widget and uses this not to notify the original widget

onTileWindows(nxside, nyside)[source]

Called when the user wants the windows to be tiled

readViewersState(fileobj)[source]

Reads viewer state from the fileobj and restores viewers

removeQueryPointAll(senderid)[source]

Calls removeQueryPoint on all the widgets

setActiveToolAll(tool, senderid)[source]

sets the specified tool as active on all the viewers

setQueryPointAll(senderid, easting, northing, color, size=None, cursor=None)[source]

Calls setQueryPoint on all the widgets

writeViewersState(fileobj)[source]

Gets the state of all the viewers (location, layers etc) as a json encoded string and write it to fileobj

newViewerCreated