Ufo.Node

g GObject.Object GObject.Object Ufo.Node Ufo.Node GObject.Object->Ufo.Node

Subclasses:

Ufo.CpuNode, Ufo.GpuNode, Ufo.TaskNode

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (label)

copy ()

equal (n2)

get_index ()

get_label ()

get_total ()

Virtual Methods

Inherited:

GObject.Object (7)

do_copy ()

do_equal (n2)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Ufo.Node(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ufo.NodeClass

Main object for organizing filters. The contents of the Ufo.Node structure are private and should only be accessed via the provided API.

classmethod new(label)
Parameters:

label (object or None) –

Return type:

Ufo.Node

copy()
Raises:

GLib.Error

Returns:

Copy of self.

Return type:

Ufo.Node

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.

equal(n2)
Parameters:

n2 (Ufo.Node) –

Return type:

bool

get_index()
Returns:

The index of self.

Return type:

int

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()
Returns:

The label of self.

Return type:

object or None

Get arbitrary label data of self.

get_total()
Returns:

The number of copied nodes.

Return type:

int

Get the total amount of copied nodes.

do_copy() virtual
Returns:

Copy of node.

Return type:

Ufo.Node

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.

do_equal(n2) virtual
Parameters:

n2 (Ufo.Node) –

Return type:

bool