Imgui Support in HolovizOp

Hello,

the documentation states that imgui layers are only supported by the holoviz module but not by the operator. I would like to know whether there is a way to use imgui in HolovizOp or rather in a child class of HolovizOp?

Thanks in advance

Hello,
Yes, with Holoscan SDK 2.5 we added callbacks to the HolovizOp. With that it’s possible to add ImGUI layers in an application using HolovizOp. See this Holohub application holohub/applications/holoviz/holoviz_ui at main · nvidia-holoscan/holohub · GitHub.
The callback is implemented here holohub/applications/holoviz/holoviz_ui/holoviz_ui.cpp at main · nvidia-holoscan/holohub · GitHub and the callback is added to HolovizOp here holohub/applications/holoviz/holoviz_ui/holoviz_ui.cpp at main · nvidia-holoscan/holohub · GitHub.

Regards,
Andreas