mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 07:29:03 +08:00
Add documentation for ContainerGroup
This commit is contained in:
parent
a0acf8631d
commit
025239c26e
@ -8,6 +8,19 @@ from PyQt5.Qt import QObject, pyqtSlot
|
|||||||
from cura.Machines.ContainerNode import ContainerNode
|
from cura.Machines.ContainerNode import ContainerNode
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# A ContainerGroup represents a group of containers that must be applied to each ContainerStack when it's used.
|
||||||
|
# Some concrete examples are Quality and QualityChanges: when we select quality type "normal", this quality type
|
||||||
|
# must be applied to all stacks in a machine, although each stack can have different containers. Use an Ultimaker 3
|
||||||
|
# as an example, suppose we choose quality type "normal", the actual InstanceConstainers on each stack may look
|
||||||
|
# as below:
|
||||||
|
# GlobalStack ExtruderStack 1 ExtruderStack 2
|
||||||
|
# quality container: um3_global_normal um3_aa04_pla_normal um3_aa04_abs_normal
|
||||||
|
#
|
||||||
|
# This ContainerGroup is mainly used in quality and quality_changes to group the containers that can be applied to
|
||||||
|
# a machine, so when a quality/custom quality is selected, the container can be directly applied to each stack instead
|
||||||
|
# of looking them up again.
|
||||||
|
#
|
||||||
class ContainerGroup(QObject):
|
class ContainerGroup(QObject):
|
||||||
|
|
||||||
def __init__(self, name: str, parent = None):
|
def __init__(self, name: str, parent = None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user