glenoidplanefitting.widgets.visualisation module
Widgets for show the results of plane fitting.
- glenoidplanefitting.widgets.visualisation.add_vtk_source(renderer, source, linewidth=1.0, opacity=1.0, wireframe=False, colour=None)[source]
simplifies adding a vtk geometry source to a renderer
- Parameters
renderer – a vtk renderer to add to
source – a vtk geometry source
- glenoidplanefitting.widgets.visualisation.render_window_common(renderer, window_name)[source]
Creates and starts a render window and interactor.
- Parameters
renderer – A vtk renderer to add to the render window
window_name – A name for the window
- glenoidplanefitting.widgets.visualisation.renderer_common(bone, background_colour=None)[source]
Initialises a vtk renderer and adds the bone model
- glenoidplanefitting.widgets.visualisation.vis_fried(bone, cross1, cross2, glenoid1, result, line_width=5)[source]
Visualise the lines resulting from the friedman method.
- Parameters
cross2 (cross1,) – The end points of the line crossing the glenoid
result (glenoid1,) – The end points of the line defining the glenoid version
- glenoidplanefitting.widgets.visualisation.vis_planes(bone, planes, points1=False, points2=False, resolution=1, plane_size=200.0, vary_plane_colour=False, point_size=5.0)[source]
Visualisation for plane fitting methods
- Parameters
bone – The model surface model
planes – a list of planes, as returned by the plane fitting methods in algorithms.plane_fitting
- glenoidplanefitting.widgets.visualisation.vis_vault(bone, cross1, cross2, glenoid1, result, line_width=5)[source]
Visualise the lines resulting from the vault method.
- Parameters
cross2 (cross1,) – The end points of the line crossing the glenoid
result (glenoid1,) – The end points of the line defining the glenoid version