Class Bvv.Keyframe

java.lang.Object
sc.fiji.snt.viewer.Bvv.Keyframe
Enclosing class:
Bvv

public static class Bvv.Keyframe extends Object
A snapshot of the BVV viewer state at a particular moment, used as a keyframe for movie recording. Captures the viewer transform, camera/slab parameters (dCam, nearClip, farClip), and which "actors" (volume channels, paths, annotations) are visible.

Keyframes are serialized/deserialized via toString() and fromString(String) so they can be dumped to the console with the K hotkey and pasted into scripts.

  • Field Details

  • Constructor Details

  • Method Details

    • setAccel

      public void setAccel(String name)
      Sets the easing type by name. Accepted values (case-insensitive, spaces or underscores): "symmetric", "slow_start" / "slow start", "slow_end", "soft_symmetric", "soft_slow_start", "soft_slow_end".
      Parameters:
      name - the easing name
      Throws:
      IllegalArgumentException - if the name is not recognized
    • getAccelName

      public String getAccelName()
      Returns the current easing type as a human-readable name.
      Returns:
      the easing name, e.g. "slow start"
    • toString

      public String toString()
      Serializes this keyframe to a single-line string: transform=d0,d1,...,d11|cam=dCam,near,far|visible=a;b;c|accel=N
      Overrides:
      toString in class Object
    • fromString

      public static Bvv.Keyframe fromString(String s)
      Deserializes a keyframe from the string produced by toString().
      Parameters:
      s - the serialised keyframe string
      Returns:
      a new Keyframe, or null if parsing fails