orangecontrib.tomwer.widgets.reconstruction.AxisOW.AxisOW#
- class orangecontrib.tomwer.widgets.reconstruction.AxisOW.AxisOW(parent=None, axis_params=None)#
Widget used to defined the center of rotation axis 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', ...)#
- data_recompute_axis = Input(name='change recons params', type=<class 'tomwer.core.scan.scanbase._TomwerBaseDock'>, handler='reprocess', ...)#
- class Outputs#
- data = Output(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, ...)#
- close(self) bool #
-
description:
str
= 'use to compute the center of rotation'# Short widget description, displayed in canvas help tooltips.
- getAxisParams()#
- getEstimatedCor()#
- getMode()#
-
icon:
str
= '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:
Union
[str
,List
[str
]] = ['tomography', 'axis', 'tomwer', 'reconstruction', 'rotation', 'position', 'center of position']# Widget keywords, used for finding it in the quick menu.
-
name:
str
= 'center of rotation finder'# Widget name, as presented in the Canvas.
- new_data_in(value, id=None)#
- patch_calc_method(mode, function)#
-
priority:
int
= 14# Widget priority, used for sorting within a category.
- process(scan)#
- property recons_params#
- reprocess(value)#
Reprocess a dataset.
- Parameters:
dataset (Dataset) – dataset to reprocess
- 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:
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)