sas.qtgui.Utilities.OrientationViewer package¶
Subpackages¶
- sas.qtgui.Utilities.OrientationViewer.UI package
- Submodules
- sas.qtgui.Utilities.OrientationViewer.UI.OrientationViewerControllerUI module
Ui_OrientationViewierControllerUIUi_OrientationViewierControllerUI.__annotate_func__Ui_OrientationViewierControllerUI.__annotations_cache__Ui_OrientationViewierControllerUI.__dict__Ui_OrientationViewierControllerUI.__doc__Ui_OrientationViewierControllerUI.__firstlineno__Ui_OrientationViewierControllerUI.__module__Ui_OrientationViewierControllerUI.__static_attributes__Ui_OrientationViewierControllerUI.__weakref__Ui_OrientationViewierControllerUI.retranslateUi()Ui_OrientationViewierControllerUI.setupUi()
- Module contents
Submodules¶
sas.qtgui.Utilities.OrientationViewer.OrientationViewer module¶
- class sas.qtgui.Utilities.OrientationViewer.OrientationViewer.OrientationViewer(parent=None)¶
Bases:
QWidgetOrientation viewer widget
- __annotate_func__ = None¶
- __annotations_cache__ = {}¶
- __doc__ = 'Orientation viewer widget '¶
- __firstlineno__ = 23¶
- __init__(parent=None)¶
- __module__ = 'sas.qtgui.Utilities.OrientationViewer.OrientationViewer'¶
- __static_attributes__ = ('_colormap_name', 'all_ghosts', 'arrow', 'calculator', 'controller', 'cubes', 'first_rotation', 'ghost_spacings', 'image_plane', 'image_plane_coordinate_points', 'image_plane_data', 'parent', 'scene', 'second_rotation', 'surface', 'third_rotation')¶
- _set_image_data(orientation: Orientation)¶
Set the data on the plot
- a = 10¶
- arrow_color = ColorSpecification(method=<ColorSpecificationMethod.UNIFORM: 1>, data=array([0.9, 0.9, 0.9, 1. ]))¶
- arrow_size = 0.2¶
- b = 40¶
- c = 100¶
- closeEvent(event)¶
- property colormap: str¶
- static create_calculator()¶
Make a parallelepiped model calculator for q range -qmax to qmax with n samples
- static create_ghost()¶
Helper function: Create a ghost cube
- cube_color = ColorSpecification(method=<ColorSpecificationMethod.UNIFORM: 1>, data=array([0. , 0.8, 0. , 1. ]))¶
- ghost_color = ColorSpecification(method=<ColorSpecificationMethod.UNIFORM: 1>, data=array([0. , 0.6, 0.2, 1. ]))¶
- log_I_max = 10¶
- log_I_min = -3¶
- log_I_range = 13¶
- n_ghosts_per_perameter = 8¶
- n_q_samples = 128¶
- onHelp()¶
- on_angle_changed(orientation: Orientation | None)¶
Response to angle change
- on_angle_changing(orientation: Orientation | None)¶
Response to angle change
- orient_ghosts(orientation: Orientation)¶
- polydispersity_distribution = 'gaussian'¶
- polydispersity_sample_count(orientation)¶
Work out how many samples to do for the polydispersity
- q_max = 0.5¶
- scattering_data(orientation: Orientation) ndarray¶
- screen_scale = 0.01¶
- staticMetaObject = PySide6.QtCore.QMetaObject("OrientationViewer" inherits "QWidget": )¶
- sas.qtgui.Utilities.OrientationViewer.OrientationViewer.main()¶
- sas.qtgui.Utilities.OrientationViewer.OrientationViewer.show_orientation_viewer()¶
sas.qtgui.Utilities.OrientationViewer.OrientationViewerController module¶
- class sas.qtgui.Utilities.OrientationViewer.OrientationViewerController.Orientation(theta: int = 0, phi: int = 0, psi: int = 0, dtheta: int = 0, dphi: int = 0, dpsi: int = 0)¶
Bases:
NamedTupleData sent when updating the plot
- __annotate_func__()¶
- __annotations_cache__ = {'dphi': <class 'int'>, 'dpsi': <class 'int'>, 'dtheta': <class 'int'>, 'phi': <class 'int'>, 'psi': <class 'int'>, 'theta': <class 'int'>}¶
- __classdictcell__ = <cell at 0x7f8870ab38b0: dict object>¶
- __doc__ = 'Data sent when updating the plot'¶
- __firstlineno__ = 9¶
- __getnewargs__()¶
Return self as a plain tuple. Used by copy and pickle.
- __match_args__ = ('theta', 'phi', 'psi', 'dtheta', 'dphi', 'dpsi')¶
- __module__ = 'sas.qtgui.Utilities.OrientationViewer.OrientationViewerController'¶
- static __new__(_cls, theta: int = 0, phi: int = 0, psi: int = 0, dtheta: int = 0, dphi: int = 0, dpsi: int = 0)¶
Create new instance of Orientation(theta, phi, psi, dtheta, dphi, dpsi)
- __orig_bases__ = (<function NamedTuple>,)¶
- __replace__(**kwds)¶
Return a new Orientation object replacing specified fields with new values
- __repr__()¶
Return a nicely formatted representation string
- __slots__ = ()¶
- __static_attributes__ = ()¶
- _asdict()¶
Return a new dict which maps field names to their values.
- _field_defaults = {'dphi': 0, 'dpsi': 0, 'dtheta': 0, 'phi': 0, 'psi': 0, 'theta': 0}¶
- _fields = ('theta', 'phi', 'psi', 'dtheta', 'dphi', 'dpsi')¶
- classmethod _make(iterable)¶
Make a new Orientation object from a sequence or iterable
- _replace(**kwds)¶
Return a new Orientation object replacing specified fields with new values
- dphi: int¶
Alias for field number 4
- dpsi: int¶
Alias for field number 5
- dtheta: int¶
Alias for field number 3
- phi: int¶
Alias for field number 1
- psi: int¶
Alias for field number 2
- theta: int¶
Alias for field number 0
- class sas.qtgui.Utilities.OrientationViewer.OrientationViewerController.OrientationViewierController(parent=None)¶
Bases:
QDialog,Ui_OrientationViewierControllerUIWidget that controls the orientation viewer
- __annotate_func__ = None¶
- __annotations_cache__ = {}¶
- __doc__ = 'Widget that controls the orientation viewer'¶
- __firstlineno__ = 20¶
- __init__(parent=None)¶
- __module__ = 'sas.qtgui.Utilities.OrientationViewer.OrientationViewerController'¶
- __static_attributes__ = ()¶
- onSliderMoved()¶
- onSliderSet()¶
- setLabels(orientation: Orientation)¶
- sliderMoved¶
- sliderSet¶
- staticMetaObject = PySide6.QtCore.QMetaObject("OrientationViewierController" inherits "QDialog": Methods: #41 type=Signal, signature=sliderSet(PyObject), parameters=PyObject #42 type=Signal, signature=sliderMoved(PyObject), parameters=PyObject )¶
- sas.qtgui.Utilities.OrientationViewer.OrientationViewerController.main()¶
Show a demo of the slider