tomwer.gui.visualization.volume_viewer.VolumeViewerWidget.VolumeViewerWidget#

class tomwer.gui.visualization.volume_viewer.VolumeViewerWidget.VolumeViewerWidget(*args, **kwargs)#

A window displaying slices side by side along the three direction with a ‘geometric reference’.

clear()#
Return type:

None

extendPlot(plot_name)#

Extend the requested plot to take most of the space in the widget. If None ‘reset’ the view to equally space the plots and metadata

Parameters:

plot_name (str | None) – None for reset else should be in (‘XY’, ‘XZ’, ‘YZ’)

getCrossHairs()#
Return type:

CrossHairs

getMasterPlot()#

To apply the same colormap to the three plot we need to have a master / driver one. It has been decided arbitrarily to use the

Return type:

TomoPlot2D

getPlots()#
Return type:

dict[str, TomoPlot2D]

getVolumeShape()#
Return type:

tuple[int]

initVolumePreview(volume, message)#

Set display for a new volume before the full volume or slices are loaded.

For HDF5 and VolumeSingleFrame it will allow users to browse the dataset before the full volume or slices subset are loaded. Else we notify the user that some loading is on-going.

resetZooms()#
setLoading(loading)#
setSlices(slices)#
setVolume(volume)#

Defines the volume. Expects to be loaded in memory to avoid freezing the GUI when browsing slices.

setVolumeIdentifier(volume_identifier)#
setVolumeMetadata(metadata, volume_shape)#

Warning: as the call might change the scale it must be called once the data is set.

setVolumeShape(shape)#
Return type:

None

stopPreview()#