LineStack#

LineStack#

Constructor#

LineStack(data, *[, thickness, colors, ...])

Create a stack of graphics.

Properties#

LineStack.alpha

The opacity of the graphic

LineStack.alpha_mode

How the alpha is handled by the renderer

LineStack.alpha_modes

get or set the alpha_modes of the graphics in the collection

LineStack.alphas

get or set the alphas of the graphics in the collection

LineStack.axes

LineStack.block_events

Used to block events for a graphic and prevent recursion.

LineStack.block_handlers

Used to block event handlers for a graphic and prevent recursion.

LineStack.cmap

get or set the colormap(s) across the collection

LineStack.cmap_range

get or set the cmap_range of the graphics in the collection

LineStack.cmap_transform

get or set the cmap_transform across the collection

LineStack.colors

get or set the colors of the graphics in the collection

LineStack.dash_pattern

get or set the dash_pattern of the graphics in the collection

LineStack.data

get or set the data of the graphics in the collection

LineStack.deleted

used to emit an event after the graphic is deleted

LineStack.event_handlers

Registered event handlers.

LineStack.graphics

the graphics in the collection

LineStack.imgui_right_click

The imgui popup of each graphic of this collection, in order.

LineStack.legend_item

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

LineStack.metadatas

get or set the metadatas of the graphics in the collection

LineStack.name

Graphic name

LineStack.names

get or set the names of the graphics in the collection

LineStack.offset

[x, y, z]

LineStack.offsets

get or set the offsets of the graphics in the collection

LineStack.rotation

Orientation of the graphic as a quaternion

LineStack.rotations

get or set the rotations of the graphics in the collection

LineStack.scale

(x, y, z) scaling factor

LineStack.scales

get or set the scales of the graphics in the collection

LineStack.separation

get or set the (x, y, z) gap added to the step along the stacking axes

LineStack.separation_axis

get or set the axes to stack along, e.g. "y", "xy", "xyz".

LineStack.size_space

get or set the size_space of the graphics in the collection

LineStack.steps

get or set the per-graphic (x, y, z) steps used to space the stack, None to auto-determine

LineStack.supported_events

events supported by this graphic

LineStack.thickness

get or set the thickness of the graphics in the collection

LineStack.tooltip_format

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

LineStack.visible

Whether the graphic is visible

LineStack.visibles

get or set the visibles of the graphics in the collection

LineStack.world_object

Associated pygfx WorldObject.

Methods#

LineStack.add_axes()

Add axes onto this Graphic

LineStack.add_event_handler(*args)

Register an event handler.

LineStack.add_graphic(graphic)

Add a graphic to the collection.

LineStack.add_linear_region_selector([...])

Add a LinearRegionSelector.

LineStack.add_linear_selector([selection, ...])

Add a LinearSelector.

LineStack.add_polygon_selector([selection])

Add a PolygonSelector.

LineStack.add_rectangle_selector([selection])

Add a RectangleSelector.

LineStack.append_imgui_right_click([gui])

Append imgui elements to the popup of every graphic of this collection.

LineStack.clear_event_handlers()

clear all event handlers added to this graphic

LineStack.format_pick_info(ev)

Takes a pygfx.PointerEvent and returns formatted pick info.

LineStack.map_model_to_world(position)

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

LineStack.map_world_to_model(position)

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

LineStack.remove_event_handler(callback, *types)

remove a registered event handler

LineStack.remove_graphic(graphic)

Remove a graphic from the collection.

LineStack.remove_imgui_right_click(popup)

Remove popup from every graphic of this collection that has it set.

LineStack.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

LineStack.set_imgui_right_click([popup, ...])

Set the imgui popup opened by a right-click on any graphic of this collection.