Spatial

org.appliedtopology.tda4j.plot.Panel.Spatial
final case class Spatial(scene: Scene, reactions: Map[Int, IndexedSeq[Reaction]] = ..., brush: Option[String] = ...) extends Panel

A 3-D panel. A canvas carries out Behavior.Shown, Behavior.Selected and Behavior.Selects on any layer and Behavior.Radius on balls (Layer.Balls); Behavior.Custom is yours.

Attributes

Source
Interactive.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Panel
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def brushable(selection: String): Spatial

This panel with a rectangle choosing, in the selection selection, the keys of every item of this panel that it touches (a shift-drag adds to what is chosen). A drag turns the canvas, so a box button beside the picture makes a drag (of a mouse, a pen or a finger) draw a rectangle instead. The rectangle is on the plane of the view, and what it touches is what its outline meets there: a point whose centre is inside, a segment that crosses or lies in it, a triangle that overlaps it (marker sizes and line widths do not count, so the answer does not depend on the size of the picture); items that are not drawn at the moment are not chosen. The rectangle stays until the next click or until the view moves. Interactive.touched says what a rectangle chooses, and PageState.brush draws it in a still picture. Some item of the panel has to choose in that selection (selecting).

This panel with a rectangle choosing, in the selection selection, the keys of every item of this panel that it touches (a shift-drag adds to what is chosen). A drag turns the canvas, so a box button beside the picture makes a drag (of a mouse, a pen or a finger) draw a rectangle instead. The rectangle is on the plane of the view, and what it touches is what its outline meets there: a point whose centre is inside, a segment that crosses or lies in it, a triangle that overlaps it (marker sizes and line widths do not count, so the answer does not depend on the size of the picture); items that are not drawn at the moment are not chosen. The rectangle stays until the next click or until the view moves. Interactive.touched says what a rectangle chooses, and PageState.brush draws it in a still picture. Some item of the panel has to choose in that selection (selecting).

Attributes

Source
Interactive.scala
def mapScene(change: Scene => Scene): Spatial

The same with change applied to the scene.

The same with change applied to the scene.

Attributes

Source
Interactive.scala
def react(layer: Layer, behavior: Behavior): Spatial

layer added to the scene, its items all reacting as behavior says.

layer added to the scene, its items all reacting as behavior says.

Attributes

Source
Interactive.scala
def react(layer: Layer, reaction: Reaction): Spatial

layer added to the scene, its items all reacting as reaction says.

layer added to the scene, its items all reacting as reaction says.

Attributes

Source
Interactive.scala
def reactEach(layer: Layer, reactions: IndexedSeq[Reaction]): Spatial

layer added to the scene, item i reacting as reactions(i) says.

layer added to the scene, item i reacting as reactions(i) says.

Attributes

Source
Interactive.scala
def selecting(index: Int, selection: String, keys: IndexedSeq[Int], halo: Boolean = ...): Spatial

The layer at index of the scene, linked to the selection selection: pointing at its item i chooses the key keys(i) there, and a click pins it (a canvas is turned by dragging, see brushable for choosing by rectangle). With halo, a translucent shape over each item (a ring around a point, a thicker line, a darker triangle) is added to the scene and appears while the item's key is chosen, whoever chose it. See Panel.Flat.selecting.

The layer at index of the scene, linked to the selection selection: pointing at its item i chooses the key keys(i) there, and a click pins it (a canvas is turned by dragging, see brushable for choosing by rectangle). With halo, a translucent shape over each item (a ring around a point, a thicker line, a darker triangle) is added to the scene and appears while the item's key is chosen, whoever chose it. See Panel.Flat.selecting.

Attributes

Source
Interactive.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala