Implementing the Image Fusion GUI » History » Revision 1
Revision 1/3
| Next »
Peter Qian, 24/07/2021 03:17 PM
Implementing the Image Fusion GUI¶
View>mainpage>MainPage.py
This file is responsible for displaying the main window of the OnkoDICOM program. In order to implement both the button that opens the image fusion window and the tab to which the user can view the image fusion, the tab must be implemented here. Due to the similar nature of the DICOMView.py, the code was copied and refactored so that the mainpage folder contains an ImageFusionView.py. This file is responsible for displaying the Image Fusion tab.
To create the button to activate Image Fusion, a button is created in the ActionHandler.py file within the Controller folder.
# Image Fusion Action
self.icon_image_fusion = QtGui.QIcon()
self.icon_image_fusion.addPixmap(
QtGui.QPixmap(resource_path("res/images/btn-icons/image_fusion_purple_icon.png")),
QtGui.QIcon.Normal,
QtGui.QIcon.On
)
self.action_image_fusion = QtGui.QAction()
self.action_image_fusion.setIcon(self.icon_image_fusion)
self.action_image_fusion.setIconVisibleInMenu(True)
self.action_image_fusion.setText("Image Fusion")
self.action_image_fusion.triggered.connect(self.image_fusion_handler)
Has been added on line 158. Once the button is pressed, the function "image_fusion_handler", will be constructed to open the patient window for selecting an image to fuse with.
Updated by Peter Qian almost 4 years ago · 1 revisions