pyanno4rt.gui.windows
GUI windows module.
The module aims to provide methods and classes to …
Subpackages
Overview
Plan comparison window for the GUI. |
|
Information window for the GUI. |
|
Logging window for the application. |
|
Plan creation window for the application. |
|
Settings window for the GUI. |
|
Text window for the application. |
|
Tree window for the application. |
|
Main window for the GUI. |
Classes
- class pyanno4rt.gui.windows.CompareWindow(parent=None)[source]
Bases:
PyQt5.QtWidgets.QMainWindow,pyanno4rt.gui.compilations.compare_window.Ui_compare_windowPlan comparison window for the GUI.
This class creates the plan comparison window for the graphical user interface, including some general information on the package.
Overview
Methods position().
close().
Members
- class pyanno4rt.gui.windows.InfoWindow(parent=None)[source]
Bases:
PyQt5.QtWidgets.QMainWindow,pyanno4rt.gui.compilations.info_window.Ui_info_windowInformation window for the GUI.
This class creates the information window for the graphical user interface, including some general information on the package.
Overview
Methods position().
close().
Members
- class pyanno4rt.gui.windows.LogWindow(parent=None)[source]
Bases:
PyQt5.QtWidgets.QMainWindow,pyanno4rt.gui.compilations.log_window.Ui_log_windowLogging window for the application.
This class creates the log window for the graphical user interface, including the output of the logger.
Overview
Methods position().
.
close().
Members
- class pyanno4rt.gui.windows.PlanCreationWindow(parent=None)[source]
Bases:
PyQt5.QtWidgets.QMainWindow,pyanno4rt.gui.compilations.plan_creation_window.Ui_plan_creation_windowPlan creation window for the application.
This class creates a plan creation window for the graphical user interface, including input fields to declare a plan.
Overview
Methods eventFilter(source, event)Customize the event filters.
position().
.
.
Add the CT and segmentation data from a folder.
Add the dose-influence matrix from a folder.
create().
close().
Members
- class pyanno4rt.gui.windows.SettingsWindow(parent=None)[source]
Bases:
PyQt5.QtWidgets.QMainWindow,pyanno4rt.gui.compilations.settings_window.Ui_settings_windowSettings window for the GUI.
This class creates the settings window for the graphical user interface, including some user-definable parameters.
Overview
Methods eventFilter(source, event)Customize the event filters.
position().
.
set_fields(settings).
reset().
.
Members
- class pyanno4rt.gui.windows.TextWindow(parent=None)[source]
Bases:
PyQt5.QtWidgets.QMainWindow,pyanno4rt.gui.compilations.text_window.Ui_text_windowText window for the application.
This class creates a text window for the graphical user interface, including a scrollable text box for display.
Overview
Methods position().
close().
Members
- class pyanno4rt.gui.windows.TreeWindow(title, parent=None)[source]
Bases:
PyQt5.QtWidgets.QMainWindow,pyanno4rt.gui.compilations.tree_window.Ui_tree_windowTree window for the application.
This class creates a tree window for the graphical user interface, including a tree-based table view for dictionaries.
Overview
Methods position().
create_tree_from_dict(data, parent).
show_item_text(tree, item).
.
.
close().
Members
- class pyanno4rt.gui.windows.MainWindow(treatment_plan, application=None)[source]
Bases:
PyQt5.QtWidgets.QMainWindow,pyanno4rt.gui.compilations.main_window.Ui_main_windowMain window for the GUI.
This class creates the main window for the graphical user interface, including logo, labels, and input/control elements.
- Parameters:
treatment_plan (object of class TreatmentPlan) – Instance of the class TreatmentPlan, which provides methods and classes to generate treatment plans.
application (object of class SpyderQApplication) – Instance of the class SpyderQApplication for managing control flow and main settings of the graphical user interface.
Overview
Methods Connect the event signals to the GUI elements.
eventFilter(source, event)Customize the event filters.
mousePressEvent(event)-
set_initial_plan(treatment_plan)Set the initial treatment plan in the GUI.
set_enabled(fieldnames)Enable multiple fields by their names.
set_disabled(fieldnames)Disable multiple fields by their names.
set_zero_line_cursor(fieldnames)Set the line edit cursor positions to zero.
set_styles(key_value_pairs)Set the element stylesheets from key-value pairs.
activate(treatment_plan)Activate a treatment plan instance in the GUI.
load_tpi()Load the treatment plan from a snapshot folder.
save_tpi()Save the treatment plan to a snapshot folder.
drop_tpi()Remove the current treatment plan.
Select a treatment plan.
Initialize the treatment plan.
Configure the treatment plan.
optimize()Optimize the treatment plan.
evaluate()Evaluate the treatment plan.
Visualize the treatment plan.
Update the configuration parameters.
Update the optimization parameters.
Update the evaluation parameters.
Set the configuration parameters.
Set the optimization parameters.
Set the evaluation parameters.
Clear the configuration parameters.
Clear the optimization parameters.
Clear the evaluation parameters.
Transform the configuration fields into a dictionary.
Transform the optimization fields into a dictionary.
Transform the evaluation fields into a dictionary.
Open the plan creation window.
Open the settings window.
Open the information window.
Open the plan comparison window.
open_component_window(name)Open a component window.
Open the plan parameter window.
Open the plan data window.
Open the model data window.
Open the feature map window.
Open the log window.
Open a question dialog.
Add the CT and segmentation data from a folder.
Add the dose-influence matrix from a folder.
Remove the selected component from the instance.
Open a component window.
Add the initial fluence vector from a file.
Add the lower variable bounds from a file.
Add the upper variable bounds from a file.
.
Update the GUI by the initial strategy.
Update the GUI by the initial fluence vector.
Update the GUI by the reference plan.
Update the GUI by the optimization method.
Update the GUI by the solver.
Update the available reference plans.
.
.
Exit the session and close the window.
Members
- eventFilter(source, event)[source]
Customize the event filters.
- Parameters:
source –
…
event –
…
- Return type:
…
- set_initial_plan(treatment_plan)[source]
Set the initial treatment plan in the GUI.
- Parameters:
treatment_plan –
…
- set_disabled(fieldnames)[source]
Disable multiple fields by their names.
- Parameters:
fieldnames –
…
- set_zero_line_cursor(fieldnames)[source]
Set the line edit cursor positions to zero.
- Parameters:
fieldnames –
…
- set_styles(key_value_pairs)[source]
Set the element stylesheets from key-value pairs.
- Parameters:
key_value_pairs –
…
- activate(treatment_plan)[source]
Activate a treatment plan instance in the GUI.
- Parameters:
treatment_plan –
…
- initialize()[source]
Initialize the treatment plan.
- Returns:
Indicator for the success of the initialization.
- Return type:
bool
- configure()[source]
Configure the treatment plan.
- Returns:
Indicator for the success of the configuration.
- Return type:
bool
- optimize()[source]
Optimize the treatment plan.
- Returns:
Indicator for the success of the optimization.
- Return type:
bool
- evaluate()[source]
Evaluate the treatment plan.
- Returns:
Indicator for the success of the evaluation.
- Return type:
bool
- visualize()[source]
Visualize the treatment plan.
- Returns:
Indicator for the success of the visualization.
- Return type:
bool
- transform_configuration_to_dict()[source]
Transform the configuration fields into a dictionary.
- Returns:
Dictionary with the configuration parameters.
- Return type:
dict
- transform_optimization_to_dict()[source]
Transform the optimization fields into a dictionary.
- Returns:
Dictionary with the optimization parameters.
- Return type:
dict