artview.components.LevelButtonWindow

class artview.components.LevelButtonWindow(Vlevel=None, plot_type='Radar', Vcontainer=None, controlType='radio', name='LevelButtons', parent=None)[source]

Bases: artview.core.core.Component

Class to display the Window with Level radio buttons. The level can represent either tilts in a native radar file or some height level in a gridded data file.

__init__(Vlevel=None, plot_type='Radar', Vcontainer=None, controlType='radio', name='LevelButtons', parent=None)[source]

Initialize the class to create the Level Selection interface.

Parameters:

[Optional] :

Vlevel : Variable instance

Level signal variable. If None start new one with 0.

plot_type : string

One of “radarPpi”, “radarRhi”, “radarAirborne”, “gridZ”, “gridY” or “gridX”. If starting with “radar” Vlevel will be passed to Vtilt, otherwise to VlevelZ, VlevelY or VlevelX respectively. This can’t be changed afterwards.

Vcontainer : Variable instance

Radar/Grid signal variable. None will create empty variable. Will be passed to Vradar or Vgrid according with plot_type.

controlType : “radio” or “slider”

Type of control used, radio button or slider bar.

name : string

Level Radiobutton window name.

parent : PyQt instance

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

Notes

This class records the selected button and passes the change value back to variable.

Methods

LevelButtonWindow.CreateLevelWidget
LevelButtonWindow.LevelSelectCmd
LevelButtonWindow.LevelSelectCmdSlider
LevelButtonWindow.NewGrid
LevelButtonWindow.NewLevel
LevelButtonWindow.NewRadar
LevelButtonWindow.SetLevelRadioButtonsGrid
LevelButtonWindow.SetLevelRadioButtonsRadar
LevelButtonWindow.showValue

Attributes

Vcolormap = None

see Shared Variables Table

Vgrid = None

see Shared Variables Table

Vlevel

Alias to Vtilt, VlevelZ, VlevelY or VlevelX depending on plot_type.

VlevelX = None

see Shared Variables Table, used if plot_type=”gridX”

VlevelY = None

see Shared Variables Table, used if plot_type=”gridY”

VlevelZ = None

see Shared Variables Table, used if plot_type=”gridZ”

Vradar = None

see Shared Variables Table

Vtilt = None

see Shared Variables Table, used if plot_type starts with “Radar”