mphy0026.ui.mphy0026_overlay_app module

Harness to run overlay application.

class mphy0026.ui.mphy0026_overlay_app.OverlaywMainWindow[source]

Bases: QMainWindow

OverlayMainWindow.

add_group_box()[source]

.

add_opacity_slider()[source]

Create a QSlider that controls VTK model opactity

check_position()[source]

Check if overlay model is correctly aligned in x/y with the background.

check_scale()[source]

Check if the overlay is the correct size for the background image.

circle_selected()[source]

Callback

draw_circle()[source]

Draw a circle at random coordinates in the window.

liver_selected()[source]

Callback

reset_models()[source]

Reset models to default

reset_text_labels()[source]

Reset to default

set_opacity(opacity_percent)[source]

Set the opacity for all VTK models

Parameters:

opacity_percent (int) – Target opacity value, in %

set_target_liver()[source]

Set position of target liver.

setup_circle_overlay()[source]

Position overlay sphere

setup_liver_overlay()[source]

Positio overlay liver

setup_overlay()[source]

Setup overlays

setup_target()[source]

Do some setup for the targets.

show_controls_dialog()[source]

.

staticMetaObject = PySide6.QtCore.QMetaObject("OverlaywMainWindow" inherits "QMainWindow": )
update()[source]

Re render the window.

mphy0026.ui.mphy0026_overlay_app.run_overlay()[source]

Run app