ViewingAreaDockWidget¶
-
class
prism._gui.widgets.ViewingAreaDockWidget(main_window_obj, *args, **kwargs)[source]¶ Defines the
ViewingAreaDockWidgetclass for the Projection GUI.This class provides the user with an MDI (Multiple Document Interface) area using the
QMdiAreaclass. 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
ViewingAreaDockWidgetclass.Parameters: main_window_obj (
MainViewerWindowobject) – Instance of theMainViewerWindowclass 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
QDockWidgetclass. - kwargs (keyword arguments) – The keyword arguments that must be passed to the constructor of the
QDockWidgetclass.
- args (positional arguments) – The positional arguments that must be passed to the constructor of
the
-
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
OverviewDockWidgetto properly interact and control the projection figures that have been drawn.
-