pwem.viewers.mdviewer.volumeViewer module

class pwem.viewers.mdviewer.volumeViewer.CustomScrollBar[source]

Bases: QScrollBar

Class to custom the scrollbar widget

wheelEvent(event)[source]

Handle the mouse wheel event

class pwem.viewers.mdviewer.volumeViewer.CustomWidget(data, text='', autocontrast=False, gaussianBlurFilter=False)[source]

Bases: QWidget

Class to custom the table cell widget

getData()[source]

Return the content data

getId()[source]

Return the widget id

getValue()[source]

Return the image path

getWidgetContent()[source]

Return the widget content

widgetType()[source]

Return the type of the widget content

class pwem.viewers.mdviewer.volumeViewer.VolumeViewer(filePath)[source]

Bases: QMainWindow

The VolumeViewer show the data as a table

addSlice(sliceData, row, col, index)[source]

This method converts the volume slice to a PIL image and displays it in the table view using a custom widget (CustomWidget)

applyAutocontrast()[source]

Apply autocontrast to images

gaussianBlurFilter()[source]

Apply a gaussian blur filter to the images

getZoom()[source]
loadVolume()[source]

This method reads the volume data from the selected file and calls showVolume to display it.

openFile()[source]

This method uses QFileDialog to open a volume file (.stk or .mrc).

resizeEvent(event)[source]

Handle the resize event and trigger a redraw of the volume slices when resizing the window

showVolume()[source]

This method sets up the table view based on the volume data

pwem.viewers.mdviewer.volumeViewer.launchViewer(filePath)[source]