Module pysect.printer.printer
Expand source code
from dataclasses import dataclass
from enum import Enum, auto
import pyboiler.generic as generic
class Extruder(generic.slot_storage):
__slots__ = ("nozzle", "layer_min", "layer_max")
def __init__(self):
self.nozzle = 0.4
self.layer_min = 0.0375
self.layer_max = 0.3
class Bed(generic.slot_storage):
__slots__ = ("x", "y", "z", "shape")
def __init__(self, x: int, y: int, z: int, shape=None):
self.x = x
self.y = y
self.z = z
self.shape = shape
class Limits(generic.slot_storage):
__slots__ = ("x", "y", "z", "e", "unit")
def __init__(self, x: int, y: int, z: int, e: int, unit: str):
self.x = x
self.y = y
self.z = z
self.e = e
self.unit = unit
class Printer(generic.slot_storage):
__slots__ = ("name", "bed", "veloc", "accel")
def __init__(self):
self.name = "Printer"
self.bed = Bed(300, 300, 270)
self.veloc = Limits(500, 500, 12, 120, "mm/s")
self.accel = Limits(3000, 3000, 300, 3000, "mm/s^2")
Classes
class Bed (x: int, y: int, z: int, shape=None)
-
Children of this class must have slots defined
Expand source code
class Bed(generic.slot_storage): __slots__ = ("x", "y", "z", "shape") def __init__(self, x: int, y: int, z: int, shape=None): self.x = x self.y = y self.z = z self.shape = shape
Ancestors
- pyboiler.generic.slot_storage
- pyboiler.generic.pyboiler_generic
Instance variables
var shape
-
Return an attribute of instance, which is of type owner.
var x
-
Return an attribute of instance, which is of type owner.
var y
-
Return an attribute of instance, which is of type owner.
var z
-
Return an attribute of instance, which is of type owner.
class Extruder
-
Children of this class must have slots defined
Expand source code
class Extruder(generic.slot_storage): __slots__ = ("nozzle", "layer_min", "layer_max") def __init__(self): self.nozzle = 0.4 self.layer_min = 0.0375 self.layer_max = 0.3
Ancestors
- pyboiler.generic.slot_storage
- pyboiler.generic.pyboiler_generic
Instance variables
var layer_max
-
Return an attribute of instance, which is of type owner.
var layer_min
-
Return an attribute of instance, which is of type owner.
var nozzle
-
Return an attribute of instance, which is of type owner.
class Limits (x: int, y: int, z: int, e: int, unit: str)
-
Children of this class must have slots defined
Expand source code
class Limits(generic.slot_storage): __slots__ = ("x", "y", "z", "e", "unit") def __init__(self, x: int, y: int, z: int, e: int, unit: str): self.x = x self.y = y self.z = z self.e = e self.unit = unit
Ancestors
- pyboiler.generic.slot_storage
- pyboiler.generic.pyboiler_generic
Instance variables
var e
-
Return an attribute of instance, which is of type owner.
var unit
-
Return an attribute of instance, which is of type owner.
var x
-
Return an attribute of instance, which is of type owner.
var y
-
Return an attribute of instance, which is of type owner.
var z
-
Return an attribute of instance, which is of type owner.
class Printer
-
Children of this class must have slots defined
Expand source code
class Printer(generic.slot_storage): __slots__ = ("name", "bed", "veloc", "accel") def __init__(self): self.name = "Printer" self.bed = Bed(300, 300, 270) self.veloc = Limits(500, 500, 12, 120, "mm/s") self.accel = Limits(3000, 3000, 300, 3000, "mm/s^2")
Ancestors
- pyboiler.generic.slot_storage
- pyboiler.generic.pyboiler_generic
Instance variables
var accel
-
Return an attribute of instance, which is of type owner.
var bed
-
Return an attribute of instance, which is of type owner.
var name
-
Return an attribute of instance, which is of type owner.
var veloc
-
Return an attribute of instance, which is of type owner.