class neuroglancer.viewer_state.SegmentationLayer(Layer)

Public members

SegmentationLayer(*args, **kwargs)

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

source: LayerDataSources
starred_segments: StarredSegments
visible_segments
segments
equivalences
hide_segment_zero: bool
hideSegmentZero: bool
hover_highlight: bool
hoverHighlight: bool
base_segment_coloring: bool
baseSegmentColoring: bool
selected_alpha: float
selectedAlpha: float
not_selected_alpha: float
notSelectedAlpha: float
object_alpha: float
objectAlpha: float
saturation: float
ignore_null_visible_set: bool
ignoreNullVisibleSet: bool
skeleton_rendering: SkeletonRenderingOptions
skeletonRendering: SkeletonRenderingOptions
skeleton_shader
skeletonShader
color_seed: int
colorSeed: int
cross_section_render_scale: float
crossSectionRenderScale: float
mesh_render_scale: float
meshRenderScale: float
mesh_silhouette_rendering: float
meshSilhouetteRendering: float
segment_query: str | None
segmentQuery: str | None
segment_colors: Map[uint64, str]
segmentColors: Map[uint64, str]
segment_default_color: str | None
segmentDefaultColor: str | None
segment_html_color_dict

Returns a dictionary whose keys are segments and values are the 6-digit hex strings representing the colors of those segments given the current color seed

linked_segmentation_group: str | None
linkedSegmentationGroup: str | None
linked_segmentation_color_group
linkedSegmentationColorGroup
static interpolate(a, b, t)
type: str | None
local_dimensions: CoordinateSpace
localDimensions: CoordinateSpace
local_position: NDArray[float32] | None
localPosition: NDArray[float32] | None
local_velocity: Map[str, DimensionPlaybackVelocity]
localVelocity: Map[str, DimensionPlaybackVelocity]
tab: str | None
panels: List[LayerSidePanelState]
pick: bool | None
tool_bindings: Map[str, Tool]
tool: Tool | None
to_json()
__eq__(other)

Return self==value.

__repr__()

Return repr(self).

annotation_color: str | None
annotationColor: str | None