The class MainWindow¶
The class MainWindow represents the main window interface of the program image_viewer.py. The specification is incomplete, since you will add your own methods.
- class image_viewer.MainWindow¶
Inherits from
PyQt5.QtWidgets.QMainWindowMain instance attributes (menus are not listed):
- scene¶
A container of all objects to rendered in the interface (
scene.Scene)
- central¶
The central widget of the the window (
central.Central)
Main instance methods:
Creates the menu bar and invokes all other class methods that create menus to be added in the bar (these methods are not specified in this document)
- add_item_interface(name, cat)¶
Adds an item of the given name to the corresponding selection menu of the interface (images, surfaces or volumes)
- render_current_image()¶
Renders the current image in the matplotlib canvas of the central widget