PolygonGraphic#

PolygonGraphic#

Constructor#

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

Create a polygon mesh graphic.

Properties#

PolygonGraphic.alpha

The opacity of the graphic

PolygonGraphic.alpha_mode

How the alpha is handled by the renderer

PolygonGraphic.axes

PolygonGraphic.block_events

Used to block events for a graphic and prevent recursion.

PolygonGraphic.clim

get or set the colormap limits

PolygonGraphic.cmap

get or set the cmap

PolygonGraphic.colors

Get or set the colors

PolygonGraphic.data

get or set the polygon vertex data

PolygonGraphic.deleted

used to emit an event after the graphic is deleted

PolygonGraphic.event_handlers

Registered event handlers.

PolygonGraphic.indices

Get or set the vertex indices

PolygonGraphic.mapcoords

get or set the mapcoords

PolygonGraphic.mode

get mesh rendering mode

PolygonGraphic.name

Graphic name

PolygonGraphic.offset

[x, y, z]

PolygonGraphic.plane

Get or set the current slice plane.

PolygonGraphic.positions

Get or set the vertex positions

PolygonGraphic.right_click_menu

PolygonGraphic.rotation

Orientation of the graphic as a quaternion

PolygonGraphic.supported_events

events supported by this graphic

PolygonGraphic.visible

Whether the graphic is visible

PolygonGraphic.world_object

Associated pygfx WorldObject.

Methods#

PolygonGraphic.add_axes()

Add axes onto this Graphic

PolygonGraphic.add_event_handler(*args)

Register an event handler.

PolygonGraphic.clear_event_handlers()

clear all event handlers added to this graphic

PolygonGraphic.remove_event_handler(...)

remove a registered event handler

PolygonGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.