Slide

class Slide(name: String, initialSize: Extent2D?)

a place to stage molecules and geoemtry for viewing

slides must be thread-safe since they are directly accessed by the renderer

Constructors

Link copied to clipboard
fun Slide(name: String, initialSize: Extent2D? = null)

Types

Link copied to clipboard
inner class Locked

Functions

Link copied to clipboard
inline fun <R> lock(block: (Slide.Locked) -> R): R

lock this slide to prevent races with the renderer

Properties

Link copied to clipboard
val _locked: Slide.Locked

DO NOT USE THIS WITHOUT SYNCHRONIZING ON SLIDE OR YOU WILL RACE THE RENDER THREAD Use the lock() convenience method rather than accessing this directly

Link copied to clipboard
val initialSize: Extent2D? = null
Link copied to clipboard
var name: String