yt.visualization.volume_rendering.interactive_loop module

Event loop for Interactive Data Visualization

class yt.visualization.volume_rendering.interactive_loop.EGLRenderingContext(width=1024, height=1024)[source]

Bases: object

Rendering context using EGL (experimental)

Parameters:
  • width (int, optional) – The width of the off-screen buffer window. For performance reasons it is recommended to use values that are natural powers of 2.
  • height (int, optional) – The height of the off-screen buffer window. For performance reasons it it is recommended to use values that are natural powers of 2.
setup_loop(scene, camera)[source]
start_loop(scene, camera)[source]
class yt.visualization.volume_rendering.interactive_loop.RenderingContext(width=1024, height=1024, title='vol_render')[source]

Bases: object

Basic rendering context for IDV using GLFW3, that handles the main window even loop

Parameters:
  • width (int, optional) – The width of the Interactive Data Visualization window. For performance reasons it is recommended to use values that are natural powers of 2.
  • height (int, optional) – The height of the Interactive Data Visualization window. For performance reasons it is recommended to use values that are natural powers of 2.
  • title (str, optional) – The title of the Interactive Data Visualization window.
setup_loop(scene, camera)[source]
should_quit = False
start_loop(scene, camera)[source]