orangecontrib.tomwer.widgets.reconstruction.CoROW.CoROW#
- class orangecontrib.tomwer.widgets.reconstruction.CoROW.CoROW(parent=None, cor_params=None)#
Widget used to defined the center of rotation (CoR) position to be used for a reconstruction.
- Parameters:
_connect_handler – True if we want to store the modifications on the setting. Need for unit test since keep alive qt widgets.
- class Inputs#
- data = Input(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, handler='new_data_in', ...)#
- class Outputs#
- data = Output(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, ...)#
- close(self) bool#
- description = 'use to compute the center of rotation'#
Short widget description, displayed in canvas help tooltips.
- getAxisParams()#
- getEstimatedCor()#
- getMode()#
- icon = 'icons/axis.png'#
Widget icon path, relative to the defining module.
- id = 'orange.widgets.tomwer.axis'#
- isModeLocked()#
Check if the mode has been lock or not. If lock then call the algorithm and does not wait for any user feedback
- isValueLock()#
Check if the cor value has been lock. If so we simply copy the cor value and move to the next scan
- keyPressEvent(event)#
The event has to be filtered since we have some children that can be edited using the ‘enter’ key as defining the cor manually (see #481)). As we are in a dialog this automatically trigger ‘accepted’. See https://forum.qt.io/topic/5080/preventing-enter-key-from-triggering-ok-in-qbuttonbox-in-particular-qlineedit-qbuttonbox/5
- keywords = ['tomography', 'axis', 'tomwer', 'reconstruction', 'rotation', 'position', 'center of position', 'cor', 'CoR']#
Widget keywords, used for finding it in the quick menu.
- name = 'center of rotation finder'#
Widget name, as presented in the Canvas.
- new_data_in(value, id=None)#
- priority = 14#
Widget priority, used for sorting within a category.
- process(scan)#
Function called when a new scan is received
- property recons_params#
- reprocess(scan)#
Recompute the axis for scan
- resizing_enabled = True#
Should the widget’s window be resizeable? (if not, the widget will derive a fixed size constraint from its layout)
- scan_ready(scan)#
- setEstimatedCor(value)#
- setMode(mode)#
- setValueLock(lock)#
- settingsHandler = <orangecontrib.tomwer.orange.settings.CallbackSettingsHandler object>#
Settings handler, can be overridden for context handling.
- sigScanReady#
Signal emitted when a scan is ready
- want_main_area = True#
Should the widget construct a mainArea? (a resizable area to the right of the controlArea)