Version 23.1.0
lauramurgatroyd
released this
22 May 14:24
·
60 commits
to master
since this release
- Adds a
cilviewer
entrypoint:- This launches a standalone viewer application with a 2D and 3D viewer and allows users to load any image file types we support using the File menu.
- This launches a
StandaloneViewer
instance (standalone_viewer.py
)
- Updates README with how to run standalone viewer app and web viewer, and more image examples
- Raise error if try to add multiple widgets with the same name to CILViewer or CILViewer2D.
- Adds the following base classes to
ui.main_windows.py
:- Add
ViewerMainWindow
andViewerMainWindowWithSessionManagement
- base classes for windows which would house viewers, with methods needed for creating settings dialogs, creating a coordinate settings dockwidget, and loading images. - Add
TwoViewersMainWindow
andTwoViewersMainWindowWithSessionManagement
- baseclasses which create a main window with 2 linked viewers in dockwidgets. TwoViewersMainWindowMixin
- a mixin which provides methods to bothTwoViewersMainWindowWithSessionManagement
andTwoViewersMainWindow
. These methods are for adding viewers to the window, setting them up, linking them and adding a dockwidget for coordinate settings.
- Add
- Adds the following dialogs to
ui.dialogs.py
:ViewerSettingsDialog
- allows user to set downsample size settings and whether to use GPU for volume render.RawInputDialog
- for setting info for loading a raw file including, size of dimensions, data type etc.HDF5InputDialog
- for setting info for loading a HDF5 file, including the dataset name- Unit tests for creating each dialog.
Adds the following widgets toui.qt_widgets.py
: ViewerCoordsDockWidget
- for showing original and downsampled image size and allowing user to select which coord system to show on viewer.
- Adds methods to
CILViewerBase
: setVisualisationDownsampling
(moved out of CILViewer2D)getVisualisationDownsampling
(moved out of CILViewer2D)- Adds methods to
CILViewer
:setVolumeMapper
getVolumeMapper
- Modifies
ImageReader
:- Previously could read only from a file, now can read from memory instead by setting
vtk_image
parameter instead offile_name
parameter. - Add
SetVTKImage
method - Added unit tests to cover providing a VTK image instead of file name
- Previously could read only from a file, now can read from memory instead by setting
- Add methods to
cilviewerHDF5Reader
:- GetOriginalImageAttrs
- GetLoadedImageAttrs
- These methods are the same as those in
ImageReader
to be consistent.