DWVv0.37.0

PositionSetTapBehavior

Source: tapBehavior.js:135

Tap sets the current slice/index from the display position (plane point). It then emits a tap event, on every tap, with as detail:

  • position: the tapped position values,
  • annotations: an AnnotationTapHit for the top most annotation under the tap, one per draw layer with a hit,
  • segments: a SegmentationTapHit per mask view layer with segments under the tap. Empty annotations and segments mean that nothing was hit, for example to reset a selection.

Constructor

new PositionSetTapBehavior(): PositionSetTapBehavior

Instance Methods

onTap(point: Point2D, layerGroup: LayerGroup)

Set stack position from the tapped display point (plane coordinates) and emit the tap event.

Parameters