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.ControlToolBarThe
OverlyDisplyaToolBaris aControlToolBarcontaining controls which allow the user to change the display settings of the currently selected overlay (as defined by theDisplayContext.selectedOverlayproperty). The display settings for an overlay are contained in theDisplayandDisplayOptsinstances that are associated with that overlay.An
OverlyDisplyaToolBarlooks something like the following:
The specific controls which are displayed are defined in the
self.__widgetSpecsdictionary, and are created by the following methods:_OverlayDisplayToolBar__makeDisplayToolsCreates and returns a collection of controls for editing properties of the given
Displayinstance._OverlayDisplayToolBar__makeVolumeOptsToolsCreates and returns a collection of controls for editing properties of the given
VolumeOptsinstance._OverlayDisplayToolBar__makeMaskOptsToolsCreates and returns a collection of controls for editing properties of the given
MaskOptsinstance._OverlayDisplayToolBar__makeLabelOptsToolsCreates and returns a collection of controls for editing properties of the given
LabelOptsinstance._OverlayDisplayToolBar__makeVectorOptsToolsCreates and returns a collection of controls for editing properties of the given
VectorOptsinstance._OverlayDisplayToolBar__makeRGBVectorOptsToolsCreates and returns a collection of controls for editing properties of the given
RGBVectorOptsinstance._OverlayDisplayToolBar__makeLineVectorOptsToolsCreates and returns a collection of controls for editing properties of the given
LineVectorOptsinstance._OverlayDisplayToolBar__makeMeshOptsToolsCreates and returns a collection of controls for editing properties of the given
MeshOptsinstance._OverlayDisplayToolBar__makeGiftiOptsToolsCreates and returns a collection of controls for editing properties of the given
GiftiOptsinstance._OverlayDisplayToolBar__makeFreesurferOptsToolsCreates and returns a collection of controls for editing properties of the given
FreesurferOptsinstance._OverlayDisplayToolBar__makeTensorOptsToolsCreates and returns a collection of controls for editing properties of the given
TensorOptsinstance._OverlayDisplayToolBar__makeSHOptsToolsCreates and returns a collection of controls for editing properties of the given
SHOptsinstance._OverlayDisplayToolBar__makeMIPOptsToolsCreates and returns a collection of controls for editing properties of the given
MIPOptsinstance.-
static
supportedViews()[source]¶ Overrides
ControlMixin.supportedViews(). TheOverlayDisplayToolBaris only intended to be added toOrthoPanel,LightBoxPanel, orScene3DPanelviews.
-
__init__(parent, overlayList, displayCtx, viewPanel)[source]¶ Create an
OverlyDisplyaToolBar.- Parameters
parent – The
wxparent object.overlayList – The
OverlayListinstance.displayCtx – The
DisplayContextinstance.viewPanel – The
ViewPanelwhich thisOverlayDisplayToolBaris owned by.
-
destroy()[source]¶ Must be called when this
OverlyDisplyaToolBaris no longer needed. Removes some property listeners, and calls theControlToolBar.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.enabledproperty for the currently selected overlay changes. Enables/disables thisOverlayDisplayToolBaraccordingly.
-
__selectedOverlayChanged(*a)¶ Called when the
DisplayContext.selectedOverlayorOverlayListchanges. 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
Displayinstance.
-
__makeVolumeOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
VolumeOptsinstance.
-
__makeComplexOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
ComplexOptsinstance.
-
__makeMaskOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
MaskOptsinstance.
-
__makeLabelOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
LabelOptsinstance.
-
__makeVectorOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
VectorOptsinstance.
-
__makeRGBVectorOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
RGBVectorOptsinstance.
-
__makeLineVectorOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
LineVectorOptsinstance.
-
__makeMeshOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
MeshOptsinstance.
-
__makeGiftiOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
GiftiOptsinstance.
-
__makeFreesurferOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
FreesurferOptsinstance.
-
__makeTensorOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
TensorOptsinstance.
-
__makeSHOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
SHOptsinstance.
-
__makeMIPOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
MIPOptsinstance.
-
__generateWidgetSpecs()¶ Called by
__init__(). Creates specifications for the toolbar widgets for all overlay types.
-
__module__= 'fsleyes.controls.overlaydisplaytoolbar'¶
-
static
-
fsleyes.controls.overlaydisplaytoolbar._TOOLTIPS= <MagicMock name='mock.utils.typedict.TypeDict()' id='4116378456'>¶ This dictionary contains tooltips for
DisplayandDisplayOptsproperties. It is used by theOverlayDisplayToolBar.__generateWidgetSpecs()method.