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)¶ 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.-
__init__
(parent, overlayList, displayCtx, frame)¶ Create a
Scene3dPanel
.Parameters: - parent – A
wx
parent object. - overlayList – A
OverlayList
instance. - displayCtx – A
DisplayContext
instance. - frame – The
FSLeyesFrame
instance.
- parent – A
-
destroy
()¶ Must be called when this
Scene3DPanel
is no longer in use.
-
getGLCanvases
()¶ Returns all of the
SliceCanvas
instances contained within thisScene3DPanel
.
-
getActions
()¶ Overrides
ViewPanel.getActions()
. Returns a list of actions that can be executed on thisScene3DPanel
, and which will be added to its view menu.
-
resetDisplay
()¶ An action which resets the current camera configuration (zoom/pan/rotation). See the
Scene3DViewProfile.resetDisplay()
method.
-
toggleScene3DToolBar
()¶ Shows/hides a
Scene3DToolBar
. SeeViewPanel.togglePanel()
.
-
getMovieFrame
(overlay, opts)¶ 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)¶ Overrides
CanvasPanel.doMovieUpdate()
. For x/y/z axis movies, the scene is rotated. Otherwise (for time) theCanvasPanel
implementation is called.
-
__module__
= 'fsleyes.views.scene3dpanel'¶
-