woo._GLViewer

class woo._GLViewer.GLViewer

Raises an exception This class cannot be instantiated from Python

axes

Show arrows for axes.

center((GLViewer)arg1[, (bool)median=True]) → None :

Center view. View is centered either so that all bodies fit inside (median=False), or so that 75% of bodies fit inside (median=True).

close((GLViewer)arg1) → None
eyePosition

Camera position.

fitAABB((GLViewer)arg1, (Vector3)mn, (Vector3)mx) → None :

Adjust scene bounds so that Axis-aligned bounding box given by its lower and upper corners mn, mx fits in.

fitSphere((GLViewer)arg1, (Vector3)center, (float)radius) → None :

Adjust scene bounds so that sphere given by center and radius fits in.

fps

Show frames per second indicator.

loadState((GLViewer)arg1, (int)slot) → None :

Load display parameters from slot saved previously into, identified by its number.

lookAt

Point at which camera is directed.

ortho

Whether orthographic projection is used; if false, use perspective projection.

povRayCam((GLViewer)arg1) → str :

Return textual definition of camera in POV-Ray which will be the same with the current camera setup in this view.

rotCursorFreeze = False
saveState((GLViewer)arg1, (int)slot) → None :

Save display parameters into numbered memory slot. Saves state for both GLViewer and associated Renderer.

sceneRadius

Visible scene radius.

screenSize

Size of the viewer’s window, in scree pixels

selection
showEntireScene((GLViewer)arg1) → None
snapshot((GLViewer)arg1, (str)arg2) → None :

Save screenshot of this view to out. Recognized extensions are .png, .jpg, .jpeg. Execution of snapshot is deferred and will be carried out after the next frame will have been rendered; the call returns immediately.

upVector

Vector that will be shown oriented up on the screen.

viewDir

Camera orientation (as vector).

woo._GLViewer.View() → GLViewer :

Create a new 3d view.

woo._GLViewer.center() → None :

Center all views.

woo._GLViewer.views() → list :

Return list of all open woo.qt.GLViewer objects

Tip

Got questions? Ask at ask.woodem.org. Report issues to github.