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:
Worker
Worker 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
blockSignals
childEvent
children
connectNotify
customEvent
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
findChild
findChildren
inherits
installEventFilter
isSignalConnected
isWidgetType
isWindowType
killTimer
metaObject
moveToThread
objectName
parent
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal.
receivers
removeEventFilter
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.
sender
senderSignalIndex
setObjectName
setParent
setProperty
set_status
Set the weight of the progress bar
set_weight
Set the weight of the progress bar
signalsBlocked
startTimer
thread
timerEvent
tr
update_progress
Update the progress bar
Attributes
destroyed
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
finished
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
objectNameChanged
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
processedData
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
progress
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
staticMetaObject
status
pyqtSignal(*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