.. _mlgui-api: MlGui ===== The ``mlgui`` object is available only when running QMeshLab with a visible window (desktop app). It is not available in headless pymeshlab. .. py:currentmodule:: _qmeshlab Methods ------- .. py:method:: MlGui.__init__(self, /, *args, **kwargs) :module: _qmeshlab Initialize self. See help(type(self)) for accurate signature. .. py:method:: MlGui.__repr__(self, /) :module: _qmeshlab Return repr(self). .. py:method:: MlGui.apply_camera_state_json(...) :module: _qmeshlab apply_camera_state_json(self, json: str) -> bool .. py:method:: MlGui.apply_render_state_json(...) :module: _qmeshlab apply_render_state_json(self, json: str) -> bool .. py:method:: MlGui.camera_state_json(...) :module: _qmeshlab camera_state_json(self) -> str .. py:method:: MlGui.render_snapshot(...) :module: _qmeshlab render_snapshot(self, render_state_json: str, width: int, height: int) -> bytes .. py:method:: MlGui.render_state_json(...) :module: _qmeshlab render_state_json(self) -> str .. py:method:: MlGui.save_snapshot(...) :module: _qmeshlab save_snapshot(self, path: str, width: int, height: int, render_state_json: str = '') -> None