IntentNode.py 542 B

1234567891011121314151617
  1. # Copyright (c) 2019 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from typing import TYPE_CHECKING
  4. from cura.Machines.ContainerNode import ContainerNode
  5. if TYPE_CHECKING:
  6. from cura.Machines.QualityNode import QualityNode
  7. ## This class represents an intent profile in the container tree.
  8. #
  9. # This class has no more subnodes.
  10. class IntentNode(ContainerNode):
  11. def __init__(self, container_id: str, quality: "QualityNode") -> None:
  12. super().__init__(container_id)
  13. self.quality = quality