pysted.temporal.Nodes

class pysted.temporal.Nodes(nodes, parent=None)

A Nodes object is responsible to interact with a list of nodes and apply different forces or jitters to the a single node

Nodes.add_node(node[, pos])

Methods that implements adding a node to the current nodes.

Nodes.apply_force([mean, std, field])

This method allows to apply a force on each nodes

Nodes.apply_jitter([mean, std])

This method allows to jitter the position of each nodes.

Nodes.reset_force()

Reset the current force that is being applied on all nodes

Nodes.reset_speed()

Reset the current speed that is being applied on all nodes

Nodes.return_shape()

Should be implemented in the supered classes

Nodes.update()

Updates the position of each node based on the current forces and speeds