layers
ngtools.layers
A neuroglancer scene with a programmatic interface.
LayerFactory
Layer
Bases:
Base class for all layers.
See ImageLayer, SegmentationLayer, MeshLayer for
keyword-parameters specific to these layers types.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
json_data
|
|
Either a Layer (or its JSON representation), or a data source (or its JSON representation). |
required |
Other Parameters:
| Name | Type | Description |
|---|---|---|
type |
(
|
Layer type -- guessed from source by default. |
source |
[list of] LayerDataSource | str
|
Data source. Except if layer is a |
layer_dimensions |
|
Local dimensions specific to the layer. |
layer_position |
|
Position within the local dimensions. |
local_velocity |
|
Speed for playback along local dimensions. |
tab |
|
|
panels |
|
|
pick |
|
|
tool_bindings |
|
Key binding to tools, specific to this layer. |
tool |
|
Active tool (or tool name). |
ImageLayer
Bases: , ,
Image layer.
See Layer for keyword parameters common to all layers.
Other Parameters:
| Name | Type | Description |
|---|---|---|
source |
[list of] LayerDataSource | str
|
|
shader |
|
|
shader_controls |
|
|
opacity |
|
|
blend |
(
|
|
volume_rendering_mode |
|
|
volume_rendering_gain |
|
|
volume_rendering_depth_samples |
|
|
cross_section_render_scale |
|
|
SegmentationLayer
Bases: , ,
Segmentation layer.
See Layer for keyword parameters common to all layers.
Other Parameters:
| Name | Type | Description |
|---|---|---|
source |
[list of] LayerDataSource | str
|
|
starred_segments |
|
|
equivalences |
|
|
hide_segment_zero |
|
|
hover_highlight |
|
|
base_segment_coloring |
|
|
selected_alpha |
|
|
not_selected_alpha |
|
|
object_alpha |
|
|
saturation |
|
|
ignore_null_visible_set |
|
|
skeleton_rendering |
|
shader : str, optional shader_controls : dict[str, float | dict | ng.InvlerpParameters | ng.TransferFunctionParameters] - InvlerpParameters: range: tuple[float, float] window: tuple[float, float] channel: list[int] - TransferFunctionParameters: window: tuple[float, float] channel: list[int] controlPoints : list[list[float]] defaultColor : str mode2d : {"lines", "lines_and_points"}, optional line_width2d : float, default=2 mode3d: {"lines", "lines_and_points"}, optional line_width3d : float, default=3 |
color_seed |
|
|
cross_section_render_scale |
|
|
mesh_render_scale |
|
|
mesh_silhouette_rendering |
|
|
segment_query |
|
|
segment_colors |
|
|
segment_default_color |
|
|
linked_segmentation_group |
|
|
linked_segmentation_color_group |
|
|
SkeletonLayerFactory
Bases:
Factory for skeletons.
SkeletonLayer
TractLayer
MeshLayer
SingleMeshLayer
Bases: , ,
Single mesh layer.
See Layer for keyword parameters common to all layers.
See also: MeshLayer, MultiscaleMeshLayer.
Other Parameters:
| Name | Type | Description |
|---|---|---|
source |
[list of] LayerDataSource | str
|
|
vertex_attribute_sources |
|
|
shader |
|
|
vertex_attribute_names |
|
|
MultiscaleMeshLayer
AnnotationLayer
Bases: , ,
Annotation layer.
See Layer for keyword parameters common to all layers.
Other Parameters:
| Name | Type | Description |
|---|---|---|
source |
[list of] LayerDataSource | str
|
|
annotations |
|
|
annotation_properties |
|
id : str type : str description : str default : float | str enum_values : list[int | str] enum_labels : list[str] |
annotation_relationships |
|
|
linked_segmentation_layer |
|
|
filter_by_segmentation |
|
|
ignore_null_segment_filter |
|
|
shader |
|
|
shader_controls |
|
|
TractAnnotationLayer
LocalAnnotationLayer
PointAnnotationLayer
Layers
Bases:
List of named layers.