colour_clf_io.ProcessNode#
- class colour_clf_io.ProcessNode(id: str | None, name: str | None, in_bit_depth: BitDepth, out_bit_depth: BitDepth, description: list[str] | None)[source]#
Bases:
XMLParsable,XMLWritable,ABCRepresent a ProcessNode, an operation to be applied to the image data.
At least one ProcessNode sub-class must be included in a
colour_clf_io.ProcessListclass instance. The base ProcessNode class contains attributes and elements that are common to and inherited by the specific sub-types of the ProcessNode class.References
- Parameters:
- name: str | None#
A concise string defining a name for the ProcessNode that can be used by an application for display in a user interface.
- in_bit_depth: BitDepth#
A string that is used by some ProcessNodes to indicate how array or parameter values have been scaled.
- out_bit_depth: BitDepth#
A string that is used by some ProcessNodes to indicate how array or parameter values have been scaled.
- description: list[str] | None#
An arbitrary string for describing the function, usage, or notes about the ProcessNode.
- static parse_attributes(xml: _Element, config: ParserConfig) dict[source]#
Parse the default attributes of a ProcessNode and return them as a dictionary of names and their values.
- Parameters:
xml (_Element) – XML element to parse.
config (ParserConfig) – XML parser config.
- Returns:
dict of attribute names and their values.
- Return type:
- write_process_node_attributes(node: _Element) None[source]#
Add the data of the ProcessNode as attributes to the given XML node.
- Parameters:
node (_Element) – Target node that will receive the new attributes.
- Return type:
None
- __eq__(other)#
Return self==value.
- __hash__ = None#
- __init__(id: str | None, name: str | None, in_bit_depth: BitDepth, out_bit_depth: BitDepth, description: list[str] | None) None#
- __repr__()#
Return repr(self).