fsleyes.controls.orthotoolbar¶
This module provides the OrthoToolBar class, which is a
ControlToolBar for use with the OrthoPanel.
-
class
fsleyes.controls.orthotoolbar.OrthoToolBar(parent, overlayList, displayCtx, frame, ortho)[source]¶ Bases:
fsleyes.controls.controlpanel.ControlToolBarThe
OrthoToolBaris aControlToolBarfor use with theOrthoPanel. AnOrthoToolBarlooks something like this:
The
OrthoToolBarallows the user to control important parts of theOrthoPaneldisplay, and also to display aCanvasSettingsPanel, which allows control over all aspects of anOrthoPanel.The
OrthoToolBarcontains controls which modify properties, or run actions, defined on the following classes:The
OrthoPanelclass is a FSLeyes view which displays a 2D view of 3D overlays.The
OrthoOptsclass is used byOrthoPanelinstances to manage their display settings.The
OrthoViewProfileclass is aProfilefor theOrthoPanelclass.-
showCursorAndLabels= <MagicMock name='mock.Boolean()' id='281473497326640'>¶ This property is linked to a button on the toolbar which allows the user to simultaneously toggle the
SceneOpts.showCursorandOrthoOpts.showLabelsproperties.
-
__init__(parent, overlayList, displayCtx, frame, ortho)[source]¶ Create an
OrthoToolBar.- Parameters
parent – The
wxparent object.overlayList – The
OverlayListinstance.displayCtx – The
DisplayContextinstance.frame – The
FSLeyesFrameinstance.ortho – The
OrthoPanelinstance.
-
destroy()[source]¶ Must be called when this
OrthoToolBaris no longer in use. Removes some property listeners, and calls the base class implementation.
-
static
supportedViews()[source]¶ Overrides
ControlMixin.supportedViews(). TheOrthoToolBaris only intended to be added toOrthoPanelviews.
-
_OrthoToolBar__makeTools(*a)¶ Called by
__init__(), and whenever theViewPanel.profileproperty changes.Re-creates all tools shown on this
OrthoToolBar.
-
_OrthoToolBar__showCursorAndLabelsChanged(*a)¶ Called when the
showCursorAndLabelsproperty is changed. Propagates the change on to theSceneOpts.showCursorandOrthoOpts.showLabelsproperties.
-
__module__= 'fsleyes.controls.orthotoolbar'¶
-