stillleben.Viewer class

Interactive scene viewer.

Contents

If you do not have special reason not to do so, use the stillleben.view() shortcut to launch a viewer.

Methods

def draw_frame(self, /) -> None
Draw a single frame.
def run(self, /) -> None
Draw until the user closes the window.

Special methods

def __init__(self, scene: Scene) -> None
Constructor.

Properties

scene: Scene get
Scene to be shown.

Method documentation

def stillleben.Viewer.draw_frame(self, /) -> None

Draw a single frame.

In most cases, you should call run() instead, which is blocking and easier to use.

def stillleben.Viewer.run(self, /) -> None

Draw until the user closes the window.

This call is blocking.

def stillleben.Viewer.__init__(self, scene: Scene) -> None

Constructor.

Parameters
scene Scene to view