Layers controls#
Dependencies diagram (related napari
modules)#
graph LR accTitle: Dependencies between modules in the napari Layers controls UI section accDescr: Diagram showing the dependencies between the modules involved in the definition of the napari Layers controls UI section napari._qt(napari._qt) napari._qt --> napari._qt.qt_main_window click napari._qt "https://github.com/napari/napari/tree/main/napari/_qt/__init__.py" _blank napari._qt.layer_controls(napari._qt.layer_controls) napari._qt.layer_controls --> napari._qt.layer_controls.qt_layer_controls_container click napari._qt.layer_controls "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/__init__.py" _blank napari._qt.layer_controls.qt_colormap_combobox(napari._qt.layer_controls.qt_colormap_combobox) click napari._qt.layer_controls.qt_colormap_combobox "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_colormap_combobox.py" _blank napari._qt.layer_controls.qt_image_controls(napari._qt.layer_controls.qt_image_controls) napari._qt.layer_controls.qt_image_controls --> napari._qt.layer_controls.qt_image_controls_base napari._qt.layer_controls.qt_image_controls --> napari.layers click napari._qt.layer_controls.qt_image_controls "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_image_controls.py" _blank napari._qt.layer_controls.qt_image_controls_base(napari._qt.layer_controls.qt_image_controls_base) napari._qt.layer_controls.qt_image_controls_base --> napari._qt.layer_controls.qt_colormap_combobox napari._qt.layer_controls.qt_image_controls_base --> napari._qt.layer_controls.qt_layer_controls_base napari._qt.layer_controls.qt_image_controls_base --> napari._qt.widgets.qt_range_slider_popup napari._qt.layer_controls.qt_image_controls_base --> napari.layers click napari._qt.layer_controls.qt_image_controls_base "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_image_controls_base.py" _blank napari._qt.layer_controls.qt_labels_controls(napari._qt.layer_controls.qt_labels_controls) napari._qt.layer_controls.qt_labels_controls --> napari._qt.layer_controls.qt_layer_controls_base napari._qt.layer_controls.qt_labels_controls --> napari._qt.widgets.qt_mode_buttons napari._qt.layer_controls.qt_labels_controls --> napari.layers click napari._qt.layer_controls.qt_labels_controls "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_labels_controls.py" _blank napari._qt.layer_controls.qt_layer_controls_base(napari._qt.layer_controls.qt_layer_controls_base) napari._qt.layer_controls.qt_layer_controls_base --> napari._qt.widgets.qt_mode_buttons napari._qt.layer_controls.qt_layer_controls_base --> napari.layers click napari._qt.layer_controls.qt_layer_controls_base "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_layer_controls_base.py" _blank napari._qt.layer_controls.qt_layer_controls_container(napari._qt.layer_controls.qt_layer_controls_container) napari._qt.layer_controls.qt_layer_controls_container --> napari._qt.layer_controls.qt_image_controls napari._qt.layer_controls.qt_layer_controls_container --> napari._qt.layer_controls.qt_labels_controls napari._qt.layer_controls.qt_layer_controls_container --> napari._qt.layer_controls.qt_points_controls napari._qt.layer_controls.qt_layer_controls_container --> napari._qt.layer_controls.qt_shapes_controls napari._qt.layer_controls.qt_layer_controls_container --> napari._qt.layer_controls.qt_surface_controls napari._qt.layer_controls.qt_layer_controls_container --> napari._qt.layer_controls.qt_tracks_controls napari._qt.layer_controls.qt_layer_controls_container --> napari._qt.layer_controls.qt_vectors_controls napari._qt.layer_controls.qt_layer_controls_container --> napari.layers click napari._qt.layer_controls.qt_layer_controls_container "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_layer_controls_container.py" _blank napari._qt.layer_controls.qt_points_controls(napari._qt.layer_controls.qt_points_controls) napari._qt.layer_controls.qt_points_controls --> napari._qt.layer_controls.qt_layer_controls_base napari._qt.layer_controls.qt_points_controls --> napari._qt.widgets.qt_color_swatch napari._qt.layer_controls.qt_points_controls --> napari._qt.widgets.qt_mode_buttons napari._qt.layer_controls.qt_points_controls --> napari.layers click napari._qt.layer_controls.qt_points_controls "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_points_controls.py" _blank napari._qt.layer_controls.qt_shapes_controls(napari._qt.layer_controls.qt_shapes_controls) napari._qt.layer_controls.qt_shapes_controls --> napari._qt.layer_controls.qt_layer_controls_base napari._qt.layer_controls.qt_shapes_controls --> napari._qt.widgets.qt_color_swatch napari._qt.layer_controls.qt_shapes_controls --> napari._qt.widgets.qt_mode_buttons napari._qt.layer_controls.qt_shapes_controls --> napari.layers click napari._qt.layer_controls.qt_shapes_controls "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_shapes_controls.py" _blank napari._qt.layer_controls.qt_surface_controls(napari._qt.layer_controls.qt_surface_controls) napari._qt.layer_controls.qt_surface_controls --> napari._qt.layer_controls.qt_image_controls_base napari._qt.layer_controls.qt_surface_controls --> napari.layers click napari._qt.layer_controls.qt_surface_controls "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_surface_controls.py" _blank napari._qt.layer_controls.qt_tracks_controls(napari._qt.layer_controls.qt_tracks_controls) napari._qt.layer_controls.qt_tracks_controls --> napari._qt.layer_controls.qt_layer_controls_base napari._qt.layer_controls.qt_tracks_controls --> napari.layers click napari._qt.layer_controls.qt_tracks_controls "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_tracks_controls.py" _blank napari._qt.layer_controls.qt_vectors_controls(napari._qt.layer_controls.qt_vectors_controls) napari._qt.layer_controls.qt_vectors_controls --> napari._qt.layer_controls.qt_layer_controls_base napari._qt.layer_controls.qt_vectors_controls --> napari._qt.widgets.qt_color_swatch napari._qt.layer_controls.qt_vectors_controls --> napari.layers click napari._qt.layer_controls.qt_vectors_controls "https://github.com/napari/napari/tree/main/napari/_qt/layer_controls/qt_vectors_controls.py" _blank napari._qt.qt_main_window(napari._qt.qt_main_window) napari._qt.qt_main_window --> napari._qt.qt_viewer napari._qt.qt_main_window --> napari._qt.widgets.qt_viewer_dock_widget napari._qt.qt_main_window --> napari.viewer click napari._qt.qt_main_window "https://github.com/napari/napari/tree/main/napari/_qt/qt_main_window.py" _blank napari._qt.qt_viewer(napari._qt.qt_viewer) napari._qt.qt_viewer --> napari._qt.layer_controls napari._qt.qt_viewer --> napari._qt.widgets.qt_viewer_dock_widget napari._qt.qt_viewer --> napari.layers click napari._qt.qt_viewer "https://github.com/napari/napari/tree/main/napari/_qt/qt_viewer.py" _blank napari._qt.widgets.qt_color_swatch(napari._qt.widgets.qt_color_swatch) click napari._qt.widgets.qt_color_swatch "https://github.com/napari/napari/tree/main/napari/_qt/widgets/qt_color_swatch.py" _blank napari._qt.widgets.qt_mode_buttons(napari._qt.widgets.qt_mode_buttons) click napari._qt.widgets.qt_mode_buttons "https://github.com/napari/napari/tree/main/napari/_qt/widgets/qt_mode_buttons.py" _blank napari._qt.widgets.qt_range_slider_popup(napari._qt.widgets.qt_range_slider_popup) click napari._qt.widgets.qt_range_slider_popup "https://github.com/napari/napari/tree/main/napari/_qt/widgets/qt_range_slider_popup.py" _blank napari._qt.widgets.qt_splash_screen(napari._qt.widgets.qt_splash_screen) click napari._qt.widgets.qt_splash_screen "https://github.com/napari/napari/tree/main/napari/_qt/widgets/qt_splash_screen.py" _blank napari._qt.widgets.qt_viewer_dock_widget(napari._qt.widgets.qt_viewer_dock_widget) napari._qt.widgets.qt_viewer_dock_widget --> napari._qt.qt_viewer napari._qt.widgets.qt_viewer_dock_widget --> napari.viewer click napari._qt.widgets.qt_viewer_dock_widget "https://github.com/napari/napari/tree/main/napari/_qt/widgets/qt_viewer_dock_widget.py" _blank napari.layers(napari.layers) click napari.layers "https://github.com/napari/napari/tree/main/napari/layers/__init__.py" _blank napari.viewer(napari.viewer) napari.viewer --> napari._qt napari.viewer --> napari._qt.qt_main_window click napari.viewer "https://github.com/napari/napari/tree/main/napari/viewer.py" _blank subgraph module.napari[napari] napari._qt napari.layers napari.viewer end class module.napari subgraphs subgraph module.napari._qt[napari._qt] napari._qt.layer_controls napari._qt.qt_main_window napari._qt.qt_viewer end class module.napari._qt subgraphs subgraph module.napari._qt.layer_controls[napari._qt.layer_controls] napari._qt.layer_controls.qt_colormap_combobox napari._qt.layer_controls.qt_image_controls napari._qt.layer_controls.qt_image_controls_base napari._qt.layer_controls.qt_labels_controls napari._qt.layer_controls.qt_layer_controls_base napari._qt.layer_controls.qt_layer_controls_container napari._qt.layer_controls.qt_points_controls napari._qt.layer_controls.qt_shapes_controls napari._qt.layer_controls.qt_surface_controls napari._qt.layer_controls.qt_tracks_controls napari._qt.layer_controls.qt_vectors_controls end class module.napari._qt.layer_controls subgraphs subgraph module.napari._qt.widgets[napari._qt.widgets] napari._qt.widgets.qt_color_swatch napari._qt.widgets.qt_mode_buttons napari._qt.widgets.qt_range_slider_popup napari._qt.widgets.qt_splash_screen napari._qt.widgets.qt_viewer_dock_widget end class module.napari._qt.widgets subgraphs classDef subgraphs fill:white,strock:black,color:black; classDef default fill:#00c3ff,color:black; linkStyle default stroke:#00c3ff classDef external fill:#ffa600,color:black;
Source code directory layout (related to modules inside napari
)#
napari/
├─layers/
│ └─__init__.py
├─_qt/
│ ├─qt_viewer.py
│ ├─layer_controls/
│ │ ├─qt_image_controls.py
│ │ ├─qt_tracks_controls.py
│ │ ├─qt_labels_controls.py
│ │ ├─qt_layer_controls_container.py
│ │ ├─qt_colormap_combobox.py
│ │ ├─__init__.py
│ │ ├─qt_vectors_controls.py
│ │ ├─qt_image_controls_base.py
│ │ ├─qt_shapes_controls.py
│ │ ├─qt_surface_controls.py
│ │ ├─qt_layer_controls_base.py
│ │ └─qt_points_controls.py
│ ├─__init__.py
│ ├─widgets/
│ │ ├─qt_color_swatch.py
│ │ ├─qt_splash_screen.py
│ │ ├─qt_range_slider_popup.py
│ │ ├─qt_viewer_dock_widget.py
│ │ └─qt_mode_buttons.py
│ └─qt_main_window.py
└─viewer.py