VFB Customisation

Hallo

Is there an example of customising the visual components of vfb? I would like to turn off things like the history and other components, leaving a just the basic image displaying during rendering. Our users will easily get confused with more complex UI elements displayed.

Anton

Hello Anton,

For the history panel it’s easy:
renderer.vfb.historyManager.setWindowStatus(false);
or
renderer.vfb.historyManager.windowStatus = false;
depending on the programming language.

The option for the layers seems to be currently missing but there is always a workaround:

Option 1:
Use renderer.vfb.getSettings() to get a JSON string of settings, change UIPosAndSizes.right_panel_collapsed to false and set the JSON string back with renderer.vfb.setSettings(new_settings)

Option 2:
Change the VFB window using your mouse to whatever layout you prefer, get its state with
renderer.getState() and save somewhere the binary buffered returned. Later, when you show the VFB window, set back the already saved state with renderer.setState(saved_settings).