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)

Bases: fsleyes.controls.controlpanel.ControlToolBar

The OrthoToolBar is a ControlToolBar for use with the OrthoPanel. An OrthoToolBar looks something like this:

_images/orthotoolbar.png

The OrthoToolBar allows the user to control important parts of the OrthoPanel display, and also to display a CanvasSettingsPanel, which allows control over all aspects of an OrthoPanel.

The OrthoToolBar contains controls which modify properties, or run actions, defined on the following classes:

OrthoPanel

The OrthoPanel class is a FSLeyes view which displays a 2D view of 3D overlays.

OrthoOpts

The OrthoOpts class is used by OrthoPanel instances to manage their display settings.

OrthoViewProfile

The OrthoViewProfile class is a Profile for the OrthoPanel class.

showCursorAndLabels = <MagicMock name='mock.Boolean()' id='140735851538640'>

This property is linked to a button on the toolbar which allows the user to simultaneously toggle the SceneOpts.showCursor and OrthoOpts.showLabels properties.

__init__(parent, overlayList, displayCtx, frame, ortho)

Create an OrthoToolBar.

Parameters
destroy()

Must be called when this OrthoToolBar is no longer in use. Removes some property listeners, and calls the base class implementation.

static supportedViews()

Overrides ControlMixin.supportedViews(). The OrthoToolBar is only intended to be added to OrthoPanel views.

_OrthoToolBar__makeTools(*a)

Called by __init__(), and whenever the ViewPanel.profile property changes.

Re-creates all tools shown on this OrthoToolBar.

_OrthoToolBar__showCursorAndLabelsChanged(*a)

Called when the showCursorAndLabels property is changed. Propagates the change on to the SceneOpts.showCursor and OrthoOpts.showLabels properties.

__module__ = 'fsleyes.controls.orthotoolbar'