mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 16:28:51 +02:00
Added Pre and Post process functions on the Base Node
Added Pre and Post process functions on the Node Description which can be utilised by the client nodes
This commit is contained in:
parent
03bd5180cf
commit
f2b033a7bb
2 changed files with 20 additions and 1 deletions
|
@ -1030,13 +1030,16 @@ class BaseNode(BaseObject):
|
|||
self._chunks[iteration].process()
|
||||
|
||||
def preprocess(self):
|
||||
pass
|
||||
# Invoke the Node Description's pre-process for the Client Node to prep it's processing
|
||||
self.nodeDesc.preprocess(self)
|
||||
|
||||
def process(self, forceCompute=False):
|
||||
for chunk in self._chunks:
|
||||
chunk.process(forceCompute)
|
||||
|
||||
def postprocess(self):
|
||||
# Invoke the post process on Client Node to execute after the processing on the node is completed
|
||||
self.nodeDesc.postprocess(self)
|
||||
self.saveOutputAttr()
|
||||
|
||||
def updateOutputAttr(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue