fsleyes.views.scene3dpanel

This module provides the Scene3DPanel class, a FSLeyes view which draws the scene in 3D.

class fsleyes.views.scene3dpanel.Scene3DPanel(parent, overlayList, displayCtx, frame)[source]

Bases: fsleyes.views.canvaspanel.CanvasPanel

The Scene3DPanel is a CanvasPanel which draws the contents of the OverlayList as a 3D scene.

The Scene3DPanel uses a Scene3DCanvas, which manages all of the GL state and drawing logic. A Scene3DViewProfile instance is used to manage all of the user interaction logic.

The scene properties are described and changed via a Scene3DOpts instance, accessible through the CanvasPanel.sceneOpts() property.

__init__(parent, overlayList, displayCtx, frame)[source]

Create a Scene3dPanel.

Parameters
destroy()[source]

Must be called when this Scene3DPanel is no longer in use.

getGLCanvases()[source]

Returns all of the SliceCanvas instances contained within this Scene3DPanel.

getActions()[source]

Overrides ViewPanel.getActions(). Returns a list of actions that can be executed on this Scene3DPanel, and which will be added to its view menu.

resetDisplay()[source]

An action which resets the current camera configuration (zoom/pan/rotation). See the Scene3DViewProfile.resetDisplay() method.

toggleScene3DToolBar()[source]

Shows/hides a Scene3DToolBar. See ViewPanel.togglePanel().

getMovieFrame(overlay, opts)[source]

Returns the current movie frame. If the movieAxis is 3 (e.g. time series), the volume index is returned. Otherwise the current rotation matrix is returned.

doMovieUpdate(overlay, opts)[source]

Overrides CanvasPanel.doMovieUpdate(). For x/y/z axis movies, the scene is rotated. Otherwise (for time) the CanvasPanel implementation is called.

__annotations__ = {}
__module__ = 'fsleyes.views.scene3dpanel'