ViewingAreaDockWidget

class prism._gui.widgets.ViewingAreaDockWidget(main_window_obj, *args, **kwargs)[source]

Defines the ViewingAreaDockWidget class for the Projection GUI.

This class provides the user with an MDI (Multiple Document Interface) area using the QMdiArea class. All drawn projection figures live in this area and can be interacted with.

__init__(main_window_obj, *args, **kwargs)[source]

Initialize an instance of the ViewingAreaDockWidget class.

Parameters:

main_window_obj (MainViewerWindow object) – Instance of the MainViewerWindow class that acts as the parent of this dock widget.

Other Parameters:
 
  • args (positional arguments) – The positional arguments that must be passed to the constructor of the QDockWidget class.
  • kwargs (keyword arguments) – The keyword arguments that must be passed to the constructor of the QDockWidget class.
closeEvent(*args, **kwargs)[source]

Special closeEvent() event that automatically performs some clean-up operations before the viewing area closes.

create_projection_toolbar()[source]

Creates the top-level toolbar of the viewing area, primarily used for manipulating the area subwindows.

get_default_dock_positions()[source]

Returns the default positions of all dock widgets connected to the viewing area.

init()[source]

Sets up the projection viewing area dock widget after it has been initialized.

This function is mainly responsible for enabling the OverviewDockWidget to properly interact and control the projection figures that have been drawn.

save_view()[source]

Saves the current view of the viewing area to file.

This function acts as a Qt slot.

set_default_dock_positions()[source]

Sets the postions of all dock widgets connected to the viewing area to their default positions.

This function acts as a Qt slot.