LinearSelector#

LinearSelector#

Constructor#

LinearSelector(selection, limits, size, center)

Create a horizontal or vertical line that can be used to select a value along an axis.

Properties#

LinearSelector.axes

LinearSelector.axis

LinearSelector.block_events

Used to block events for a graphic and prevent recursion.

LinearSelector.deleted

used to emit an event after the graphic is deleted

LinearSelector.edge_color

Returns the color of the linear selector.

LinearSelector.event_handlers

Registered event handlers.

LinearSelector.fill_color

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

LinearSelector.limits

LinearSelector.name

Graphic name

LinearSelector.offset

[x, y, z]

LinearSelector.parent

LinearSelector.right_click_menu

LinearSelector.rotation

Orientation of the graphic as a quaternion

LinearSelector.selection

x or y value of selector's current position

LinearSelector.supported_events

events supported by this graphic

LinearSelector.vertex_color

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

LinearSelector.visible

Whether the graphic is visible

LinearSelector.world_object

Associated pygfx WorldObject.

Methods#

LinearSelector.add_axes()

Add axes onto this Graphic

LinearSelector.add_event_handler(*args)

Register an event handler.

LinearSelector.clear_event_handlers()

clear all event handlers added to this graphic

LinearSelector.get_selected_data()

Not implemented for this selector

LinearSelector.get_selected_index([graphic])

Data index the selector is currently at w.r.t.

LinearSelector.get_selected_indices()

Not implemented for this selector

LinearSelector.remove_event_handler(...)

remove a registered event handler

LinearSelector.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

LinearSelector.share_property(feature)

LinearSelector.unshare_property(feature)