[ui] reset depthmap node when camerainit change

This commit is contained in:
Fabien Castan 2020-01-24 12:56:27 +01:00
parent 7bea135993
commit a37ecc189c

View file

@ -389,6 +389,7 @@ class Reconstruction(UIGraph):
# - Depth Map
self._depthMap = None
self.cameraInitChanged.connect(self.updateDepthMapNode)
# - Texturing
self._texturing = None
@ -486,6 +487,10 @@ class Reconstruction(UIGraph):
""" Set the current FeatureExtraction node based on the current CameraInit node. """
self.featureExtraction = self.lastNodeOfType('FeatureExtraction', self.cameraInit) if self.cameraInit else None
def updateDepthMapNode(self):
""" Set the current FeatureExtraction node based on the current CameraInit node. """
self.depthMap = self.lastNodeOfType('DepthMapFilter', self.cameraInit) if self.cameraInit else None
def lastSfmNode(self):
""" Retrieve the last SfM node from the initial CameraInit node. """
return self.lastNodeOfType("StructureFromMotion", self._cameraInit, Status.SUCCESS)