LineGraphic#

LineGraphic#

Constructor#

LineGraphic(data[, thickness, colors, ...])

Create a line Graphic, 2d or 3d

Properties#

LineGraphic.axes

LineGraphic.block_events

Used to block events for a graphic and prevent recursion.

LineGraphic.cmap

Control the cmap, cmap transform, or cmap alpha

LineGraphic.colors

Get or set the colors data

LineGraphic.data

Get or set the vertex positions data

LineGraphic.deleted

used to emit an event after the graphic is deleted

LineGraphic.event_handlers

Registered event handlers.

LineGraphic.name

Graphic name

LineGraphic.offset

[x, y, z]

LineGraphic.right_click_menu

LineGraphic.rotation

Orientation of the graphic as a quaternion

LineGraphic.supported_events

events supported by this graphic

LineGraphic.thickness

line thickness

LineGraphic.visible

Whether the graphic is visible

LineGraphic.world_object

Associated pygfx WorldObject.

Methods#

LineGraphic.add_axes()

Add axes onto this Graphic

LineGraphic.add_event_handler(*args)

Register an event handler.

LineGraphic.add_linear_region_selector([...])

Add a LinearRegionSelector.

LineGraphic.add_linear_selector([selection, ...])

Adds a linear selector.

LineGraphic.add_rectangle_selector([selection])

Add a RectangleSelector.

LineGraphic.clear_event_handlers()

clear all event handlers added to this graphic

LineGraphic.remove_event_handler(callback, ...)

remove a registered event handler

LineGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

LineGraphic.share_property(property)

share a property from another graphic.

LineGraphic.unshare_property(property)

unshare a shared property.