fsleyes.controls.overlaydisplaytoolbar

This module provides the OverlyDisplyaToolBar, a ControlToolBar containing controls for changing the display settings of the currently selected overlay.

class fsleyes.controls.overlaydisplaytoolbar.OverlayDisplayToolBar(parent, overlayList, displayCtx, viewPanel)[source]

Bases: fsleyes.controls.controlpanel.ControlToolBar

The OverlyDisplyaToolBar is a ControlToolBar containing controls which allow the user to change the display settings of the currently selected overlay (as defined by the DisplayContext.selectedOverlay property). The display settings for an overlay are contained in the Display and DisplayOpts instances that are associated with that overlay.

An OverlyDisplyaToolBar looks something like the following:

_images/overlaydisplaytoolbar.png

The specific controls which are displayed are defined in the self.__widgetSpecs dictionary, and are created by the following methods:

_OverlayDisplayToolBar__makeDisplayTools

Creates and returns a collection of controls for editing properties of the given Display instance.

_OverlayDisplayToolBar__makeVolumeOptsTools

Creates and returns a collection of controls for editing properties of the given VolumeOpts instance.

_OverlayDisplayToolBar__makeMaskOptsTools

Creates and returns a collection of controls for editing properties of the given MaskOpts instance.

_OverlayDisplayToolBar__makeLabelOptsTools

Creates and returns a collection of controls for editing properties of the given LabelOpts instance.

_OverlayDisplayToolBar__makeVectorOptsTools

Creates and returns a collection of controls for editing properties of the given VectorOpts instance.

_OverlayDisplayToolBar__makeRGBVectorOptsTools

Creates and returns a collection of controls for editing properties of the given RGBVectorOpts instance.

_OverlayDisplayToolBar__makeLineVectorOptsTools

Creates and returns a collection of controls for editing properties of the given LineVectorOpts instance.

_OverlayDisplayToolBar__makeMeshOptsTools

Creates and returns a collection of controls for editing properties of the given MeshOpts instance.

_OverlayDisplayToolBar__makeGiftiOptsTools

Creates and returns a collection of controls for editing properties of the given GiftiOpts instance.

_OverlayDisplayToolBar__makeFreesurferOptsTools

Creates and returns a collection of controls for editing properties of the given FreesurferOpts instance.

_OverlayDisplayToolBar__makeTensorOptsTools

Creates and returns a collection of controls for editing properties of the given TensorOpts instance.

_OverlayDisplayToolBar__makeSHOptsTools

Creates and returns a collection of controls for editing properties of the given SHOpts instance.

_OverlayDisplayToolBar__makeMIPOptsTools

Creates and returns a collection of controls for editing properties of the given MIPOpts instance.

static supportedViews()[source]

Overrides ControlMixin.supportedViews(). The OverlayDisplayToolBar is only intended to be added to OrthoPanel, LightBoxPanel, or Scene3DPanel views.

__init__(parent, overlayList, displayCtx, viewPanel)[source]

Create an OverlyDisplyaToolBar.

Parameters
  • parent – The wx parent object.

  • overlayList – The OverlayList instance.

  • displayCtx – The DisplayContext instance.

  • viewPanel – The ViewPanel which this OverlayDisplayToolBar is owned by.

destroy()[source]

Must be called when this OverlyDisplyaToolBar is no longer needed. Removes some property listeners, and calls the ControlToolBar.destroy() method.

__showTools(overlay)

Creates and shows a set of controls allowing the user to change the display settings of the specified overlay.

__overlayEnableChanged(*a)

Called when the Display.enabled property for the currently selected overlay changes. Enables/disables this OverlayDisplayToolBar accordingly.

__selectedOverlayChanged(*a)

Called when the DisplayContext.selectedOverlay or OverlayList changes. Ensures that controls for the currently selected overlay are being shown.

__makeDisplayTools(display)

Creates and returns a collection of controls for editing properties of the given Display instance.

__makeVolumeOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given VolumeOpts instance.

__makeComplexOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given ComplexOpts instance.

__makeMaskOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given MaskOpts instance.

__makeLabelOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given LabelOpts instance.

__makeVectorOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given VectorOpts instance.

__makeRGBVectorOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given RGBVectorOpts instance.

__makeLineVectorOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given LineVectorOpts instance.

__makeMeshOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given MeshOpts instance.

__makeGiftiOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given GiftiOpts instance.

__makeFreesurferOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given FreesurferOpts instance.

__makeTensorOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given TensorOpts instance.

__makeSHOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given SHOpts instance.

__makeMIPOptsTools(opts)

Creates and returns a collection of controls for editing properties of the given MIPOpts instance.

__generateWidgetSpecs()

Called by __init__(). Creates specifications for the toolbar widgets for all overlay types.

__annotations__ = {}
__module__ = 'fsleyes.controls.overlaydisplaytoolbar'
fsleyes.controls.overlaydisplaytoolbar._TOOLTIPS = <MagicMock name='mock.utils.typedict.TypeDict()' id='139907489023024'>

This dictionary contains tooltips for Display and DisplayOpts properties. It is used by the OverlayDisplayToolBar.__generateWidgetSpecs() method.