class neuroglancer.viewer_state.ViewerState

Complete Neuroglancer viewer state.

This includes all state that is normally encoded into a Neuroglancer URL.

Public members

title: str | None
dimensions: CoordinateSpace
relative_display_scales: Map[str, float] | None
relativeDisplayScales: Map[str, float] | None
display_dimensions: List[str] | None
displayDimensions: List[str] | None
position: NDArray[float32] | None
voxel_coordinates: NDArray[float32] | None
velocity: Map[str, DimensionPlaybackVelocity]
cross_section_orientation: ndarray[tuple[4], float32] | None
crossSectionOrientation: ndarray[tuple[4], float32] | None
cross_section_scale: float | None
crossSectionScale: float | None
cross_section_depth: float | None
crossSectionDepth: float | None
projection_scale: float | None
projectionScale: float | None
projection_depth: float | None
projectionDepth: float | None
projection_orientation: ndarray[tuple[4], float32] | None
projectionOrientation: ndarray[tuple[4], float32] | None
perspectiveOrientation: ndarray[tuple[4], float32] | None
perspective_orientation: ndarray[tuple[4], float32] | None
show_slices: bool
showSlices: bool
hide_cross_section_background_3d: bool
hideCrossSectionBackground3D: bool
show_axis_lines: bool
showAxisLines: bool
wire_frame: bool
wireFrame: bool
enable_adaptive_downsampling: bool
enableAdaptiveDownsampling: bool
show_scale_bar: bool
showScaleBar: bool
show_default_annotations: bool
showDefaultAnnotations: bool
gpu_memory_limit: int | None
gpuMemoryLimit: int | None
system_memory_limit: int | None
systemMemoryLimit: int | None
concurrent_downloads: int | None
concurrentDownloads: int | None
prefetch: bool
layers: Layers
layout: StackLayout | LayerGroupViewer | DataPanelLayout
cross_section_background_color: str | None
crossSectionBackgroundColor: str | None
projection_background_color: str | None
projectionBackgroundColor: str | None
selected_layer: SelectedLayerState
selectedLayer: SelectedLayerState
statistics: StatisticsDisplayState
help_panel: HelpPanelState
helpPanel: HelpPanelState
layer_list_panel: LayerListPanelState
layerListPanel: LayerListPanelState
partial_viewport: ndarray[tuple[4], float64]
partialViewport: ndarray[tuple[4], float64]
tool_bindings: Map[str, Tool]
toolBindings: Map[str, Tool]
tool_palettes: Map[str, ToolPalette]
toolPalettes: Map[str, ToolPalette]
selection: DataSelectionState
static interpolate(a, b, t)
ViewerState(json_data=None, _readonly=False, **kwargs)

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

to_json()
__eq__(other)

Return self==value.

__repr__()

Return repr(self).