Graphic#

Graphic#

Constructor#

Graphic([name, offset, rotation, visible, ...])

Properties#

Graphic.axes

Graphic.block_events

Used to block events for a graphic and prevent recursion.

Graphic.deleted

used to emit an event after the graphic is deleted

Graphic.event_handlers

Registered event handlers.

Graphic.name

Graphic name

Graphic.offset

[x, y, z]

Graphic.right_click_menu

Graphic.rotation

Orientation of the graphic as a quaternion

Graphic.supported_events

events supported by this graphic

Graphic.visible

Whether the graphic is visible

Graphic.world_object

Associated pygfx WorldObject.

Methods#

Graphic.add_axes()

Add axes onto this Graphic

Graphic.add_event_handler(*args)

Register an event handler.

Graphic.clear_event_handlers()

clear all event handlers added to this graphic

Graphic.remove_event_handler(callback, *types)

remove a registered event handler

Graphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

Graphic.share_property(feature)

Graphic.unshare_property(feature)