mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Initial commit for the DL
This commit is contained in:
parent
e19d5545bc
commit
d972c505d0
38 changed files with 3512 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2021 Ultimaker B.V.
|
||||
# Uranium is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from UM.OutputDevice.OutputDevicePlugin import OutputDevicePlugin
|
||||
from .DigitalFactoryOutputDevice import DigitalFactoryOutputDevice
|
||||
from .DigitalFactoryController import DigitalFactoryController
|
||||
|
||||
|
||||
class DigitalFactoryOutputDevicePlugin(OutputDevicePlugin):
|
||||
def __init__(self, df_controller: DigitalFactoryController) -> None:
|
||||
super().__init__()
|
||||
self.df_controller = df_controller
|
||||
|
||||
def start(self) -> None:
|
||||
self.getOutputDeviceManager().addProjectOutputDevice(DigitalFactoryOutputDevice(plugin_id = self.getPluginId(), df_controller = self.df_controller, add_to_output_devices = True))
|
||||
|
||||
def stop(self) -> None:
|
||||
self.getOutputDeviceManager().removeProjectOutputDevice("digital_factory")
|
Loading…
Add table
Add a link
Reference in a new issue