LayerDataDecorator.py 403 B

12345678910111213
  1. from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
  2. ## Simple decorator to indicate a scene node holds layer data.
  3. class LayerDataDecorator(SceneNodeDecorator):
  4. def __init__(self):
  5. super().__init__()
  6. self._layer_data = None
  7. def getLayerData(self):
  8. return self._layer_data
  9. def setLayerData(self, layer_data):
  10. self._layer_data = layer_data