[ui] display number of reconstructed cameras

This commit is contained in:
Fabien Castan 2018-07-16 23:15:00 +02:00
parent 2eb2c3ac6f
commit 2480c22bf2
2 changed files with 3 additions and 1 deletions

View file

@ -258,7 +258,7 @@ Panel {
// Image count
Label {
Layout.fillWidth: true
text: grid.model.count + " image" + (grid.model.count > 1 ? "s" : "")
text: grid.model.count + " image" + (grid.model.count > 1 ? "s" : "") + (_reconstruction.nbCameras > 0 ? " / " + _reconstruction.nbCameras + " camera" + (_reconstruction.nbCameras > 1 ? "s": "") : "")
elide: Text.ElideRight
}

View file

@ -492,6 +492,8 @@ class Reconstruction(UIGraph):
sfmReport = Property(bool, lambda self: len(self._poses) > 0, notify=sfmReportChanged)
sfmAugmented = Signal(Node, Node)
nbCameras = Property(int, lambda self: len(self._poses), notify=sfmReportChanged)
# Signals to propagate high-level messages
error = Signal(Message)
warning = Signal(Message)