mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08:00
Add getters for Width/height/depth to build volume
CURA-7440
This commit is contained in:
parent
e0e65b91b5
commit
c33c025a6c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user