Extend the Viewer UI in Rust
What you can build
In the above screenshot you see the example extend_viewer_ui
, which contains the Rerun Viewer to the left and a custom panel to the right. In this example the panel contains a hierarchial text view of the loaded data.
How to build it
The Rerun Viewer is defined by the crate re_viewer
. It uses the popular Rust GUI library egui
(written by our CTO) and its framework eframe
. To extend the UI you need to create your own eframe
application and embed re_viewer
inside of it. You can then use egui
to add custom panels and windows.
The best way to get started is by reading the source code of the extend_viewer_ui
example.
Future work
We plan to also support embedding your own GUI widgets and views inside the viewer.