utils.gui.pyqt.main_window.Workers.RawDataWorker.RawDataProcessWorker
- class utils.gui.pyqt.main_window.Workers.RawDataWorker.RawDataProcessWorker(name: str, obj: ScannedObject, output_path: str, output_file_prefix: str, delta_z: float)
Bases:
WorkerWorker to calculate the raw data in a thread
- Parameters:
name – The name of the worker
obj – The scanned object
output_path – The path to save the output file
output_file_prefix – The prefix of the output file
delta_z – The delta z
- Variables:
obj – The scanned object
delta_z – The delta z
output_path – The path to save the output file
output_file_prefix – The prefix of the output file
processedData – The signal to emit the result
Methods
blockSignalschildEventchildrenconnectNotifycustomEventdeleteLaterdisconnectdisconnectNotifydumpObjectInfodumpObjectTreedynamicPropertyNameseventeventFilterfindChildfindChildreninheritsinstallEventFilterisSignalConnectedisWidgetTypeisWindowTypekillTimermetaObjectmoveToThreadobjectNameparentpropertypyqtConfigureEach keyword argument is either the name of a Qt property or a Qt signal.
receiversremoveEventFilterThis function is called when the thread is started. It calculates the raw data and emits a dict with the following keys: - X (en mm) - Y (en mm) - Z (en mm) - theta (en rad) - rayon (en mm) - Xi-Xmoy - Yi-Ymoy It also saves the result in a file that'll be located in the output_path.
sendersenderSignalIndexsetObjectNamesetParentsetPropertyset_statusSet the weight of the progress bar
set_weightSet the weight of the progress bar
signalsBlockedstartTimerthreadtimerEventtrupdate_progressUpdate the progress bar
Attributes
destroyedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
finishedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
objectNameChangedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
processedDatapyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
progresspyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
staticMetaObjectstatuspyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
- run()
This function is called when the thread is started. It calculates the raw data and emits a dict with the following keys:
X (en mm)
Y (en mm)
Z (en mm)
theta (en rad)
rayon (en mm)
Xi-Xmoy
Yi-Ymoy
It also saves the result in a file that’ll be located in the output_path