[ui] Reconstruction: add 'depthMap' member

This commit is contained in:
ChemicalXandco 2019-09-24 17:09:54 +01:00 committed by Fabien Castan
parent 3edc35f013
commit 978f4a9b00

View file

@ -387,6 +387,9 @@ class Reconstruction(UIGraph):
# - Prepare Dense Scene (undistorted images)
self._prepareDenseScene = None
# - Depth Map
self._depthMap = None
# - Texturing
self._texturing = None
@ -441,6 +444,7 @@ class Reconstruction(UIGraph):
self.featureExtraction = None
self.sfm = None
self.prepareDenseScene = None
self.depthMap = None
self.texturing = None
self.updateCameraInits()
if not self._graph:
@ -787,6 +791,8 @@ class Reconstruction(UIGraph):
self.cameraInit = node
elif node.nodeType == "PrepareDenseScene":
self.prepareDenseScene = node
elif node.nodeType in ("DepthMap", "DepthMapFilter"):
self.depthMap = node
def updateSfMResults(self):
"""
@ -947,8 +953,13 @@ class Reconstruction(UIGraph):
# convenient property for QML binding re-evaluation when sfm report changes
sfmReport = Property(bool, lambda self: len(self._poses) > 0, notify=sfmReportChanged)
sfmAugmented = Signal(Node, Node)
prepareDenseSceneChanged = Signal()
prepareDenseScene = makeProperty(QObject, "_prepareDenseScene", notify=prepareDenseSceneChanged, resetOnDestroy=True)
depthMapChanged = Signal()
depthMap = makeProperty(QObject, "_depthMap", depthMapChanged, resetOnDestroy=True)
texturingChanged = Signal()
texturing = makeProperty(QObject, "_texturing", notify=texturingChanged)