artview.components.SelectRegion

class artview.components.SelectRegion(VplotAxes=None, VpathInteriorFunc=None, Vfield=None, name='SelectRegion', parent=None)[source]

Bases: artview.core.core.Component

Select a Region of Interest.

This tool allows the user to draw a path in the display window using the mouse. The primary mouse button (often the left button) is used to select a point. The secondary mouse button (often the right button) is used to close the path of interest.

A straight-sided polygon may be selected by clicking and releasing the primary mouse button. A curved shape (free-hand drawing) may be drawn by holding down the primary mouse button.

One caveat found is that other tools may interfere with the curved shape drawing. If this is the case select the reset file defaults in toolbox menu.

The code modified from:

https://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg00661.html

__init__(VplotAxes=None, VpathInteriorFunc=None, Vfield=None, name='SelectRegion', parent=None)[source]

Initialize the class to select an Region of Interest on display.

Parameters:

VplotAxes : Variable instance

Plot axes signal variable. If None start new one with None.

VpathInteriorFunc : Variable instance

py:func:~artview.components.RadarDisplay.getPathInteriorValues signal variable. If None start new one with None.

Vfield : Variable instance

Field signal variable. If None start new one with empty string.

name : string

Window name.

parent : PyQt instance

Parent instance to associate to SelectRegion instance. If None, then Qt owns, otherwise associated with parent PyQt instance.

Methods

SelectRegion.CreateSelectRegionWidget
SelectRegion.NewPathInteriorFunc
SelectRegion.NewPlotAxes
SelectRegion.button_press_callback
SelectRegion.closeEvent
SelectRegion.connect
SelectRegion.disconnect
SelectRegion.guiStart
SelectRegion.motion_notify_callback
SelectRegion.removePolygon
SelectRegion.removeVertex
SelectRegion.resetSelectRegion
SelectRegion.update_points

Attributes

Vfield = None

see Shared Variables Table

Vgatefilter = None

see Shared Variables Table

VpathInteriorFunc = None

see Shared Variables Table

VplotAxes = None

see Shared Variables Table

Vpoints = None

see Shared Variables Table

Vradar = None

see Shared Variables Table