SelectorCollection#

SelectorCollection#

Constructor#

SelectorCollection(parent[, selection, name])

Dynamically-sized collection of same-type selectors on a shared parent graphic.

Properties#

SelectorCollection.alpha

The opacity of the graphic

SelectorCollection.alpha_mode

How the alpha is handled by the renderer

SelectorCollection.axes

SelectorCollection.block_events

Used to block events for a graphic and prevent recursion.

SelectorCollection.block_handlers

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

SelectorCollection.deleted

used to emit an event after the graphic is deleted

SelectorCollection.event_handlers

Registered event handlers.

SelectorCollection.imgui_right_click

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

SelectorCollection.name

Graphic name

SelectorCollection.offset

[x, y, z]

SelectorCollection.rotation

Orientation of the graphic as a quaternion

SelectorCollection.scale

(x, y, z) scaling factor

SelectorCollection.selection

Child selector selections in append order.

SelectorCollection.supported_events

events supported by this graphic

SelectorCollection.tooltip_format

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

SelectorCollection.visible

Whether the graphic is visible

SelectorCollection.world_object

Associated pygfx WorldObject.

Methods#

SelectorCollection.add_axes()

Add axes onto this Graphic

SelectorCollection.add_event_handler(handler)

Register a callback fired on any selection change.

SelectorCollection.append(selection)

Create a new child selector and return it.

SelectorCollection.append_imgui_right_click([gui])

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

SelectorCollection.clear()

Remove all child selectors.

SelectorCollection.clear_event_handlers()

clear all event handlers added to this graphic

SelectorCollection.format_pick_info(ev)

Takes a pygfx.PointerEvent and returns formatted pick info.

SelectorCollection.map_model_to_world(position)

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

SelectorCollection.map_world_to_model(position)

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

SelectorCollection.remove(item)

Remove a child selector by index or reference.

SelectorCollection.remove_event_handler(handler)

remove a registered event handler

SelectorCollection.remove_imgui_right_click()

Remove and return the right-click popup of this graphic

SelectorCollection.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

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