meshroom.ui.graph.UIGraph

Inheritance diagram of meshroom.ui.graph.UIGraph
class meshroom.ui.graph.UIGraph(undoStack, taskManager, parent=None)

High level wrapper over core.Graph, with additional features dedicated to UI integration.

UIGraph exposes undoable methods on its graph and computation in a separate thread. It also provides a monitoring of all its computation units (NodeChunks).

__init__(undoStack, taskManager, parent=None)

Methods

__init__(undoStack, taskManager[, parent])

addEdge(src, dst)

addNewNode(nodeType[, position])

[Undoable] Create a new Node of type 'nodeType' and returns it.

appendAttribute(attribute[, value])

appendSelection(node)

Append 'node' to the selection if it is not already part of the selection.

beginModification(name)

Begin a Graph modification.

blockSignals(self, b)

boxSelect(selection, draggable)

Select nodes that overlap with 'selection'.

cancelNodeComputation(node)

Cancel the computation of the node and all the nodes depending on it.

childEvent(self, event)

children(self)

clear()

clearAllImages()

clearData(nodes)

Clear data from 'nodes'.

clearDataFrom(nodes)

Clear data from all nodes starting from 'nodes' to graph leaves.

clearImages()

clearNodeHover()

Reset currently hovered node to None.

clearNodeSelection()

Clear all node selection.

connect(...)

connectNotify(self, signal)

customEvent(self, event)

deleteLater(self)

disconnect(...)

disconnectNotify(self, signal)

dumpObjectInfo(self)

dumpObjectTree(self)

duplicateNodes(nodes)

Duplicate 'nodes'.

duplicateNodesFrom(nodes)

Duplicate all nodes starting from 'nodes' to graph leaves.

dynamicPropertyNames(self)

emit(self, arg__1, *args)

endModification()

Ends a Graph modification.

event(self, event)

eventFilter(self, watched, event)

execute([node])

filterNodes(nodes)

Filter out the nodes that do not exist on the graph.

findChild(self, arg__1[, arg__2])

findChildren(...)

forceNodesStatusUpdate()

Force re-evaluation of graph's nodes status.

getSelectedNodesContent()

Return the content of the currently selected nodes in a string, formatted to JSON.

groupedGraphModification(title[, disableUpdates])

Get a GroupedGraphModification for this Graph.

importProject(filepath[, position])

inherits(self, classname)

installEventFilter(self, filterObj)

isComputing()

Whether is graph is being computed, either locally or externally.

isComputingExternally()

Whether this graph is being computed externally.

isComputingLocally()

Whether this graph is being computed locally (i.e computation can be stopped).

isSignalConnected(self, signal)

isWidgetType(self)

isWindowType(self)

killTimer(self, id)

loadGraph(filepath[, setupProjectFile, ...])

metaObject(self)

moveNode(node, position[, nodes])

Move 'node' to the given 'position' and also update the positions of 'nodes' if necessary.

moveToThread(self, thread)

objectName(self)

onGraphUpdated()

Callback to any kind of attribute modification.

parent(self)

pasteNodes(clipboardContent[, position, ...])

Parse the content of the clipboard to see whether it contains valid node descriptions.

property(self, name)

push(command)

Try and push the given command to the undo stack.

receivers(self, signal)

registerUserData()

removeAttribute(attribute)

removeEdge(edge)

removeEventFilter(self, obj)

removeNodes(nodes)

Remove 'nodes' from the graph.

removeNodesFrom(nodes)

Remove all nodes starting from 'startNode' to graph leaves.

resetAttribute(attribute)

Reset 'attribute' to its default value

save()

saveAs(url)

saveAsTemplate(url)

selectFollowing(node)

Select all the nodes the depend on 'node'.

selectNodes(nodes)

Append 'nodes' to the selection.

sender(self)

senderSignalIndex(self)

setAttribute(attribute, value)

setGraph(g)

Set the internal graph.

setObjectName(self, name)

setParent(self, parent)

setProperty(self, name, value)

signalsBlocked(self)

startTimer(self, interval[, timerType])

stopChildThreads()

Stop all child threads.

stopExecution()

stopNodeComputation(node)

Stop the computation of the node and update all the nodes depending on it.

submit([node])

Submit the graph to the default Submitter.

thread(self)

timerEvent(self, event)

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

updateChunkMonitor(chunks)

Update the list of chunks for status files monitoring.

updateChunks()

updateGraphComputingStatus()

updateLockedUndoStack()

upgradeAllNodes()

Upgrade all upgradable CompatibilityNode instances in the graph.

upgradeNode(node)

Upgrade a CompatibilityNode.

Attributes

canSubmit

computeStatusChanged

computing

computingExternally

computingLocally

destroyed

filePollerRefresh

filePollerRefreshChanged

graph

graphChanged

hoveredNode

hoveredNodeChanged

layout

lockedChanged

nodes

objectNameChanged

selectedNode

selectedNodeChanged

selectedNodes

selectedNodesChanged

sortedDFSChunks

staticMetaObject

taskManager

undoStack