class neuroglancer.viewer_state.CrossSectionMap

Public members

static interpolate(a, b, t)
CrossSectionMap(json_data=None, _readonly=False)

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

clear()

Clears the map.

keys() -> KeysView[str]

Returns a dynamic view of the keys in the map.

values() -> ValuesView[CrossSection]

Returns a dynamic view of the values in the map.

items() -> ItemsView[str, CrossSection]

Returns a dynamic view of the items in the map.

get(key: str) -> CrossSection | None
get(key: str, default: CrossSection) -> CrossSection
get[T](key: str, default: T) -> CrossSection | T

Returns the mapped value, or the specified default.

__len__() -> int

Returns the number of entries in the map.

__getitem__(key: str) -> CrossSection

Returns the mapped value associated with the specified key.

__setitem__(key: str, value: CrossSection)

Sets the specified key to the specified value.

__delitem__(key: str)

Deletes the entry with the specified key.

pop(key: str, /) -> CrossSection
pop(key: str, default: CrossSection, /) -> CrossSection
pop[T](key: str, default: T, /) -> CrossSection | T

Removes and returns the mapped value associated with the specified key.

to_json()
__eq__(other)

Return self==value.

__repr__()

Return repr(self).