meshroom.ui.graph.ChunksMonitor

Inheritance diagram of meshroom.ui.graph.ChunksMonitor
class meshroom.ui.graph.ChunksMonitor(chunks=(), parent=None)

ChunksMonitor regularly check NodeChunks’ status files for modification and trigger their update on change.

When working locally, status changes are reflected through the emission of ‘statusChanged’ signals. But when a graph is being computed externally - either via a Submitter or on another machine, NodeChunks status files are modified by another instance, potentially outside this machine file system scope. Same goes when status files are deleted/modified manually. Thus, for genericity, monitoring is based on regular polling and not file system watching.

__init__(chunks=(), parent=None)

Methods

__init__([chunks, parent])

blockSignals(self, b)

childEvent(self, event)

children(self)

compareFilesTimes(times)

Compare previous file modification times with results from last poll.

connect(...)

connectNotify(self, signal)

customEvent(self, event)

deleteLater(self)

disconnect(...)

disconnectNotify(self, signal)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

emit(self, arg__1, *args)

event(self, event)

eventFilter(self, watched, event)

findChild(self, arg__1[, arg__2])

findChildren(-> typing.Iterable)

inherits(self, classname)

installEventFilter(self, filterObj)

isSignalConnected(self, signal)

isWidgetType(self)

isWindowType(self)

killTimer(self, id)

metaObject(self)

moveToThread(self, thread)

objectName(self)

onComputeStatusChanged()

When a chunk's status is updated, update the list of watched files with submitted and running chunks if the file poller status is minimal auto-refresh.

onFilePollerRefreshUpdated()

Upon an update of the file poller status, retrigger the generation of the list of status files for the chunks that are to be watched.

parent(self)

property(self, name)

receivers(self, signal)

registerUserData()

removeEventFilter(self, obj)

sender(self)

senderSignalIndex(self)

setChunks(chunks)

Set the lists of chunks that can be monitored and that are monitored.

setObjectName(self, name)

setParent(self, parent)

setProperty(self, name, value)

signalsBlocked(self)

startTimer(self, interval[, timerType])

stop()

Stop the status files monitoring.

thread(self)

timerEvent(self, event)

tr(self, arg__1[, arg__2, arg__3])

Attributes

destroyed

filePollerRefresh

filePollerRefreshChanged

objectNameChanged

staticMetaObject

statusFiles

Get status file paths from the monitorable chunks.

watchedStatusFiles

Get the status file paths from the currently monitored chunks.