ViewportInteractor#

ViewportInteractor manages VTK interaction and rendering for the point-cloud and fitted-model panes. Access it through MosaicData.viewport.

class ViewportInteractor(vtk_widget, panes)[source]#

Bases: QObject

Viewport-wide interaction state shared across DataContainerInteractor panes.

Interaction Modes and Selection#

Use ViewportInteractor.set_mode() with a ViewerModes value to change how the pointer interacts with the active pane. The current_target attribute identifies that pane.

ViewportInteractor.set_mode(viewer_mode)

Dispatch entry for interaction modes.

ViewportInteractor.set_target(pane)

Set the active interaction target and reset to viewing mode.

ViewportInteractor.swap_target()

Cycle to the next registered pane, leaving the viewport in viewing mode.

ViewportInteractor.highlight_clusters_from_selected_points()

Promote point-selection to cluster-selection on the active pane.

Visualization#

ViewportInteractor.set_coloring_mode(mode)

Apply a coloring mode to every pane and render once.

ViewportInteractor.visibility_unselected([...])

Toggle visibility for geometries not selected on each pane.

ViewportInteractor.refresh_lod([force])

Recompute interaction-LOD budgets across all panes.

ViewportInteractor.render([defer_render])

Synchronize VTK actors and pane tree widgets, then render.