oursin.lines

Lines

Functions

clear

Clear all Line objects that have been created

create

Create Line objects

delete

Deletes lines

Classes

Line

class Line(positions=[[0.0, 0.0, 0.0]], color=[1, 1, 1])[source]

Bases: object

delete()[source]

Deletes lines

Examples >>>l1.delete()

set_positions(positions)[source]

Set the positions of line renderer

Parameters

positionlist of vector3 [[ap,ml,dv],[ap,ml,dv]]

vertex positions of the line in the ReferenceAtlas space (um)

Examples

>>>l1.set_position([[0, 0, 0],[13200,11400,8000]])

set_color(color)[source]

Set the color of line renderer

Parameters

colorstring hex color

new color of the line

Examples

>>>l1.set_color(‘#000000’)

create(n)[source]

Create Line objects

Parameters

nint

Number of objects to create

delete(lines_list)[source]

Deletes lines

Parameters

lines_listlist of Line objects

list of lines to be deleted

Examples

>>> lines.delete()
clear()[source]

Clear all Line objects that have been created