class neuroglancer.viewer_state.LayerDataSources

Public members

LayerDataSources(json_data=None**kwargs)

Initialize self. See help(type(self)) for accurate signature.

__len__(-> int

Returns the length of the list.

__getitem__(key: int-> LayerDataSource

Returns the element at the specified index.

__delitem__(key: int)

Removes the element at the specified index.

__setitem__(key: intvalue: LayerDataSource)
__setitem__(key: slicevalue: Iterable[LayerDataSource])

Assigns to the specified index or slice.

__iter__(-> Iterator[LayerDataSource]

Iterates over the values in the list.

append(value: LayerDataSource)

Appends a value to the end of the list.

extend(values: Iterable[LayerDataSource])

Extends the list with the specified values.

insert(index: intvalue: LayerDataSource)

Inserts the specified value at the specified index.

pop(index: int = -1-> LayerDataSource

Removes and returns the element at the specified index.

to_json()

Returns the representation as a JSON array.

__repr__()

Return repr(self).