SurfaceGraphic#

SurfaceGraphic#

Constructor#

SurfaceGraphic(data[, mode, colors, ...])

Create a Surface mesh Graphic

Properties#

SurfaceGraphic.alpha

The opacity of the graphic

SurfaceGraphic.alpha_mode

How the alpha is handled by the renderer

SurfaceGraphic.axes

SurfaceGraphic.block_events

Used to block events for a graphic and prevent recursion.

SurfaceGraphic.clim

get or set the colormap limits

SurfaceGraphic.cmap

get or set the cmap

SurfaceGraphic.colors

Get or set the colors

SurfaceGraphic.data

get or set the surface data

SurfaceGraphic.deleted

used to emit an event after the graphic is deleted

SurfaceGraphic.event_handlers

Registered event handlers.

SurfaceGraphic.indices

Get or set the vertex indices

SurfaceGraphic.mapcoords

get or set the mapcoords

SurfaceGraphic.mode

get mesh rendering mode

SurfaceGraphic.name

Graphic name

SurfaceGraphic.offset

[x, y, z]

SurfaceGraphic.plane

Get or set the current slice plane.

SurfaceGraphic.positions

Get or set the vertex positions

SurfaceGraphic.right_click_menu

SurfaceGraphic.rotation

Orientation of the graphic as a quaternion

SurfaceGraphic.supported_events

events supported by this graphic

SurfaceGraphic.visible

Whether the graphic is visible

SurfaceGraphic.world_object

Associated pygfx WorldObject.

Methods#

SurfaceGraphic.add_axes()

Add axes onto this Graphic

SurfaceGraphic.add_event_handler(*args)

Register an event handler.

SurfaceGraphic.clear_event_handlers()

clear all event handlers added to this graphic

SurfaceGraphic.remove_event_handler(...)

remove a registered event handler

SurfaceGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.