ImageGrid#

ImageGrid#

Constructor#

ImageGrid(data, *[, vmin, vmax, cmap, ...])

Lay out a collection of images in a grid.

Properties#

ImageGrid.alpha

The opacity of the graphic

ImageGrid.alpha_mode

How the alpha is handled by the renderer

ImageGrid.alpha_modes

get or set the alpha_modes of the graphics in the collection

ImageGrid.alphas

get or set the alphas of the graphics in the collection

ImageGrid.axes

ImageGrid.block_events

Used to block events for a graphic and prevent recursion.

ImageGrid.block_handlers

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

ImageGrid.cmap

get or set the cmap of the graphics in the collection

ImageGrid.cmap_interpolation

get or set the cmap_interpolation of the graphics in the collection

ImageGrid.data

get or set the data of the graphics in the collection

ImageGrid.deleted

used to emit an event after the graphic is deleted

ImageGrid.event_handlers

Registered event handlers.

ImageGrid.gamma

get or set the gamma of the graphics in the collection

ImageGrid.graphics

the graphics in the collection

ImageGrid.imgui_right_click

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

ImageGrid.interpolation

get or set the interpolation of the graphics in the collection

ImageGrid.legend_item

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

ImageGrid.metadatas

get or set the metadatas of the graphics in the collection

ImageGrid.name

Graphic name

ImageGrid.names

get or set the names of the graphics in the collection

ImageGrid.offset

[x, y, z]

ImageGrid.offsets

get or set the offsets of the graphics in the collection

ImageGrid.rotation

Orientation of the graphic as a quaternion

ImageGrid.rotations

get or set the rotations of the graphics in the collection

ImageGrid.scale

(x, y, z) scaling factor

ImageGrid.scales

get or set the scales of the graphics in the collection

ImageGrid.supported_events

events supported by this graphic

ImageGrid.tooltip_format

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

ImageGrid.visible

Whether the graphic is visible

ImageGrid.visibles

get or set the visibles of the graphics in the collection

ImageGrid.vmax

get or set the vmax of the graphics in the collection

ImageGrid.vmin

get or set the vmin of the graphics in the collection

ImageGrid.world_object

Associated pygfx WorldObject.

Methods#

ImageGrid.add_axes()

Add axes onto this Graphic

ImageGrid.add_event_handler(*args)

Register an event handler.

ImageGrid.add_graphic(graphic)

Add a graphic to the collection.

ImageGrid.append_imgui_right_click([gui])

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

ImageGrid.clear_event_handlers()

clear all event handlers added to this graphic

ImageGrid.format_pick_info(ev)

Takes a pygfx.PointerEvent and returns formatted pick info.

ImageGrid.map_model_to_world(position)

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

ImageGrid.map_world_to_model(position)

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

ImageGrid.remove_event_handler(callback, *types)

remove a registered event handler

ImageGrid.remove_graphic(graphic)

Remove a graphic from the collection.

ImageGrid.remove_imgui_right_click(popup)

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

ImageGrid.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

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

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