utils.gui.pyqt.main_window.Workers.PreProcessWorker.PreProcessWorker
- class utils.gui.pyqt.main_window.Workers.PreProcessWorker.PreProcessWorker(name: str, objpath: str, discretisation_value: float)
Bases:
WorkerWorker to pre process the 3d object in a thread
- Parameters:
name – The name of the worker
objpath – The path to the 3d object
discretisation_value – The delta z
- Variables:
objpath – The path to the 3d object
deltaZ – The delta z
progress_value – The current progress value
progress_weight – The weight of the progress bar
processed_obj – The signal to emit the processed object
- Method run:
Pre process the object, read the file, verticalise it and normalise it
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.
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
processed_objpyqtSignal(*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 reads the file specified in the objpath, parses it, verticalises it and normalises it. It then emits the processed object.