LineCollection¶

LineCollection¶

Constructor¶

LineCollection(data[, z_offset, thickness, ...])

Create a collection of LineGraphic

Properties¶

LineCollection.children

Return the children of the WorldObject.

LineCollection.cmap

LineCollection.cmap_values

LineCollection.graphics

The Graphics within this collection.

LineCollection.name

str name reference for this item

LineCollection.position

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

LineCollection.position_x

x-axis position of the graphic

LineCollection.position_y

y-axis position of the graphic

LineCollection.position_z

z-axis position of the graphic

LineCollection.rotation

LineCollection.visible

Access or change the visibility.

LineCollection.world_object

Associated pygfx WorldObject.

Methods¶

LineCollection.add_graphic(graphic, reset_index)

Add a graphic to the collection.

LineCollection.add_linear_region_selector([...])

Add a LinearRegionSelector

LineCollection.add_linear_selector([...])

Adds a LinearSelector .

LineCollection.link(event_type, target, ...)

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

LineCollection.remove_graphic(graphic, ...)

Remove a graphic from the collection.

LineCollection.reset_feature(feature)

LineCollection.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

LineCollection.set_feature(feature, ...)