LinearRegionSelector¶

LinearRegionSelector¶

Constructor¶

LinearRegionSelector(bounds, limits, size, ...)

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

Properties¶

LinearRegionSelector.children

Return the children of the WorldObject.

LinearRegionSelector.limits

LinearRegionSelector.name

str name reference for this item

LinearRegionSelector.position

position of the graphic, [x, y, z]

LinearRegionSelector.position_x

x-axis position of the graphic

LinearRegionSelector.position_y

y-axis position of the graphic

LinearRegionSelector.position_z

z-axis position of the graphic

LinearRegionSelector.rotation

LinearRegionSelector.visible

Access or change the visibility.

LinearRegionSelector.world_object

Associated pygfx WorldObject.

Methods¶

LinearRegionSelector.add_ipywidget_handler(widget)

Bidirectionally connect events with a ipywidget slider

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.make_ipywidget_slider([kind])

Makes and returns an ipywidget slider that is associated to this LinearSelector

LinearRegionSelector.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.