Exporting Interactive Scenes
Every interactive driver (OpenGL, GDI, DirectX) internally maintains its own local scene. Modifications due to user input only modify that internal scene. Examples are modifications of camera position, plot cube axis ranges, plot cube axes ticks and so on. Theses user implied settings are not populated back to the original scene.
In order to export the local scene from a driver – including the current state after user interaction, Panel provides the Panel.GetCurrentScene() function. It returns a copy of the local scene taking all interaction into account. The next example exports the current output from a panel named ilPanel1 into SVG. It does take all modifications from user interaction into account as well as the size and background color of the panel:
The same example, exporting to PNG: