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.CanvasPanelThe
Scene3DPanelis aCanvasPanelwhich draws the contents of theOverlayListas a 3D scene.The
Scene3DPaneluses aScene3DCanvas, which manages all of the GL state and drawing logic. AScene3DViewProfileinstance is used to manage all of the user interaction logic.The scene properties are described and changed via a
Scene3DOptsinstance, accessible through theCanvasPanel.sceneOpts()property.-
static
defaultLayout()[source]¶ Returns a list of control panel types to be added for the default 3D panel layout.
-
static
controlOrder()[source]¶ Returns a list of control panel names, specifying the order in which they should appear in the FSLeyes ortho panel settings menu.
-
__init__(parent, overlayList, displayCtx, frame)[source]¶ Create a
Scene3dPanel.- Parameters
parent – A
wxparent object.overlayList – A
OverlayListinstance.displayCtx – A
DisplayContextinstance.frame – The
FSLeyesFrameinstance.
-
getGLCanvases()[source]¶ Returns all of the
SliceCanvasinstances contained within thisScene3DPanel.
-
getActions()[source]¶ Overrides
ViewPanel.getActions(). Returns a list of actions that can be executed on thisScene3DPanel, 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.
-
getMovieFrame(overlay, opts)[source]¶ Returns the current movie frame. If the
movieAxisis3(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) theCanvasPanelimplementation is called.
-
__module__= 'fsleyes.views.scene3dpanel'¶
-
static