Types

Link copied to clipboard
interface ZTreeNode<T : ZTreeNode<T>>

ZTreeNode interface represents a node in a tree structure.

Functions

Link copied to clipboard

Finds the first ZCamera in a given ZObject tree starting at root.

Link copied to clipboard

Finds the first ZModel in a given ZObject tree starting at root.

Link copied to clipboard
fun <T : ZTreeNode<T>> findInTree(tree: T, predicate: (node: T) -> Boolean): T?

Finds a specific node in a tree on the given predicate.

Link copied to clipboard

Finds an object in a tree structure by its name.

Link copied to clipboard
fun <T : ZTreeNode<T>> treeAsList(node: T): List<T>

Returns a list representation of the tree structure starting from the given node.

Link copied to clipboard
fun <T : ZTreeNode<T>> treeTraverse(node: T): Iterator<T>

Traverses a tree structure starting from the given node and returns an iterator over the nodes.