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 aCanvasPanel
which draws the contents of theOverlayList
as a 3D scene.The
Scene3DPanel
uses aScene3DCanvas
, which manages all of the GL state and drawing logic. AScene3DViewProfile
instance is used to manage all of the user interaction logic.The scene properties are described and changed via a
Scene3DOpts
instance, 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
wx
parent object.overlayList – A
OverlayList
instance.displayCtx – A
DisplayContext
instance.frame – The
FSLeyesFrame
instance.
-
getGLCanvases
()[source]¶ Returns all of the
SliceCanvas
instances 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
movieAxis
is3
(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) theCanvasPanel
implementation is called.
-
__module__
= 'fsleyes.views.scene3dpanel'¶
-
static