ImageVolumeGraphic#

ImageVolumeGraphic#

Constructor#

ImageVolumeGraphic(data[, mode, vmin, vmax, ...])

Create an ImageVolumeGraphic.

Properties#

ImageVolumeGraphic.alpha

The opacity of the graphic

ImageVolumeGraphic.alpha_mode

How the alpha is handled by the renderer

ImageVolumeGraphic.axes

ImageVolumeGraphic.block_events

Used to block events for a graphic and prevent recursion.

ImageVolumeGraphic.cmap

Get or set colormap name

ImageVolumeGraphic.cmap_interpolation

Get or set the cmap interpolation method

ImageVolumeGraphic.data

Get or set the image data

ImageVolumeGraphic.deleted

used to emit an event after the graphic is deleted

ImageVolumeGraphic.emissive

Get or set isosurface emissive color, only for iso mode.

ImageVolumeGraphic.event_handlers

Registered event handlers.

ImageVolumeGraphic.interpolation

Get or set the image data interpolation method

ImageVolumeGraphic.mode

Get or set the volume rendering mode

ImageVolumeGraphic.name

Graphic name

ImageVolumeGraphic.offset

[x, y, z]

ImageVolumeGraphic.plane

Get or set displayed plane in the volume.

ImageVolumeGraphic.right_click_menu

ImageVolumeGraphic.rotation

Orientation of the graphic as a quaternion

ImageVolumeGraphic.shininess

Get or set isosurface shininess

ImageVolumeGraphic.step_size

Get or set isosurface step_size, only for iso mode

ImageVolumeGraphic.substep_size

Get or set isosurface substep_size, only for iso mode

ImageVolumeGraphic.supported_events

events supported by this graphic

ImageVolumeGraphic.threshold

Get or set isosurface threshold, only for iso mode

ImageVolumeGraphic.visible

Whether the graphic is visible

ImageVolumeGraphic.vmax

Get or set the upper contrast limit

ImageVolumeGraphic.vmin

Get or set the lower contrast limit

ImageVolumeGraphic.world_object

Associated pygfx WorldObject.

Methods#

ImageVolumeGraphic.add_axes()

Add axes onto this Graphic

ImageVolumeGraphic.add_event_handler(*args)

Register an event handler.

ImageVolumeGraphic.clear_event_handlers()

clear all event handlers added to this graphic

ImageVolumeGraphic.remove_event_handler(...)

remove a registered event handler

ImageVolumeGraphic.reset_vmin_vmax()

Reset the vmin, vmax by estimating it from the data

ImageVolumeGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.