sksurgerytrackervisualisation.overlay_app.overlay module

Main loop for tracking visualisation

class sksurgerytrackervisualisation.overlay_app.overlay.OverlayApp(config)[source]

Bases: sksurgeryutils.common_overlay_apps.OverlayBaseApp

Inherits from OverlayBaseApp, adding code to move vtk models based on input from a scikitsurgery tracker. Adds a function to detect a key press event, (“g”) and add points to a point cloud.

key_press_event(_obj_not_used, _ev_not_used)[source]

Handles a key press event

update()[source]

Update the background renderer with a new frame, move the model and render