MosaicData#

MosaicData is the central application-state object for the GUI. It wraps a headless Session with two DataContainerInteractor instances, one for point clouds and one for fitted models, and coordinates between them.

Each instance carries the following attributes:

  • data: DataContainerInteractor over the point-cloud container.

  • models: DataContainerInteractor over the fitted-model container.

  • active_picker: name of the container currently bound to the area picker ("data" or "models").

  • shape: bounding-box shape of the point-cloud workspace.

Constructor#

MosaicData

GUI application state backed by a headless Session.

File I/O#

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

Open a file and register new geometries with the GUI.

MosaicData.to_file(filename[, sections])

Save current application state to file.

MosaicData.load_session(filename)

Load application state from file.

MosaicData.reset()

Reset the state of the class instance.

Interaction Modes#

MosaicData.activate_viewing_mode()

Activate viewing mode for all containers.

MosaicData.activate_picking_mode()

MosaicData.swap_area_picker()

Toggle area picker between data and models containers.

MosaicData.highlight_clusters_from_selected_points()

Visualization#

MosaicData.set_coloring_mode(mode)

MosaicData.visibility_unselected([visible])

Hide clusters and models that are not selected.

MosaicData.refresh_lod()

Recompute interaction-LOD budgets from current settings.

MosaicData.refresh_actors()

Reinitialize all VTK actors to accommodate render setting changes.

Session Hooks#

Widgets can register callbacks that participate in session save/load by contributing to the meta section of the session archive.

MosaicData.register_session_hook(collect, ...)

Register callbacks for session save/load.

Utilities#

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

Format data list for dialog display.

MosaicData.get_tree_state([type])

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