mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Update some documentation. [CURA-6091]
This commit is contained in:
parent
d076bfae77
commit
f03c239041
1 changed files with 10 additions and 2 deletions
|
@ -39,14 +39,22 @@ class IntentManager(QObject):
|
||||||
## Gets the metadata dictionaries of all intent profiles for a given
|
## Gets the metadata dictionaries of all intent profiles for a given
|
||||||
# configuration.
|
# configuration.
|
||||||
#
|
#
|
||||||
# \param definition_id: ID of the printer.
|
# \param definition_id ID of the printer.
|
||||||
|
# \param nozzle_name Name of the nozzle.
|
||||||
|
# \param material_id ID of the material.
|
||||||
# \return A list of metadata dictionaries matching the search criteria, or
|
# \return A list of metadata dictionaries matching the search criteria, or
|
||||||
# an empty list if nothing was found.
|
# an empty list if nothing was found.
|
||||||
def intentMetadatas(self, definition_id: str, nozzle_name: str, material_id: str) -> List[Dict[str, Any]]:
|
def intentMetadatas(self, definition_id: str, nozzle_name: str, material_id: str) -> List[Dict[str, Any]]:
|
||||||
registry = CuraApplication.getInstance().getContainerRegistry()
|
registry = CuraApplication.getInstance().getContainerRegistry()
|
||||||
return registry.findContainersMetadata(definition = definition_id, variant = nozzle_name, material_id = material_id)
|
return registry.findContainersMetadata(definition = definition_id, variant = nozzle_name, material_id = material_id)
|
||||||
|
|
||||||
##
|
## Collects and returns all intent categories available for the given
|
||||||
|
# parameters. Note that the 'default' category is always available.
|
||||||
|
#
|
||||||
|
# \param definition_id ID of the printer.
|
||||||
|
# \param nozzle_name Name of the nozzle.
|
||||||
|
# \param material_id ID of the material.
|
||||||
|
# \return A set of intent category names.
|
||||||
def intentCategories(self, definition_id: str, nozzle_id: str, material_id: str) -> List[str]:
|
def intentCategories(self, definition_id: str, nozzle_id: str, material_id: str) -> List[str]:
|
||||||
categories = set()
|
categories = set()
|
||||||
for intent in self.intentMetadatas(definition_id, nozzle_id, material_id):
|
for intent in self.intentMetadatas(definition_id, nozzle_id, material_id):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue