LinearSelector#

LinearSelector#

Constructor#

LinearSelector(selection, limits[, axis, ...])

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

Properties#

LinearSelector.alpha

The opacity of the graphic

LinearSelector.alpha_mode

How the alpha is handled by the renderer

LinearSelector.axes

LinearSelector.axis

LinearSelector.block_events

Used to block events for a graphic and prevent recursion.

LinearSelector.block_handlers

Used to block event handlers 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.imgui_right_click

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

LinearSelector.legend_item

The legend item of this graphic, created with create_legend_item().

LinearSelector.limits

LinearSelector.name

Graphic name

LinearSelector.offset

[x, y, z]

LinearSelector.parent

LinearSelector.rotation

Orientation of the graphic as a quaternion

LinearSelector.scale

(x, y, z) scaling factor

LinearSelector.selection

x or y value of selector's current position

LinearSelector.supported_events

events supported by this graphic

LinearSelector.tooltip_format

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

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.append_imgui_right_click([gui])

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

LinearSelector.clear_event_handlers()

clear all event handlers added to this graphic

LinearSelector.format_pick_info(ev)

Takes a pygfx.PointerEvent and returns formatted pick info.

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.map_model_to_world(position)

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

LinearSelector.map_world_to_model(position)

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

LinearSelector.remove_event_handler(...)

remove a registered event handler

LinearSelector.remove_imgui_right_click()

Remove and return the right-click popup of this graphic

LinearSelector.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

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