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
instancePlot axes signal variable. If None start new one with None.
VpathInteriorFunc :
Variable
instancepy:func:~artview.components.RadarDisplay.getPathInteriorValues signal variable. If None start new one with None.
Vfield :
Variable
instanceField 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
Attributes
-
Vfield
= None¶
-
Vgatefilter
= None¶
-
VpathInteriorFunc
= None¶
-
VplotAxes
= None¶
-
Vpoints
= None¶
-
Vradar
= None¶
-