Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2015-09-23 16:01:48 +0300
committerJaime van Kessel <nallath@gmail.com>2015-09-23 16:01:48 +0300
commitfdd485a884daaaacb170471d502048fc9b6c0d83 (patch)
tree0fce8b8b7baffc610314ffcde8734e1645016551 /cura/LayerDataDecorator.py
parent3d292cf328dbedb63b19da4467c52659b3db34e0 (diff)
Moved LayerData & Decorator outside of backend plugin
Diffstat (limited to 'cura/LayerDataDecorator.py')
-rw-r--r--cura/LayerDataDecorator.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/cura/LayerDataDecorator.py b/cura/LayerDataDecorator.py
new file mode 100644
index 0000000000..c04479972a
--- /dev/null
+++ b/cura/LayerDataDecorator.py
@@ -0,0 +1,13 @@
+from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
+
+## Simple decorator to indicate a scene node holds layer data.
+class LayerDataDecorator(SceneNodeDecorator):
+ def __init__(self):
+ super().__init__()
+ self._layer_data = None
+
+ def getLayerData(self):
+ return self._layer_data
+
+ def setLayerData(self, layer_data):
+ self._layer_data = layer_data \ No newline at end of file