use semantic field in file attributes to specify images and store displayed node in 2D viewer to adapt UI

This commit is contained in:
Loïc Vital 2022-09-20 18:26:20 +02:00 committed by Fabien Castan
parent fc5ab540f5
commit a574c0fc9b
9 changed files with 139 additions and 83 deletions

View file

@ -568,9 +568,6 @@ class BaseNode(BaseObject):
def getAttributes(self):
return self._attributes
def getOutputImageTypes(self):
return self.nodeDesc.outputImageTypes
@Slot(str, result=bool)
def hasAttribute(self, name):
return name in self._attributes.keys()
@ -1056,7 +1053,6 @@ class BaseNode(BaseObject):
x = Property(float, lambda self: self._position.x, notify=positionChanged)
y = Property(float, lambda self: self._position.y, notify=positionChanged)
attributes = Property(BaseObject, getAttributes, constant=True)
outputImageTypes = Property(Variant, getOutputImageTypes, constant=True)
internalFolderChanged = Signal()
internalFolder = Property(str, internalFolder.fget, notify=internalFolderChanged)
depthChanged = Signal()