fastplotlib.graphics._features.LinearRegionSelectionFeature¶

class LinearRegionSelectionFeature(parent, selection, axis, limits)[source]¶

Feature for a linearly bounding region

event pick info

key

type

description

“selected_indices”

numpy.ndarray or None

selected graphic data indices

“world_object”

pygfx.WorldObject

pygfx World Object

“new_data”

(float, float)

current bounds in world coordinates, NOT necessarily the same as “selected_indices”.

“graphic”

Graphic

the selection graphic

“delta”

numpy.ndarray

the delta vector of the graphic in NDC

“pygfx_event”

pygfx.Event

pygfx Event

“selected_data”

numpy.ndarray or None

selected graphic data

“move_info”

MoveInfo

last position and event source (pygfx.Mesh or pygfx.Line)