ColabSegNapariWidget#
- class ColabSegNapariWidget(viewer, colabsegdata_instance, display_pixel_size=None)#
A widget for napari viewer to manage and visualize data from ColabSegData instances.
- Parameters:
- viewernapari.Viewer
The napari viewer instance to which this widget will be added.
- colabsegdata_instance
colabseg.new_gui_functions.ColabSegData
, optional An instance of ColabSegData containing the data to be visualized.
- Attributes:
- viewernapari.Viewer
The napari viewer instance.
- pixel_sizefloat
Pixel size of the data, obtained from colabsegdata_instance.
- dropdownmagicgui.widgets.ComboBox
Dropdown menu for selecting clusters to highlight.
- _previous_selectionstr or None
The previously selected cluster name.
Attributes
Return type annotation for the parameter represented by the widget.
Whether widget is enabled (editable).
Return the current height of the widget.
Return a label to use for this widget when present in Containers.
Whether widgets are presented with labels.
Return the layout of the widget.
Return margin between the content and edges of the container.
Get the maximum height of the widget.
Get the maximum width of the widget.
Get the minimum height of the widget.
Get the minimum width of the widget.
Return native backend widget.
Return options currently being used in this widget.
Orientation of the widget.
Return
inspect.Parameter.kind
represented by this widget.Return the parent widget.
Signal emitted when the parent of the widget changes.
Return the root native backend widget.
Get the tooltip for this widget.
Return whether widget is visible.
Return type of widget.
Return the current width of the widget.
Methods
ColabSegNapariWidget.append
(value)S.append(value) -- append value to the end of the sequence
Return state of widget as dict.
Close widget.
ColabSegNapariWidget.count
(value)Exports the point cloud data currently visualized in the napari viewer.
ColabSegNapariWidget.extend
(values)S.extend(iterable) -- extend sequence by appending elements from the iterable
ColabSegNapariWidget.from_callable
(obj[, ...])Create a Container widget from a callable object.
ColabSegNapariWidget.from_signature
(sig, ...)Create a Container widget from an inspect.Signature object.
Hide widget.
ColabSegNapariWidget.index
(value[, start, stop])Return index of a specific widget instance (or widget name).
ColabSegNapariWidget.insert
(key, widget)Insert widget at
key
.Loads and visualizes data from a given ColabSegData instance.
ColabSegNapariWidget.pop
([index])Raise IndexError if list is empty or index is out of range.
ColabSegNapariWidget.remove
(value)Remove a widget instance (may also be string name of widget).
Return an RGBA (MxNx4) numpy array bitmap of the rendered widget.
Reset choices for all Categorical subWidgets to the default state.
S.reverse() -- reverse IN PLACE
ColabSegNapariWidget.show
([run])Show widget.
Context manager to show the widget.
ColabSegNapariWidget.update
([mapping])Update the parameters in the widget from a mapping, iterable, or kwargs.