insarviz.view.MainWidget module
- class insarviz.view.MainWidget.BandLine(pos=None, angle=90, pen=None, movable=False, bounds=None, hoverPen=None, label=None, labelOpts=None, span=(0, 1), markers=None, name=None)[source]
Bases:
InfiniteLineArguments:
pos
Position of the line. This can be a QPointF or a single value for vertical/horizontal lines.
angle
Angle of line in degrees. 0 is horizontal, 90 is vertical.
pen
Pen to use when drawing line. Can be any arguments that are valid for
mkPen. Default pen is transparent yellow.hoverPen
Pen to use when the mouse cursor hovers over the line. Only used when movable=True.
movable
If True, the line can be dragged to a new position by the user.
bounds
Optional [min, max] bounding values. Bounds are only valid if the line is vertical or horizontal.
hoverPen
Pen to use when drawing line when hovering over it. Can be any arguments that are valid for
mkPen. Default pen is red.label
Text to be displayed in a label attached to the line, or None to show no label (default is None). May optionally include formatting strings to display the line value.
labelOpts
A dict of keyword arguments to use when constructing the text label. See
InfLineLabel.span
Optional tuple (min, max) giving the range over the view to draw the line. For example, with a vertical line, use span=(0.5, 1) to draw only on the top half of the view.
markers
List of (marker, position, size) tuples, one per marker to display on the line. See the addMarker method.
name
Name of the item
- hovered
- staticMetaObject = PySide6.QtCore.QMetaObject("BandLine" inherits "InfiniteLine": Methods: #21 type=Signal, signature=hovered() )
- class insarviz.view.MainWidget.BandSlider(selected_band)[source]
Bases:
PlotWidgetArguments:
parent
Optional parent widget
useOpenGL
If True, the GraphicsView will use OpenGL to do all of its rendering. This can improve performance on some systems, but may also introduce bugs (the combination of QGraphicsView and QOpenGLWidget is still an ‘experimental’ feature of Qt)
background
Set the background color of the GraphicsView. Accepts any single argument accepted by
mkColor. By default, the background color is determined using the ‘backgroundColor’ configuration option (seesetConfigOptions).- DRAGGED_LINE_PEN = <PySide6.QtGui.QPen(3,QBrush(QColor(ARGB 1, 0, 1, 1),SolidPattern),SolidLine,16,64,QList(),0,2)>
- HOVER_LINE_PEN = <PySide6.QtGui.QPen(3,QBrush(QColor(ARGB 1, 1, 0, 0),SolidPattern),SolidLine,16,64,QList(),0,2)>
- LINE_PEN = PySide6.QtGui.QColor.fromRgbF(0.000000, 0.000000, 0.000000, 1.000000)
- REFERENCE_LINE_PEN = <PySide6.QtGui.QPen(3,QBrush(QColor(ARGB 1, 0.501961, 0, 0.501961),SolidPattern),SolidLine,16,64,QList(),0,2)>
- SELECTED_LINE_PEN = <PySide6.QtGui.QPen(3,QBrush(QColor(ARGB 1, 0, 0, 1),SolidPattern),SolidLine,16,64,QList(),0,2)>
- staticMetaObject = PySide6.QtCore.QMetaObject("BandSlider" inherits "PlotWidget": Methods: #52 type=Slot, signature=_on_drag_selected_band(PyObject), parameters=PyObject #53 type=Slot, signature=_on_band_change(QString), parameters=QString )
- class insarviz.view.MainWidget.DynamicCheckBox(sig)[source]
Bases:
QCheckBox- staticMetaObject = PySide6.QtCore.QMetaObject("DynamicCheckBox" inherits "QCheckBox": Methods: #45 type=Slot, signature=__signal_value_changed() #46 type=Slot, signature=__widget_value_changed() )
- class insarviz.view.MainWidget.DynamicSpinBox(prefix, sig)[source]
Bases:
QSpinBox- staticMetaObject = PySide6.QtCore.QMetaObject("DynamicSpinBox" inherits "QSpinBox": Methods: #41 type=Slot, signature=__signal_value_changed() #42 type=Slot, signature=__widget_value_changed() )
- class insarviz.view.MainWidget.MainWidget(window_state)[source]
Bases:
QSplitter- class ChildrenOfInterest[source]
Bases:
object- autorange_all_button: QPushButton
- autorange_button: QPushButton
- band_slider: BandSlider
- full_histogram_progress: ComputedProgressBar
- histogram_widget: HistogramLUTWidget
- legend_widget: GraphicsView
- position_label: QLabel
- pixel_hovered
- property resized_viewport
- staticMetaObject = PySide6.QtCore.QMetaObject("MainWidget" inherits "QSplitter": Methods: #34 type=Signal, signature=pixel_hovered(PyObject), parameters=PyObject #35 type=Slot, signature=__create_map_menu(QPoint), parameters=QPoint #36 type=Slot, signature=_on_band_changed(QString), parameters=QString #37 type=Slot, signature=_set_full_histograms() #38 type=Slot, signature=_on_colormap_changed(QString), parameters=QString #39 type=Slot, signature=_on_colormap_selected(PyObject), parameters=PyObject #40 type=Slot, signature=_on_levels_changed(PyObject), parameters=PyObject #41 type=Slot, signature=_on_autorange() #42 type=Slot, signature=_on_autorange_all() #43 type=Slot, signature=_set_cursor_position(PyObject), parameters=PyObject #44 type=Slot, signature=__full_histograms_changed() )
- property world_to_clip