.. py:module:: image_viewer The class MainWindow ==================== The class :py:class:`MainWindow` represents the main window interface of the program `image_viewer.py`. The specification is incomplete, since you will add your own methods. .. py:class:: MainWindow() Inherits from :py:class:`PyQt5.QtWidgets.QMainWindow` .. rubric:: Main instance attributes (menus are not listed): .. py:attribute:: scene A container of all objects to rendered in the interface (:py:class:`scene.Scene`) .. py:attribute:: central The central widget of the the window (:py:class:`central.Central`) .. rubric:: Main instance methods: .. py:method:: create_menus() 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) .. py:method:: add_item_interface(name, cat) Adds an item of the given name to the corresponding selection menu of the interface (images, surfaces or volumes) .. py:method:: render_current_image() Renders the current image in the matplotlib canvas of the central widget