MosaicData#

class MosaicData(vtk_widget)[source]#

Bases: object

GUI application state backed by a headless Session.

Parameters:
vtk_widgetVTKWidget

VTK widget instance for 3D visualization.

Attributes

MosaicData.shape

Methods

MosaicData.activate_picking_mode()

MosaicData.activate_viewing_mode()

Activate viewing mode for all containers.

MosaicData.format_datalist([type, ...])

Format data list for dialog display.

MosaicData.get_tree_state([type])

Get the tree state (group structure) for a container.

MosaicData.highlight_clusters_from_selected_points()

MosaicData.load_session(filename)

Load application state from file.

MosaicData.open_file(filename[, offset, ...])

Open a file and register new geometries with the GUI.

MosaicData.refresh_actors()

Reinitialize all VTK actors to accommodate render setting changes.

MosaicData.refresh_lod()

Recompute interaction-LOD budgets from current settings.

MosaicData.register_session_hook(collect, ...)

Register callbacks for session save/load.

MosaicData.reset()

Reset the state of the class instance.

MosaicData.set_coloring_mode(mode)

MosaicData.swap_area_picker()

Toggle area picker between data and models containers.

MosaicData.to_file(filename[, sections])

Save current application state to file.

MosaicData.visibility_unselected([visible])

Hide clusters and models that are not selected.

activate_viewing_mode()[source]#

Activate viewing mode for all containers.

format_datalist(type='data', mesh_only=False, selected=False)[source]#

Format data list for dialog display.

get_tree_state(type='data')[source]#

Get the tree state (group structure) for a container.

load_session(filename)[source]#

Load application state from file.

open_file(filename, offset=0, scale=1, sampling_rate=1, segmentation=False)[source]#

Open a file and register new geometries with the GUI.

refresh_actors()[source]#

Reinitialize all VTK actors to accommodate render setting changes.

refresh_lod()[source]#

Recompute interaction-LOD budgets from current settings.

Returns:
bool

True when any LOD actors changed (renderer sync needed).

register_session_hook(collect, restore)[source]#

Register callbacks for session save/load.

Parameters:
collectcallable

Called on save. Returns a dict of key-value pairs merged into the session’s meta section.

restorecallable

Called on load with the full meta dict. Picks out relevant keys to restore widget state.

reset()[source]#

Reset the state of the class instance.

swap_area_picker()[source]#

Toggle area picker between data and models containers.

to_file(filename, sections=None)[source]#

Save current application state to file.

visibility_unselected(visible=True)[source]#

Hide clusters and models that are not selected.