reborn.viewers.qtviews.padview_widgets package

Submodules

reborn.viewers.qtviews.padview_widgets.display_editor module

class reborn.viewers.qtviews.padview_widgets.display_editor.Widget(*args, padview=None, **kwargs)[source]

Bases: QWidget

fix_current_levels()[source]
upper_fixed_checkbox_action()[source]
upper_fixed_spinbox_action()[source]
upper_percentile_checkbox_action()[source]
upper_percentile_spinbox_action()[source]
lower_fixed_checkbox_action()[source]
lower_fixed_spinbox_action()[source]
lower_percentile_checkbox_action()[source]
lower_percentile_spinbox_action()[source]
mirror_checkbox_action()[source]
ignore_masked_checkbox_action()[source]

reborn.viewers.qtviews.padview_widgets.display_options module

class reborn.viewers.qtviews.padview_widgets.display_options.Widget(*args, padview=None, **kwargs)[source]

Bases: QWidget

reload_dataframe()[source]
auto_hist_checkbox_action()[source]
auto_geom_checkbox_action()[source]
auto_beam_checkbox_action()[source]
auto_mask_checkbox_action()[source]
downsampling_action(index)[source]
fgcache_checkbox_action()[source]

reborn.viewers.qtviews.padview_widgets.edit_beam module

class reborn.viewers.qtviews.padview_widgets.edit_beam.Widget(padview)[source]

Bases: QWidget

editor_widget = None
get_beam(none_ok=True)[source]
update_displayed_values()[source]
update_polarization()[source]
update_polarization_weight()[source]
update_diameter()[source]
update_photon_energy()[source]
update_wavelength()[source]
update_pulse_energy()[source]
update_n_photons()[source]
clear_beam()[source]
reborn.viewers.qtviews.padview_widgets.edit_beam.get_polarization_angle(beam)[source]
reborn.viewers.qtviews.padview_widgets.edit_beam.set_polarization_angle(beam, ang)[source]

reborn.viewers.qtviews.padview_widgets.edit_geometry module

class reborn.viewers.qtviews.padview_widgets.edit_geometry.Widget(padview)[source]

Bases: QWidget

editor_widget = None
rotate_x(direction=1.0)[source]
rotate_y(direction=1.0)[source]
rotate_z(direction=1.0)[source]
shift_x(direction=1.0)[source]
shift_y(direction=1)[source]
shift_z(direction=1)[source]
open_editor()[source]
class reborn.viewers.qtviews.padview_widgets.edit_geometry.DirectEditor(padview=None)[source]

Bases: QWidget

update_geometry()[source]
geometry_updated()[source]

reborn.viewers.qtviews.padview_widgets.frame_navigator module

reborn.viewers.qtviews.padview_widgets.frame_navigator.push(label, func, layout)[source]

Make QPushButton, connect to function, add to layout

reborn.viewers.qtviews.padview_widgets.frame_navigator.label(label, layout)[source]
reborn.viewers.qtviews.padview_widgets.frame_navigator.text(label, layout)[source]
class reborn.viewers.qtviews.padview_widgets.frame_navigator.Widget(padview)[source]

Bases: QWidget

dataframe_updated()[source]

What to do when PADView DataFrame has been updated.

show_next_frame()[source]
show_previous_frame()[source]
show_frame()[source]
toggle_play()[source]

reborn.viewers.qtviews.padview_widgets.mask_editor module

class reborn.viewers.qtviews.padview_widgets.mask_editor.Widget(padview)[source]

Bases: QWidget

MAX_HISTORY = 10
undo()[source]
redo()[source]
apply_mask()[source]
choose_mask_color()[source]
mask_panel_edges(n_pixels=None)[source]
mask_pads_by_names()[source]

reborn.viewers.qtviews.padview_widgets.misc module

class reborn.viewers.qtviews.padview_widgets.misc.GetMaskFileDialog(*args, **kwargs)[source]

Bases: QFileDialog

property combine
property overwrite

reborn.viewers.qtviews.padview_widgets.ring_editor module

reborn.viewers.qtviews.padview_widgets.ring_editor.dbgmsg(*args, **kwargs)[source]
reborn.viewers.qtviews.padview_widgets.ring_editor.default_pen()[source]
class reborn.viewers.qtviews.padview_widgets.ring_editor.RingTableModel[source]

Bases: QAbstractTableModel

data_changed

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

rowCount(self, parent: QModelIndex = QModelIndex()) int[source]
columnCount(self, parent: QModelIndex = QModelIndex()) int[source]
data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) Any[source]
setData(self, index: QModelIndex, value: Any, role: int = Qt.ItemDataRole.EditRole) bool[source]
flags(self, index: QModelIndex) Qt.ItemFlags[source]
headerData(self, section: int, orientation: Qt.Orientation, role: int = Qt.ItemDataRole.DisplayRole) Any[source]
row_copy(row=None)[source]
insertRow(self, row: int, parent: QModelIndex = QModelIndex()) bool[source]
removeRow(self, row: int, parent: QModelIndex = QModelIndex()) bool[source]
class reborn.viewers.qtviews.padview_widgets.ring_editor.QPenDelegate(parent)[source]

Bases: QItemDelegate

paint(self, painter: Optional[QPainter], option: QStyleOptionViewItem, index: QModelIndex)[source]
createEditor(self, parent: Optional[QWidget], option: QStyleOptionViewItem, index: QModelIndex) Optional[QWidget][source]
setEditorData(self, editor: Optional[QWidget], index: QModelIndex)[source]
setModelData(self, editor: Optional[QWidget], model: Optional[QAbstractItemModel], index: QModelIndex)[source]
updateEditorGeometry(self, editor: Optional[QWidget], option: QStyleOptionViewItem, index: QModelIndex)[source]
sizeHint(self, option: QStyleOptionViewItem, index: QModelIndex) QSize[source]
class reborn.viewers.qtviews.padview_widgets.ring_editor.RingTypeDelegate(parent)[source]

Bases: QItemDelegate

createEditor(self, parent: Optional[QWidget], option: QStyleOptionViewItem, index: QModelIndex) Optional[QWidget][source]
setEditorData(self, editor: Optional[QWidget], index: QModelIndex)[source]
setModelData(self, editor: Optional[QWidget], model: Optional[QAbstractItemModel], index: QModelIndex)[source]
currentIndexChanged()[source]
class reborn.viewers.qtviews.padview_widgets.ring_editor.RingEditWidget(parent=None, padview=None)[source]

Bases: QWidget

remove_selected_rows()[source]
add_row()[source]
update_rings()[source]
reborn.viewers.qtviews.padview_widgets.ring_editor.Widget

alias of RingEditWidget

reborn.viewers.qtviews.padview_widgets.run_stats module

class reborn.viewers.qtviews.padview_widgets.run_stats.Widget(padview)[source]

Bases: QWidget

stats = None
worker = None
pv = None
get_padstats()[source]
padstats_completed()[source]
show_padstats()[source]
terminate_thread()[source]
class reborn.viewers.qtviews.padview_widgets.run_stats.Worker(parent, *args, **kwargs)[source]

Bases: QThread

run(self)[source]

reborn.viewers.qtviews.padview_widgets.swaxs_simulator module

class reborn.viewers.qtviews.padview_widgets.swaxs_simulator.Widget(*args, padview=None, **kwargs)[source]

Bases: QWidget

pick_file()[source]
pick_directory()[source]
run()[source]

Module contents