VectorsGraphic#

VectorsGraphic#

Constructor#

VectorsGraphic(positions, directions[, ...])

Create graphic that draw vectors.

Properties#

VectorsGraphic.alpha

The opacity of the graphic

VectorsGraphic.alpha_mode

How the alpha is handled by the renderer

VectorsGraphic.axes

VectorsGraphic.block_events

Used to block events for a graphic and prevent recursion.

VectorsGraphic.deleted

used to emit an event after the graphic is deleted

VectorsGraphic.directions

Vector directions

VectorsGraphic.event_handlers

Registered event handlers.

VectorsGraphic.name

Graphic name

VectorsGraphic.offset

[x, y, z]

VectorsGraphic.positions

Vector positions

VectorsGraphic.right_click_menu

VectorsGraphic.rotation

Orientation of the graphic as a quaternion

VectorsGraphic.supported_events

events supported by this graphic

VectorsGraphic.visible

Whether the graphic is visible

VectorsGraphic.world_object

Associated pygfx WorldObject.

Methods#

VectorsGraphic.add_axes()

Add axes onto this Graphic

VectorsGraphic.add_event_handler(*args)

Register an event handler.

VectorsGraphic.clear_event_handlers()

clear all event handlers added to this graphic

VectorsGraphic.remove_event_handler(...)

remove a registered event handler

VectorsGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.