Esempio n. 1
0
class MasterScene(object):

    def __init__(self, model):
        self._model = model
        self._image = ImageScene(model.getImageModel())
        self._node = NodeScene(model.getNodeModel())

    def getImageScene(self):
        return self._image

    def getNodeScene(self):
        return self._node

    def getGraphic(self, name):
        if name == ELEMENT_NODE_LABEL_GRAPHIC_NAME or name == IMAGE_PLANE_GRAPHIC_NAME or name == ELEMENT_OUTLINE_GRAPHIC_NAME:
            return self._image.getGraphic(name)

        return None
Esempio n. 2
0
 def __init__(self, model):
     self._model = model
     self._image = ImageScene(model.getImageModel())
     self._node = NodeScene(model.getNodeModel())