geolinkedviewers¶
Contains the GeolinkedViewers class.
- class tuiview.geolinkedviewers.GeolinkedViewers(*args: Any, **kwargs: Any)[source]¶
Class that manages a collection of ViewerWindows that have their widgets geolinked.
- newViewerCreated¶
signal emitted when a new viewer window is created
alias of
ViewerWindow
- stateRepeatActive¶
signal emitted when a save state timer is active/not active
alias of
bool
- getDesktopSize(screen)[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(screen=None)[source]¶
Gets the list of current viewer windows from Qt. Pass in a screen to restrict to the viewers on that screen
- layerAdded(widget)[source]¶
Called when a new layer is added. If it is the first layer and there is a last_geolink_obj active, then send a doGeoLinkMove so it gets the location we are working in
- 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
- onNewVectorQueryWindow(vectorwindow)[source]¶
Called when the viewer starts a new vector query 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
- onSaveStateTimer()[source]¶
Timer has triggered. Save file again, but don’t do anything to the timer.
- setQueryPointAll(senderid, easting, northing, color, size=None, cursor=None)[source]¶
Calls setQueryPoint on all the widgets
- writeViewersState(fname, repeat_secs, cancelTimer=True)[source]¶
Gets the state of all the viewers (location, layers etc) as a json encoded string and write it to fileobj.
Pass repeat_secs=0 when no automatic timer needs to be set
Set cancelTimer to True unless this function is being called from the timer.
- lastViewerClosed¶
signal emitted when there are no viewers left