Package org.openrndr.binpack

Types

Link copied to clipboard
class CenteredBinarySplitter(    val enclosement: IntRectangle,     val invert: Boolean = true,     val constraints: (node: PackNode, rectangle: IntRectangle) -> Boolean = { _, _ -> true },     val xcon: (node: PackNode, rectangle: IntRectangle) -> Boolean = { _, _ -> true},     val ycon: (node: PackNode, rectangle: IntRectangle) -> Boolean = { _, _ -> true}) : Splitter
Link copied to clipboard
class CenterOrderer(val enclosement: IntRectangle, val reverse: Boolean = false) : Orderer
Link copied to clipboard
interface Clipper
Link copied to clipboard
class DefaultClipper : Clipper
Link copied to clipboard
class DefaultOrderer : Orderer
Link copied to clipboard
class DefaultSplitter : Splitter
Link copied to clipboard
class GreedySplitter : Splitter
Link copied to clipboard
class IntPacker(    clipper: Clipper = DefaultClipper(),     splitter: Splitter = DefaultSplitter(),     orderer: Orderer = DefaultOrderer())
Link copied to clipboard
class OptimizingOrderer(val reverse: Boolean = false) : Orderer
Link copied to clipboard
interface Orderer
Link copied to clipboard
class PackNode(val area: IntRectangle, val parent: PackNode? = null)
Link copied to clipboard
class RandomBinarySplitter(    val enclosement: IntRectangle,     val invert: Boolean = true,     val constraints: (node: PackNode, rectangle: IntRectangle) -> Boolean = { _, _ -> true }) : Splitter
Link copied to clipboard
class RandomOrderer : Orderer
Link copied to clipboard
interface Splitter

Functions

Link copied to clipboard
fun leafNodes(node: PackNode): List<PackNode>
Link copied to clipboard
fun prune(node: PackNode)