Add getters for Width/height/depth to build volume

CURA-7440
This commit is contained in:
Jaime van Kessel 2020-10-02 10:04:46 +02:00
parent e0e65b91b5
commit c33c025a6c
No known key found for this signature in database
GPG Key ID: 3710727397403C91

View File

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