Ufo.Node¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Ufo.Node(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Main object for organizing filters. The contents of the
Ufo.Node
structure are private and should only be accessed via the provided API.- copy()¶
- Raises:
- Returns:
Copy of self.
- Return type:
Get a copy of self. How “deep” the copy is, depends on the inherited implementation of self. The copy receives an new index and the total amount of nodes is increased by one.
- get_index()¶
- Returns:
The index of self.
- Return type:
Get the index of this node. When a graph is expanded, nodes are copied. The original node has index 1, all successive copies receive a monotonous increasing index. The total amount of copied nodes can be queried with
Ufo.Node.get_total
().
- get_label()¶
-
Get arbitrary label data of self.
- get_total()¶
- Returns:
The number of copied nodes.
- Return type:
Get the total amount of copied nodes.
- do_copy() virtual¶
- Returns:
Copy of node.
- Return type:
Get a copy of node. How “deep” the copy is, depends on the inherited implementation of node. The copy receives an new index and the total amount of nodes is increased by one.