rayoptics.qtgui.dockpanels module

class PanelInfo(dock, panel_widget, menu_action)

Bases: tuple

dock

Alias for field number 0

menu_action

Alias for field number 2

panel_widget

Alias for field number 1

create_dock_windows(gui_app)[source]
create_dock_widget(gui_app, item_key, label, panel, state)[source]
update_dock_windows(gui_app)[source]
create_menu_action(gui_app, item_key, label, state=False)[source]
togglePanel(gui_app, state, item_key)[source]
class ModelBinding(gui_app, get_parent, field)[source]

Bases: object

ModelBinding the the base class for binding part of the optical model to a UI element. UI elements should extend this class.

When more getters/setters are needed, overwrite the get/set functions to directly get/set the model part

set(value)[source]

Updates the model with the new value

get()[source]

Retreives the model’s current value

class EnumChoiceWidget(gui_app, get_parent, field, combo_items)[source]

Bases: ModelBinding

currentIndexChanged()[source]
refresh()[source]
class ListChoiceWidget(gui_app, get_parent, field, combo_items)[source]

Bases: ModelBinding

currentIndexChanged()[source]
refresh()[source]
class TextFieldWidget(gui_app, get_parent, field, valueFormat='{:s}')[source]

Bases: ModelBinding

editingFinished()[source]
refresh()[source]
class FloatFieldWidget(gui_app, root_fn, field, valueformat='{:.7g}')[source]

Bases: TextFieldWidget

FloatFieldWidget is like a TextFieldWidget but only for floats

class SpectrumWavelengthsPanel(gui_app, parent=None)[source]

Bases: QWidget

root()[source]
update(opt_model)[source]

push backend data to widgets

class AperturePanel(gui_app, parent=None)[source]

Bases: QWidget

obj_img_items = ['object', 'image']
pupil_type_items = ['epd', 'NA', 'f/#']
root()[source]
update(opt_model)[source]

push backend data to widgets

class FieldOfViewPanel(gui_app, parent=None)[source]

Bases: QWidget

obj_img_items = ['object', 'image']
field_type_items = ['height', 'angle']
root()[source]
update(opt_model)[source]

push backend data to widgets

class FocusRangePanel(gui_app, parent=None)[source]

Bases: QWidget

root()[source]
update(opt_model)[source]

push backend data to widgets

class SystemSpecPanel(gui_app, parent=None)[source]

Bases: QWidget

root()[source]
update(opt_model)[source]

push backend data to widgets