Dynamic GUI for ANARI devices
I would like to expose the VTK/Rendering/ANARI
module in the ParaView GUI. I have some WIP implementation for this (mostly following how OSPRay is integrated) on this branch.
In contrast to OSPRay, there exist numerous back-ends ("devices") that have different kinds of parameters; e.g., some devices support accumulation, others don't; some allow light to bounce, etc., which is controlled via renderer and device parameters.
The ImGui-based viewer applications that come with the ANARI-SDK have a nice feature where the GUI is dynamically initialized based on the parameters the respective device supports. See this file for how this is implemented; depending on the parameter's type and value range, etc., different GUI elements are created dynamically when the back-end gets loaded, for example, a boolean parameter would become a checkbox, etc.
I wonder how one would implement this with ParaView. The WIP on the branch mentioned above as of yet has a static GUI similar to OSPRay's. Could you kindly provide me with some pointers how I could implement a dynamic GUI that integrates with the properties widget in ParaView to behave similar to anari_viewer
?
(Also keeping @jeffamstutz in the loop who I discussed this with in DM.)