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: Worker

Worker 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

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

run

This function is called when the thread is started.

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

processed_obj

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 reads the file specified in the objpath, parses it, verticalises it and normalises it. It then emits the processed object.