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.scale

(x, y, z) scaling factor

VectorsGraphic.supported_events

events supported by this graphic

VectorsGraphic.tooltip_format

set a custom tooltip format function which takes a pick_info dict and returns a str to be displayed in the tooltip

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.format_pick_info(pick_info)

Takes a pygfx.PointerEvent and returns formatted pick info.

VectorsGraphic.map_model_to_world(position)

map position from model (data) space to world space, basically applies the world affine transform

VectorsGraphic.map_world_to_model(position)

map position from world space to model (data) space, basically applies the inverse world affine transform

VectorsGraphic.remove_event_handler(...)

remove a registered event handler

VectorsGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.