LinearRegionSelectors#

LinearRegionSelectors#

Constructor#

LinearRegionSelectors(parent, limits, size, ...)

Collection of LinearRegionSelector instances on a shared parent graphic.

Properties#

LinearRegionSelectors.alpha

The opacity of the graphic

LinearRegionSelectors.alpha_mode

How the alpha is handled by the renderer

LinearRegionSelectors.axes

LinearRegionSelectors.block_events

Used to block events for a graphic and prevent recursion.

LinearRegionSelectors.block_handlers

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

LinearRegionSelectors.deleted

used to emit an event after the graphic is deleted

LinearRegionSelectors.event_handlers

Registered event handlers.

LinearRegionSelectors.imgui_right_click

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

LinearRegionSelectors.legend_item

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

LinearRegionSelectors.name

Graphic name

LinearRegionSelectors.offset

[x, y, z]

LinearRegionSelectors.rotation

Orientation of the graphic as a quaternion

LinearRegionSelectors.scale

(x, y, z) scaling factor

LinearRegionSelectors.selection

Child selector selections in append order.

LinearRegionSelectors.supported_events

events supported by this graphic

LinearRegionSelectors.tooltip_format

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

LinearRegionSelectors.visible

Whether the graphic is visible

LinearRegionSelectors.world_object

Associated pygfx WorldObject.

Methods#

LinearRegionSelectors.add_axes()

Add axes onto this Graphic

LinearRegionSelectors.add_event_handler(handler)

Register a callback fired on any selection change.

LinearRegionSelectors.append(selection)

Create a new child selector and return it.

LinearRegionSelectors.append_imgui_right_click([gui])

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

LinearRegionSelectors.clear()

Remove all child selectors.

LinearRegionSelectors.clear_event_handlers()

clear all event handlers added to this graphic

LinearRegionSelectors.format_pick_info(ev)

Takes a pygfx.PointerEvent and returns formatted pick info.

LinearRegionSelectors.map_model_to_world(...)

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

LinearRegionSelectors.map_world_to_model(...)

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

LinearRegionSelectors.remove(item)

Remove a child selector by index or reference.

LinearRegionSelectors.remove_event_handler(handler)

remove a registered event handler

LinearRegionSelectors.remove_imgui_right_click()

Remove and return the right-click popup of this graphic

LinearRegionSelectors.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

LinearRegionSelectors.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.