LinearSelectors#

LinearSelectors#

Constructor#

LinearSelectors(parent, limits[, selection, ...])

Collection of LinearSelector instances on a shared parent graphic.

Properties#

LinearSelectors.alpha

The opacity of the graphic

LinearSelectors.alpha_mode

How the alpha is handled by the renderer

LinearSelectors.axes

LinearSelectors.block_events

Used to block events for a graphic and prevent recursion.

LinearSelectors.block_handlers

Used to block event handlers for a graphic and prevent recursion.

LinearSelectors.deleted

used to emit an event after the graphic is deleted

LinearSelectors.event_handlers

Registered event handlers.

LinearSelectors.imgui_right_click

The imgui popup that is opened by a right-click on this graphic.

LinearSelectors.legend_item

The legend item of this graphic, created with create_legend_item().

LinearSelectors.name

Graphic name

LinearSelectors.offset

[x, y, z]

LinearSelectors.rotation

Orientation of the graphic as a quaternion

LinearSelectors.scale

(x, y, z) scaling factor

LinearSelectors.selection

Child selector selections in append order.

LinearSelectors.supported_events

events supported by this graphic

LinearSelectors.tooltip_format

set a custom tooltip format function which takes a pick_info dict and returns a str to be displayed in the tooltip

LinearSelectors.visible

Whether the graphic is visible

LinearSelectors.world_object

Associated pygfx WorldObject.

Methods#

LinearSelectors.add_axes()

Add axes onto this Graphic

LinearSelectors.add_event_handler(handler)

Register a callback fired on any selection change.

LinearSelectors.append(selection)

Create a new child selector and return it.

LinearSelectors.append_imgui_right_click([gui])

Append imgui elements to the right-click popup of this graphic.

LinearSelectors.clear()

Remove all child selectors.

LinearSelectors.clear_event_handlers()

clear all event handlers added to this graphic

LinearSelectors.format_pick_info(ev)

Takes a pygfx.PointerEvent and returns formatted pick info.

LinearSelectors.map_model_to_world(position)

map position from model (data) space to world space, basically applies the world affine transform

LinearSelectors.map_world_to_model(position)

map position from world space to model (data) space, basically applies the inverse world affine transform

LinearSelectors.remove(item)

Remove a child selector by index or reference.

LinearSelectors.remove_event_handler(handler)

remove a registered event handler

LinearSelectors.remove_imgui_right_click()

Remove and return the right-click popup of this graphic

LinearSelectors.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

LinearSelectors.set_imgui_right_click([...])

Set the imgui popup that is opened by a right-click on this graphic, replaces the popup of the subplot or Figure for this graphic.