LineGraphic¶

LineGraphic¶

Constructor¶

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

Create a line Graphic, 2d or 3d

Properties¶

LineGraphic.children

Return the children of the WorldObject.

LineGraphic.name

str name reference for this item

LineGraphic.position

position of the graphic, [x, y, z]

LineGraphic.position_x

x-axis position of the graphic

LineGraphic.position_y

y-axis position of the graphic

LineGraphic.position_z

z-axis position of the graphic

LineGraphic.rotation

LineGraphic.visible

Access or change the visibility.

LineGraphic.world_object

Associated pygfx WorldObject.

Methods¶

LineGraphic.add_linear_region_selector([padding])

Add a LinearRegionSelector.

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

Adds a linear selector.

LineGraphic.link(event_type, target, ...[, ...])

Link this graphic to another graphic upon an event_type to change the feature of a target graphic.

LineGraphic.reset_feature(feature)

LineGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

LineGraphic.set_feature(feature, new_data[, ...])