HighlightSelector#

HighlightSelector#

Constructor#

HighlightSelector([color, lut, lut_wrap, alpha])

Base class managing highlight state on one or more graphics.

Properties#

HighlightSelector.alpha

Get or set alpha value, 0 - 1.0

HighlightSelector.color

Get or set color applied to all selected items, used if lut is None.

HighlightSelector.graphics

Get graphics the highlight selector is operating on.

HighlightSelector.lut

Get or set per-item color lookup table, shape (n, 4) float32 RGBA, or a str that defines a colormap.

HighlightSelector.lut_wrap

Get or set LUT wrap mode.

HighlightSelector.selection

Methods#

HighlightSelector.add_event_handler(handler)

Add a callback that is called when the selection changes.

HighlightSelector.add_graphic(graphic)

Add graphic and apply the current highlight selection to it.

HighlightSelector.append(item)

HighlightSelector.clear()

HighlightSelector.remove(item)

HighlightSelector.remove_event_handler(handler)

Remove an event handler.

HighlightSelector.remove_graphic(graphic)

remove graphic and clear its highlight buffer.