Browse Source

Add getters for Width/height/depth to build volume

CURA-7440
Jaime van Kessel 4 years ago
parent
commit
c33c025a6c
1 changed files with 9 additions and 0 deletions
  1. 9 0
      cura/BuildVolume.py

+ 9 - 0
cura/BuildVolume.py

@@ -180,12 +180,21 @@ class BuildVolume(SceneNode):
     def setWidth(self, width: float) -> None:
         self._width = width
 
+    def getWidth(self) -> float:
+        return self._width
+
     def setHeight(self, height: float) -> None:
         self._height = height
 
+    def getHeight(self) -> float:
+        return self._height
+
     def setDepth(self, depth: float) -> None:
         self._depth = depth
 
+    def getDepth(self) -> float:
+        return self._depth
+
     def setShape(self, shape: str) -> None:
         if shape:
             self._shape = shape