RectangleSelectors#

RectangleSelectors#

Constructor#

RectangleSelectors(parent, limits[, ...])

Collection of RectangleSelector instances on a shared parent graphic.

Properties#

RectangleSelectors.alpha

The opacity of the graphic

RectangleSelectors.alpha_mode

How the alpha is handled by the renderer

RectangleSelectors.axes

RectangleSelectors.block_events

Used to block events for a graphic and prevent recursion.

RectangleSelectors.block_handlers

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

RectangleSelectors.deleted

used to emit an event after the graphic is deleted

RectangleSelectors.event_handlers

Registered event handlers.

RectangleSelectors.imgui_right_click

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

RectangleSelectors.name

Graphic name

RectangleSelectors.offset

[x, y, z]

RectangleSelectors.rotation

Orientation of the graphic as a quaternion

RectangleSelectors.scale

(x, y, z) scaling factor

RectangleSelectors.selection

Child selector selections in append order.

RectangleSelectors.supported_events

events supported by this graphic

RectangleSelectors.tooltip_format

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

RectangleSelectors.visible

Whether the graphic is visible

RectangleSelectors.world_object

Associated pygfx WorldObject.

Methods#

RectangleSelectors.add_axes()

Add axes onto this Graphic

RectangleSelectors.add_event_handler(handler)

Register a callback fired on any selection change.

RectangleSelectors.append(selection)

Create a new child selector and return it.

RectangleSelectors.append_imgui_right_click([gui])

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

RectangleSelectors.clear()

Remove all child selectors.

RectangleSelectors.clear_event_handlers()

clear all event handlers added to this graphic

RectangleSelectors.format_pick_info(ev)

Takes a pygfx.PointerEvent and returns formatted pick info.

RectangleSelectors.map_model_to_world(position)

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

RectangleSelectors.map_world_to_model(position)

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

RectangleSelectors.remove(item)

Remove a child selector by index or reference.

RectangleSelectors.remove_event_handler(handler)

remove a registered event handler

RectangleSelectors.remove_imgui_right_click()

Remove and return the right-click popup of this graphic

RectangleSelectors.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

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