gui.pile_viewer
¶
-
class
TimeScaler
[source]¶ Undocumented.
-
make_scale
(data_range)[source]¶ Get nice minimum, maximum and increment for given data range.
Returns
(minimum, maximum, increment)
or(maximum, minimum, -increment)
, depending on whether data_range is(data_min, data_max)
or(data_max, data_min)
. Ifoverride_mode
is defined, the mode attribute is temporarily overridden by the given value.
-
-
class
PileViewerMain
(pile, ntracks_shown_max, panel_parent, *args, menu=None)¶ -
drawit
(p, printmode=False, w=None, h=None)¶ This performs the actual drawing.
-
paintEvent
(paint_ev)¶ Called by QT whenever widget needs to be painted.
-
read_events
(fn=None)¶ Open QFileDialog to open, read and add
pyrocko.model.Event
instances and their marker representation to the pile viewer.
-
read_markers
(fn=None)¶ Open QFileDialog to open, read and add markers to the pile viewer.
-
remove_marker
(marker)¶ Remove a
marker
from thePileViewer
.Parameters: marker – Marker
(or subclass) instance
-
remove_markers
(markers)¶ Remove a list of
markers
from thePileViewer
.Parameters: markers – list of Marker
(or subclass) instances
-
set_selected_markers
(markers)¶ Set a list of markers selected
Parameters: markers – list of markers
-
-
GLPileViewerMain
¶ alias of
pyrocko.gui.pile_viewer.MakePileViewerMainClass.<locals>.PileViewerMain