Image List¶
ImageListView¶
-
class
datavis.views.ImageListView(model, parent=None, **kwargs)¶ Base class to display a list of images.
Basically, it will contain a left panel with the list, and a right panel with ImagePanel (top) and InfoPanel (bottom).
-
__init__(model, parent=None, **kwargs)¶ Creates an ImageListView instance.
- Parameters
model – Input
TableModelmodelparent – Specifies the parent widget to which this ImageListView will belong. If None, then the ImageListView is created with no parent.
Keyword Args: Keyword arguments for the internal
ImageView
-
onItemChanged(index)¶ Slot for sigCurrentRowChanged signal
-
setModel(model)¶ Set the model used for the left panel.
- Parameters
model – New
TableModelmodel that will be set. This model should implement the getModel() method that should return aImageModelused for the Image panel.
-
updateImagePanel()¶ Update the information of the image panel. Implement this method in subclasses for image data visualization
-
VolumeListView¶
-
class
datavis.views.VolumeListView(model, parent=None, **kwargs)¶ View that will show a list of volume images
-
__init__(model, parent=None, **kwargs)¶ Construct a VolumeListView instance
- Parameters
parent – The parent widget
model –
TableModel. The model must provide aVolumeModelin getModel() method.
- Keyword Arguments
kwargs – The keyword arguments for the internal
VolumeViewwidget.
-
setModel(model)¶ Reimplemented from
ImageListView.The model must provide a
VolumeModel>in getModel() method
-
updateImagePanel()¶ Reimplemented from
ImageListView
-
DualImageListView¶
-
class
datavis.views.DualImageListView(model, parent=None, **kwargs)¶ View that will show a list of images. The ImagePanel contains two ImageView: (Left) original image that is load from the input list. (Right) the same image after some modification is applied
-
__init__(model, parent=None, **kwargs)¶ Construct an DualImageListView instance.
- Parameters
parent – The parent widget
model –
ListModel. The list of images
- Keyword Arguments
arguments for the two ImageView (kwargs) –
options – (dict) Dynamic widget options
method – Function to invoke when the apply button is clicked
-
updateImagePanel()¶ Reimplemented from
ImageListView
-
ImageMaskListView¶
-
class
datavis.views.ImageMaskListView(model, parent=None, **kwargs)¶ View that will show a list of images. The ImagePanel contains a circular or rectangular mask depending on the type of mask configured.
-
__init__(model, parent=None, **kwargs)¶ Construct an ImageMaskListView instance.
- Parameters
parent – Specifies the parent widget to which this ImageMaskListView will belong. If None, then the ImageMaskListView is created with no parent.
model –
TableModel
- Keyword Arguments
kwargs – The keyword arguments for the internal
ImageView.
-
setMaskColor(color)¶ Set the mask color.
- Parameters
color – (str) The color in #ARGB format. Example: #22AAFF00 or (QColor)
-
updateImagePanel()¶ Reimplemented from
ImageListView
-