Classes | |
| class | Const_std_vector_PythonViewer_UiEntry |
| class | Const_std_vector_std_pair_std_vector_std_string_PythonViewer_UiEntry |
| class | ConstUiEntry |
| class | ConstUiValueInt |
| class | ConstUiValueReal |
| class | ConstUiValueString |
| class | ConstUiValueUint |
| class | ConstViewer |
| class | ConstViewerLaunchParams |
| class | ConstViewerSetup |
| class | ConstViewport |
| class | ConstViewportFitDataParams |
| class | double_output |
| class | float_output |
| class | KeyMod |
| class | MouseButton |
| class | std_vector_PythonViewer_UiEntry |
| class | std_vector_std_pair_std_vector_std_string_PythonViewer_UiEntry |
| class | UiEntry |
| class | UiEntryType |
| class | UiValueInt |
| class | UiValueReal |
| class | UiValueString |
| class | UiValueUint |
| class | Viewer |
| class | ViewerLaunchParams |
| class | ViewerLaunchParamsMode |
| class | ViewerSetup |
| class | Viewport |
| class | ViewportFitDataParams |
| class | ViewportFitMode |
Functions | |
| _optionalList (field) | |
| _uiEntryRepr (e) | |
| std_vector_std_pair_std_vector_std_string_PythonViewer_UiEntry | _uiListAllEntries (meshlib.mrmeshpy.Const_std_vector_std_string rootPath) |
| std_vector_PythonViewer_UiEntry | _uiListEntries (meshlib.mrmeshpy.Const_std_vector_std_string path) |
| None | addDistanceMapToScene (meshlib.mrmeshpy.ConstDistanceMap distancemap, str name, meshlib.mrmeshpy.ConstAffineXf3f dmap_to_local_xf) |
| None | addLinesToScene (meshlib.mrmeshpy.ConstPolyline3 lines, str name) |
| None | addMeshToScene (meshlib.mrmeshpy.ConstMesh mesh, str name) |
| None | addPointCloudToScene (meshlib.mrmeshpy.ConstPointCloud points, str name) |
| None | addVoxelsToScene (meshlib.mrmeshpy.ConstVdbVolume voxels, str name) |
| None | clearScene () |
| KeyMod | getPrimaryCtrlKeyMod () |
| meshlib.mrmeshpy.std_vector_DistanceMap | getSelectedDistanceMaps () |
| meshlib.mrmeshpy.std_vector_TypedBitSet_Id_UndirectedEdgeTag | getSelectedMeshEdges () |
| meshlib.mrmeshpy.std_vector_TypedBitSet_Id_FaceTag | getSelectedMeshFaces () |
| meshlib.mrmeshpy.std_vector_Mesh | getSelectedMeshes () |
| meshlib.mrmeshpy.std_vector_std_shared_ptr_Object | getSelectedObjects () |
| meshlib.mrmeshpy.std_vector_TypedBitSet_Id_VertTag | getSelectedPointCloudPoints () |
| meshlib.mrmeshpy.std_vector_PointCloud | getSelectedPointClouds () |
| meshlib.mrmeshpy.std_vector_Polyline_Vector3_float | getSelectedPolylines () |
| meshlib.mrmeshpy.std_vector_VoxelsVolumeMinMax_FloatGrid | getSelectedVoxels () |
| None | launch (ConstViewerLaunchParams params=..., ConstViewerSetup setup=...) |
| None | modifySelectedMesh (meshlib.mrmeshpy.ConstMesh mesh) |
| None | runFromGUIThread (meshlib.mrmeshpy.Const_func_void lambda_) |
| None | selectByName (str objectName) |
| None | selectByType (str typeName) |
| None | setSelectedMeshEdges (meshlib.mrmeshpy.Const_std_vector_TypedBitSet_Id_UndirectedEdgeTag bitsets) |
| None | setSelectedMeshFaces (meshlib.mrmeshpy.Const_std_vector_TypedBitSet_Id_FaceTag bitsets) |
| None | setSelectedPointCloudPoints (meshlib.mrmeshpy.Const_std_vector_TypedBitSet_Id_VertTag bitsets) |
| None | showViewer () |
| uiListAllEntries (rootPath) | |
| uiListEntries (path) | |
| None | uiPressButton (meshlib.mrmeshpy.Const_std_vector_std_string path) |
| UiValueInt | uiReadValueInt (meshlib.mrmeshpy.Const_std_vector_std_string path) |
| UiValueReal | uiReadValueReal (meshlib.mrmeshpy.Const_std_vector_std_string path) |
| UiValueString | uiReadValueString (meshlib.mrmeshpy.Const_std_vector_std_string path) |
| UiValueUint | uiReadValueUint (meshlib.mrmeshpy.Const_std_vector_std_string path) |
| None | uiWriteValue (meshlib.mrmeshpy.Const_std_vector_std_string path, int value) |
| None | uiWriteValue (meshlib.mrmeshpy.Const_std_vector_std_string path, float value) |
| None | uiWriteValue (meshlib.mrmeshpy.Const_std_vector_std_string path, str value) |
| None | unselectAll () |
|
protected |
|
protected |
|
protected |
Flat depth-first list of every UI entry in the subtree rooted at `rootPath`. Pass an empty list for the whole tree. Each element is a `(path, UiEntry)` tuple where `path[-1] == entry.name`.
|
protected |
List existing UI entries at the specified path. Pass an empty list to see top-level groups. Add group name to the end of the vector to see its contents. When you find the button you need, pass it to `uiPressButton()`.
| None mrviewerpy.addDistanceMapToScene | ( | meshlib.mrmeshpy.ConstDistanceMap | distancemap, |
| str | name, | ||
| meshlib.mrmeshpy.ConstAffineXf3f | dmap_to_local_xf ) |
Add given distance map to scene tree.
| None mrviewerpy.addLinesToScene | ( | meshlib.mrmeshpy.ConstPolyline3 | lines, |
| str | name ) |
Add given lines to scene tree.
| None mrviewerpy.addMeshToScene | ( | meshlib.mrmeshpy.ConstMesh | mesh, |
| str | name ) |
Add given mesh to scene tree.
| None mrviewerpy.addPointCloudToScene | ( | meshlib.mrmeshpy.ConstPointCloud | points, |
| str | name ) |
Add given point cloud to scene tree.
| None mrviewerpy.addVoxelsToScene | ( | meshlib.mrmeshpy.ConstVdbVolume | voxels, |
| str | name ) |
Add given voxels to scene tree.
| None mrviewerpy.clearScene | ( | ) |
remove all objects from scene tree
| KeyMod mrviewerpy.getPrimaryCtrlKeyMod | ( | ) |
Returns the main control modifier of this platform: `KeyMod.Super` (Cmd) on macOS, `KeyMod.Ctrl` otherwise.
| meshlib.mrmeshpy.std_vector_DistanceMap mrviewerpy.getSelectedDistanceMaps | ( | ) |
Get copies of all selected voxel grids in the scene.
| meshlib.mrmeshpy.std_vector_TypedBitSet_Id_UndirectedEdgeTag mrviewerpy.getSelectedMeshEdges | ( | ) |
Get selected edge bitsets of the selected mesh objects.
| meshlib.mrmeshpy.std_vector_Mesh mrviewerpy.getSelectedMeshes | ( | ) |
Get copies of all selected meshes in the scene.
| meshlib.mrmeshpy.std_vector_TypedBitSet_Id_FaceTag mrviewerpy.getSelectedMeshFaces | ( | ) |
Get selected face bitsets of the selected mesh objects.
| meshlib.mrmeshpy.std_vector_std_shared_ptr_Object mrviewerpy.getSelectedObjects | ( | ) |
| meshlib.mrmeshpy.std_vector_TypedBitSet_Id_VertTag mrviewerpy.getSelectedPointCloudPoints | ( | ) |
Get selected point bitsets of the selected point cloud objects.
| meshlib.mrmeshpy.std_vector_PointCloud mrviewerpy.getSelectedPointClouds | ( | ) |
Get copies of all selected point clouds in the scene.
| meshlib.mrmeshpy.std_vector_Polyline_Vector3_float mrviewerpy.getSelectedPolylines | ( | ) |
Get copies of all selected polylines in the scene.
| meshlib.mrmeshpy.std_vector_VoxelsVolumeMinMax_FloatGrid mrviewerpy.getSelectedVoxels | ( | ) |
Get copies of all selected voxel grids in the scene.
| None mrviewerpy.launch | ( | ConstViewerLaunchParams | params = ..., |
| ConstViewerSetup | setup = ... ) |
Starts the viewer with the given params and setup, and returns once it is up and accepts calls. On Windows and Linux the window opens here, and the script keeps running alongside it. On macOS the viewer runs on the calling thread, which must be the main one: the window opens in showViewer(), or at the interactive prompt, where it stays live while the interpreter waits for input, in input() too. Raises RuntimeError if the viewer could not start (no display, or already launched once in this process).
| None mrviewerpy.modifySelectedMesh | ( | meshlib.mrmeshpy.ConstMesh | mesh | ) |
Assign a new mesh to the selected mesh object. Exactly one object must be selected.
| None mrviewerpy.runFromGUIThread | ( | meshlib.mrmeshpy.Const_func_void | lambda_ | ) |
Executes given function from GUI thread, and returns after it is done
| None mrviewerpy.selectByName | ( | str | objectName | ) |
select objects in scene tree with given name, unselect others
| None mrviewerpy.selectByType | ( | str | typeName | ) |
string typeName: {"Meshes", "Points", "Voxels"}
objects in scene tree with given type, unselect others
| None mrviewerpy.setSelectedMeshEdges | ( | meshlib.mrmeshpy.Const_std_vector_TypedBitSet_Id_UndirectedEdgeTag | bitsets | ) |
Set selected edge bitsets of the selected mesh objects.
| None mrviewerpy.setSelectedMeshFaces | ( | meshlib.mrmeshpy.Const_std_vector_TypedBitSet_Id_FaceTag | bitsets | ) |
Set selected face bitsets of the selected mesh objects.
| None mrviewerpy.setSelectedPointCloudPoints | ( | meshlib.mrmeshpy.Const_std_vector_TypedBitSet_Id_VertTag | bitsets | ) |
Set selected point bitsets of the selected point cloud objects.
| None mrviewerpy.showViewer | ( | ) |
Keeps the window open until the user closes it or shutdown() is called from another thread. On macOS the window opens here, so this call is required there; make it from the main thread. After it returns the viewer is closed for good, and further viewer calls raise RuntimeError.
| mrviewerpy.uiListAllEntries | ( | rootPath | ) |
uiListAllEntries(rootPath: list[str]) -> list[tuple[list[str], meshlib.mrviewerpy.UiEntry]] Flat depth-first list of every UI entry in the subtree rooted at `rootPath`. Pass an empty list for the whole tree. Each element is a `(path, UiEntry)` tuple where `path[-1] == entry.name`.
| mrviewerpy.uiListEntries | ( | path | ) |
uiListEntries(path: list[str]) -> list[meshlib.mrviewerpy.UiEntry] List existing UI entries at the specified path. Pass an empty list to see top-level groups. Add group name to the end of the vector to see its contents. When you find the button you need, pass it to `uiPressButton()`.
| None mrviewerpy.uiPressButton | ( | meshlib.mrmeshpy.Const_std_vector_std_string | path | ) |
Simulate a button click. Use `uiListEntries()` to find button names.
| UiValueInt mrviewerpy.uiReadValueInt | ( | meshlib.mrmeshpy.Const_std_vector_std_string | path | ) |
Read a value from a drag/slider widget. This function is for signed integers.
| UiValueReal mrviewerpy.uiReadValueReal | ( | meshlib.mrmeshpy.Const_std_vector_std_string | path | ) |
Read a value from a drag/slider widget. This function is for real numbers.
| UiValueString mrviewerpy.uiReadValueString | ( | meshlib.mrmeshpy.Const_std_vector_std_string | path | ) |
Read a value from a drag/slider widget. This function is for strings.
| UiValueUint mrviewerpy.uiReadValueUint | ( | meshlib.mrmeshpy.Const_std_vector_std_string | path | ) |
Read a value from a drag/slider widget. This function is for unsigned integers.
| None mrviewerpy.uiWriteValue | ( | meshlib.mrmeshpy.Const_std_vector_std_string | path, |
| float | value ) |
Write a value to a drag/slider widget. This overload is for real numbers.
| None mrviewerpy.uiWriteValue | ( | meshlib.mrmeshpy.Const_std_vector_std_string | path, |
| int | value ) |
Write a value to a drag/slider widget. This overload is for signed integers.
Write a value to a drag/slider widget. This overload is for unsigned integers.
| None mrviewerpy.uiWriteValue | ( | meshlib.mrmeshpy.Const_std_vector_std_string | path, |
| str | value ) |
Write a value to a drag/slider widget. This overload is for strings.
| None mrviewerpy.unselectAll | ( | ) |
unselect all objects in scene tree