RectangleSelector#

RectangleSelector#

Constructor#

RectangleSelector(selection, limits[, ...])

Create a RectangleSelector graphic which can be used to select a rectangular region of data.

Properties#

RectangleSelector.axes

RectangleSelector.axis

RectangleSelector.block_events

Used to block events for a graphic and prevent recursion.

RectangleSelector.deleted

used to emit an event after the graphic is deleted

RectangleSelector.edge_color

Returns the edge color of the selector

RectangleSelector.event_handlers

Registered event handlers.

RectangleSelector.fill_color

Returns the fill color of the selector, None if selector has no fill.

RectangleSelector.limits

Return the limits of the selector.

RectangleSelector.name

Graphic name

RectangleSelector.offset

[x, y, z]

RectangleSelector.parent

Graphic that selector is associated with.

RectangleSelector.right_click_menu

RectangleSelector.rotation

Orientation of the graphic as a quaternion

RectangleSelector.selection

(xmin, xmax, ymin, ymax) of the rectangle selection

RectangleSelector.supported_events

events supported by this graphic

RectangleSelector.vertex_color

Returns the vertex color of the selector, None if selector has no vertices.

RectangleSelector.visible

Whether the graphic is visible

RectangleSelector.world_object

Associated pygfx WorldObject.

Methods#

RectangleSelector.add_axes()

Add axes onto this Graphic

RectangleSelector.add_event_handler(*args)

Register an event handler.

RectangleSelector.clear_event_handlers()

clear all event handlers added to this graphic

RectangleSelector.get_selected_data([...])

Get the Graphic data bounded by the current selection.

RectangleSelector.get_selected_index()

Not implemented for this selector

RectangleSelector.get_selected_indices([graphic])

Returns the indices of the Graphic data bounded by the current selection.

RectangleSelector.remove_event_handler(...)

remove a registered event handler

RectangleSelector.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

RectangleSelector.share_property(feature)

RectangleSelector.unshare_property(feature)