LinearRegionSelector#

LinearRegionSelector#

Constructor#

LinearRegionSelector(selection, limits, ...)

Create a LinearRegionSelector graphic which can be moved only along either the x-axis or y-axis.

Properties#

LinearRegionSelector.axes

LinearRegionSelector.axis

LinearRegionSelector.block_events

Used to block events for a graphic and prevent recursion.

LinearRegionSelector.deleted

used to emit an event after the graphic is deleted

LinearRegionSelector.edge_color

Returns the edge color of the selector

LinearRegionSelector.event_handlers

Registered event handlers.

LinearRegionSelector.fill_color

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

LinearRegionSelector.limits

LinearRegionSelector.name

Graphic name

LinearRegionSelector.offset

[x, y, z]

LinearRegionSelector.parent

graphic that the selector is associated with

LinearRegionSelector.right_click_menu

LinearRegionSelector.rotation

Orientation of the graphic as a quaternion

LinearRegionSelector.selection

(min, max) of selector along selector's axis

LinearRegionSelector.supported_events

events supported by this graphic

LinearRegionSelector.vertex_color

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

LinearRegionSelector.visible

Whether the graphic is visible

LinearRegionSelector.world_object

Associated pygfx WorldObject.

Methods#

LinearRegionSelector.add_axes()

Add axes onto this Graphic

LinearRegionSelector.add_event_handler(*args)

Register an event handler.

LinearRegionSelector.clear_event_handlers()

clear all event handlers added to this graphic

LinearRegionSelector.get_selected_data([graphic])

Get the Graphic data bounded by the current selection.

LinearRegionSelector.get_selected_index()

Not implemented for this selector

LinearRegionSelector.get_selected_indices([...])

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

LinearRegionSelector.remove_event_handler(...)

remove a registered event handler

LinearRegionSelector.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

LinearRegionSelector.share_property(feature)

LinearRegionSelector.unshare_property(feature)