PickInfo#
- class braincell.vis.PickInfo(branch_index, branch_name, branch_type, segment_index=None, x=None, value=None, position_um=None, artist=None)[source]#
Payload delivered to a
VisHookscallback.- Parameters:
branch_index (
int) – Index of the branch insidemorpho.branches.branch_name (
str) – Human-readable branch name.branch_type (
str) – Branch type string ("soma","apical_dendrite", …).segment_index (
int|None) – Segment index within the branch (0for the proximal segment), orNoneif the artist does not resolve to a single segment.x (
float|None) – Fractional arc-length coordinate along the branch in[0, 1], orNoneif the pick cannot be placed precisely.value (
float|None) – Scalar at the picked segment when the scene carries a colour-by-values overlay.Nonewhen no values were supplied.position_um (
ndarray|None) – Pick location in scene coordinates (2-D for matplotlib, 3-D for PyVista).Nonewhen the backend did not report a location.artist (
Any) – The underlying backend artist (e.g.LineCollection,pyvista.PolyData). Opaque to generic code but useful for tests and advanced callers.