Package-level declarations

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 all direct lights (directional, point, spot) in a ZObject tree starting at root, excluding ambient lights. Returns only enabled lights.

Link copied to clipboard

Finds every ZLight in a ZObject tree starting at root, in depth-first preorder (same order as treeTraverse).

Link copied to clipboard

Finds the first enabled ambient light in a ZObject tree starting at root.

Link copied to clipboard

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

Link copied to clipboard

Finds the first ZLight 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.