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.physical_shape

MosaicData.shape

Methods

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.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_lod()

Shortcut for ViewportInteractor.refresh_lod().

MosaicData.register_session_hook(collect, ...)

Register callbacks for session save/load.

MosaicData.reset()

Reset the state of the class instance.

MosaicData.to_file(filename[, sections])

Save current application state to file.

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_lod()[source]#

Shortcut for ViewportInteractor.refresh_lod().

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.

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

Save current application state to file.