View on GitHub

PyInventor

3D Graphics in Python with Open Inventor

inventor.SceneManager

class SceneManager(object)

Handles the display and interactions with scene graphs.

Scene manager instances are used in an application to attach scene graphs to OpenGL windows for display and user interaction (using GLUT for example).

Methods defined here:

init_gl(...)

Initializes an OpenGL context for rendering.

interaction(...)

Sets the mouse interaction mode.

Args:

key(...)

Sends keyboard event into the scene for processing.

Args:

Note:

motion3(...)

Sends a 3D motion event into the scene for processing.

Args:

mouse_button(...)

Sends mouse button event into the scene for processing.

Args:

Note:

mouse_move(...)

Sends mouse move event into the scene for processing.

Args:

Note:

render(...)

Renders the scene into an OpenGL context.

Args:

resize(...)

Sets the window size.

Args:

view_all(...)

Initializes camera so that the entire scene is visible.

Args:


Data descriptors defined here:

background

Background color. Also two colors can be given thereby creating a gradient background.

redisplay

Render callback object.

The render callback object is invoked whenever the managed scene graph changes and needs to be re-rendered. When using GLUT for example, it should be set to glutPostRedisplay.

scene

Scene graph root node.