mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Convert doxygen to rst for CuraEngineBackend
This commit is contained in:
parent
8f3827d5ae
commit
797d6ed438
3 changed files with 220 additions and 143 deletions
|
@ -28,10 +28,12 @@ from cura.Machines.Models.ExtrudersModel import ExtrudersModel
|
|||
catalog = i18nCatalog("cura")
|
||||
|
||||
|
||||
## Return a 4-tuple with floats 0-1 representing the html color code
|
||||
#
|
||||
# \param color_code html color code, i.e. "#FF0000" -> red
|
||||
def colorCodeToRGBA(color_code):
|
||||
"""Return a 4-tuple with floats 0-1 representing the html color code
|
||||
|
||||
:param color_code: html color code, i.e. "#FF0000" -> red
|
||||
"""
|
||||
|
||||
if color_code is None:
|
||||
Logger.log("w", "Unable to convert color code, returning default")
|
||||
return [0, 0, 0, 1]
|
||||
|
@ -51,13 +53,15 @@ class ProcessSlicedLayersJob(Job):
|
|||
self._abort_requested = False
|
||||
self._build_plate_number = None
|
||||
|
||||
## Aborts the processing of layers.
|
||||
#
|
||||
# This abort is made on a best-effort basis, meaning that the actual
|
||||
# job thread will check once in a while to see whether an abort is
|
||||
# requested and then stop processing by itself. There is no guarantee
|
||||
# that the abort will stop the job any time soon or even at all.
|
||||
def abort(self):
|
||||
"""Aborts the processing of layers.
|
||||
|
||||
This abort is made on a best-effort basis, meaning that the actual
|
||||
job thread will check once in a while to see whether an abort is
|
||||
requested and then stop processing by itself. There is no guarantee
|
||||
that the abort will stop the job any time soon or even at all.
|
||||
"""
|
||||
|
||||
self._abort_requested = True
|
||||
|
||||
def setBuildPlate(self, new_value):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue