utils.gui.pyqt.main_window.Workers.DiscreteDataWorker.DiscreteDataProcessWorker
- class utils.gui.pyqt.main_window.Workers.DiscreteDataWorker.DiscreteDataProcessWorker(name: str, obj: ScannedObject, output_path: str, output_file_prefix: str, delta_z: float)
Bases:
WorkerWorker to calculate the discrete 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 discrete data and emits a dict with the following keys: - X moy (en mm) - Y moy (en mm) - Z moy (en mm) - Discretisation(en mm) - Rayon moyen (en mm) - Rayon ecart type (en mm) 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 discrete data and emits a dict with the following keys:
X moy (en mm)
Y moy (en mm)
Z moy (en mm)
Discretisation(en mm)
Rayon moyen (en mm)
Rayon ecart type (en mm)
It also saves the result in a file that’ll be located in the output_path