woo._GLViewer

class woo._GLViewer.GLViewer
property axes

Show arrows for axes.

center()

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()
property eyePosition

Camera position.

fitAABB()

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

fitSphere()

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

property fps

Show frames per second indicator.

loadState()

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

property lookAt

Point at which camera is directed.

property ortho

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

povRayCam()

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

property rotCursorFreeze
saveState()

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

property sceneRadius

Visible scene radius.

property screenSize

Size of the viewer’s window, in scree pixels

property selection
showEntireScene()
snapshot()

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.

property upVector

Vector that will be shown oriented up on the screen.

property viewDir

Camera orientation (as vector).

woo._GLViewer.View()

Create a new 3d view.

woo._GLViewer.center()

Center all views.

woo._GLViewer.views()

Return list of all open woo.qt.GLViewer objects

Tip

Report issues or inclarities to github.