[ui] introduce UIGraph + ChunksMonitor

* extract UIGraph from Reconstruction: base class that wraps a core.Graph, without knowledge of photogrammetry pipeline
* ChunksMonitor: watch NodeChunks status files for external changes to keep UI updated even when the graph is being computed externally
* Reconstruction inherits UIGraph with photogrammetry specific features
This commit is contained in:
Yann Lanthony 2017-11-24 16:44:26 +01:00
parent 5b1b5a1b32
commit 0e08291f8a
3 changed files with 325 additions and 152 deletions

View file

@ -12,7 +12,7 @@ ApplicationWindow {
width: 1280
height: 720
visible: true
title: (_reconstruction.filepath ? _reconstruction.filepath : "Untitled") + (_reconstruction.undoStack.clean ? "" : "*") + " - Meshroom"
title: (_reconstruction.graph.filepath ? _reconstruction.graph.filepath : "Untitled") + (_reconstruction.undoStack.clean ? "" : "*") + " - Meshroom"
font.pointSize: 10
property variant node: null
@ -190,7 +190,7 @@ ApplicationWindow {
id: saveAction
text: "Save"
shortcut: "Ctrl+S"
enabled: _reconstruction.filepath != "" && !_reconstruction.undoStack.clean
enabled: _reconstruction.graph.filepath != "" && !_reconstruction.undoStack.clean
onTriggered: _reconstruction.save()
}
Action {
@ -249,7 +249,7 @@ ApplicationWindow {
}
Button {
text: "Stop"
enabled: _reconstruction.computing
enabled: _reconstruction.computingLocally
onClicked: _reconstruction.stopExecution()
}
}