fsleyes.controls.scene3dtoolbar¶
This module provides the Scene3DToolBar class, a FSLeyes control
which implements a toolbar for use with the Scene3DPanel.
-
class
fsleyes.controls.scene3dtoolbar.Scene3DToolBar(parent, overlayList, displayCtx, panel)[source]¶ Bases:
fsleyes.controls.controlpanel.ControlToolBarThe
Scene3DToolBaris a FSLeyes control which implements a toolbar for use with theScene3DPanel.-
showCursorAndLegend= <MagicMock name='mock.Boolean()' id='4117273880'>¶ This property is linked to a button on the toolbar which allows the user to simultaneously toggle the
SceneOpts.showCursorandScene3DOpts.showLegendproperties.
-
static
supportedViews()[source]¶ The
Scene3DToolBaris restricted for use with theScene3DPanel.
-
__init__(parent, overlayList, displayCtx, panel)[source]¶ Create a
Scene3DToolBar.- Parameters
parent – The
wxparent object.overlayList – The
OverlayListinstance.displayCtx – The
DisplayContextinstance.panel – The
Scene3DPanelinstance.
-
destroy()[source]¶ Must be called when this
Scene3DToolBaris no longer in use. Removes some property listeners, and calls the base class implementation.
-
__makeTools()¶ Called by
__init__(). Creates the toolbar widgets.
-
__showCursorAndLegendChanged(*a)¶ Called when the
showCursorAndLegendproperty is changed. Propagates the change on to theScene3DOpts.showCursorandScene3DOpts.showLegendproperties.
-
__module__= 'fsleyes.controls.scene3dtoolbar'¶
-