Merge branch 'develop' of github.com:alicevision/meshroom into dev_depthMapOptim

This commit is contained in:
Fabien Castan 2020-01-21 22:05:55 +01:00
commit 5569b8551e
28 changed files with 1384 additions and 253 deletions

View file

@ -359,13 +359,14 @@ class DynamicNodeSize(object):
def computeSize(self, node):
param = node.attribute(self._param)
assert param.isInput
# Link: use linked node's size
if param.isLink:
return param.getLinkParam().node.size
# ListAttribute: use list size
if isinstance(param.desc, ListAttribute):
return len(param)
if isinstance(param.desc, IntParam):
return param.value
return 1
@ -424,7 +425,26 @@ class Node(object):
def __init__(self):
pass
def updateInternals(self, node):
@classmethod
def update(cls, node):
""" Method call before node's internal update on invalidation.
Args:
node: the BaseNode instance being updated
See Also:
BaseNode.updateInternals
"""
pass
@classmethod
def postUpdate(cls, node):
""" Method call after node's internal update on invalidation.
Args:
node: the BaseNode instance being updated
See Also:
NodeBase.updateInternals
"""
pass
def stopProcess(self, chunk):