MosaicData#

MosaicData is the central application-state object for the GUI. It wraps a headless Session with two DataContainerInteractor instances and a shared ViewportInteractor.

Each instance provides these attributes.

  • data is the interactor for the point-cloud container.

  • models is the interactor for the fitted-model container.

  • viewport manages interaction modes, picking, and rendering for both containers.

  • shape is the 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 and return the path written.

MosaicData.load_session(filename)

Load application state from file.

MosaicData.reset()

Reset the state of the class instance.

Visualization#

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.