mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Added documentation
CURA-1339
This commit is contained in:
parent
a4314638ab
commit
8e853ffecb
1 changed files with 14 additions and 1 deletions
|
@ -94,21 +94,34 @@ class PrinterOutputDevice(OutputDevice):
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
## Get the x position of the head.
|
||||||
|
# This function is "final" (do not re-implement)
|
||||||
@pyqtProperty(float, notify = headPositionChanged)
|
@pyqtProperty(float, notify = headPositionChanged)
|
||||||
def headX(self):
|
def headX(self):
|
||||||
return self._head_x
|
return self._head_x
|
||||||
|
|
||||||
|
## Get the y position of the head.
|
||||||
|
# This function is "final" (do not re-implement)
|
||||||
@pyqtProperty(float, notify = headPositionChanged)
|
@pyqtProperty(float, notify = headPositionChanged)
|
||||||
def headY(self):
|
def headY(self):
|
||||||
return self._head_y
|
return self._head_y
|
||||||
|
|
||||||
|
## Get the z position of the head.
|
||||||
|
# In some machines it's actually the bed that moves. For convenience sake we simply see it all as head movements.
|
||||||
|
# This function is "final" (do not re-implement)
|
||||||
@pyqtProperty(float, notify = headPositionChanged)
|
@pyqtProperty(float, notify = headPositionChanged)
|
||||||
def headZ(self):
|
def headZ(self):
|
||||||
return self._head_z
|
return self._head_z
|
||||||
|
|
||||||
|
## Set the position of the head.
|
||||||
|
# In some machines it's actually the bed that moves. For convenience sake we simply see it all as head movements.
|
||||||
|
# This function is "final" (do not re-implement)
|
||||||
@pyqtSlot("long", "long", "long")
|
@pyqtSlot("long", "long", "long")
|
||||||
@pyqtSlot("long", "long", "long", "long")
|
@pyqtSlot("long", "long", "long", "long")
|
||||||
def setHeadPosition(self, x, y ,z, speed = 3000):
|
def setHeadPosition(self, x, y, z, speed = 3000):
|
||||||
|
self._setHeadPosition(x, y , z, speed)
|
||||||
|
|
||||||
|
def _setHeadPosition(self, x, y, z, speed):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _setHeadX(self, x, speed):
|
def _setHeadX(self, x, speed):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue