org.appliedtopology.tda4j.plot.Behavior
See theBehavior companion object
enum Behavior
What a control does to the item it is attached to. A behavior is a small value: attach one or several (a + b) to a mark of a Panel, and the page shows the item accordingly whenever the control moves; the same behaviors give a still picture at any value of the control (Interactive.at), which is how a talk's frames are made.
- Behavior.Shown: the item is there while the control's value
vhasfrom <= v < until. A simplex that enters the filtration atfis shown fromf; a class that lives on[b, d)is shown frombuntild. - Behavior.Follows: a coordinate of the item (of one or both ends of a segment, or of a rule) is the control's value held between
loandhi. A rule that follows the control is the movable line; a segment that follows it betweenbanddis a bar growing until the line passes its death. In a 3-D scene a point, a segment, a triangle or a ball follows too, in any of the three coordinates, and the scene keeps its place in the picture (see Panel.Spatial). - Behavior.Radius: the radius of the discs of a mark (data units) is
factortimes the control's value: the balls whose overlaps a Vietoris-Rips or Cech complex records. - Behavior.Selects: pointing at the item (or clicking it) chooses a key of a Selection. What the item looks like does not change; other items react.
- Behavior.Selected: the item is there while a key is chosen in a Selection: a ring around a point, a cycle over the input. Together with Behavior.Selects on the item that stands for the same thing in another panel, this links the views.
- Behavior.Custom: your own. The page calls the function you register under
kind(see Interactive.withScript); a still picture shows the item as it was drawn.
Attributes
- Companion
- object
- Experimental
- true
- Source
- Interactive.scala
- Graph
-
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article