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, frame, 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
_TOOLBAR_PROPSdictionary, and are created by the following methods:Creates and returns a collection of controls for editing properties of the given
Displayinstance.Creates and returns a collection of controls for editing properties of the given
VolumeOptsinstance.Creates and returns a collection of controls for editing properties of the given
MaskOptsinstance.Creates and returns a collection of controls for editing properties of the given
LabelOptsinstance.Creates and returns a collection of controls for editing properties of the given
VectorOptsinstance.Creates and returns a collection of controls for editing properties of the given
RGBVectorOptsinstance.Creates and returns a collection of controls for editing properties of the given
LineVectorOptsinstance.Creates and returns a collection of controls for editing properties of the given
MeshOptsinstance.Creates and returns a collection of controls for editing properties of the given
GiftiOptsinstance.Creates and returns a collection of controls for editing properties of the given
FreesurferOptsinstance.Creates and returns a collection of controls for editing properties of the given
TensorOptsinstance.Creates and returns a collection of controls for editing properties of the given
SHOptsinstance.Creates and returns a collection of controls for editing properties of the given
MIPOptsinstance.-
__init__(parent, overlayList, displayCtx, frame, viewPanel)[source]¶ Create an
OverlyDisplyaToolBar.- Parameters
parent – The
wxparent object.overlayList – The
OverlayListinstance.displayCtx – The
DisplayContextinstance.frame – The
FSLeyesFrameinstance.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.
-
static
supportedViews()[source]¶ Overrides
ControlMixin.supportedViews(). TheOverlayDisplayToolBaris only intended to be added toOrthoPanel,LightBoxPanel, orScene3DPanelviews.
-
_OverlayDisplayToolBar__makeComplexOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
ComplexOptsinstance.
-
_OverlayDisplayToolBar__makeDisplayTools(display)¶ Creates and returns a collection of controls for editing properties of the given
Displayinstance.
-
_OverlayDisplayToolBar__makeFreesurferOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
FreesurferOptsinstance.
-
_OverlayDisplayToolBar__makeGiftiOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
GiftiOptsinstance.
-
_OverlayDisplayToolBar__makeLabelOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
LabelOptsinstance.
-
_OverlayDisplayToolBar__makeLineVectorOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
LineVectorOptsinstance.
-
_OverlayDisplayToolBar__makeMIPOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
MIPOptsinstance.
-
_OverlayDisplayToolBar__makeMaskOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
MaskOptsinstance.
-
_OverlayDisplayToolBar__makeMeshOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
MeshOptsinstance.
-
_OverlayDisplayToolBar__makeRGBVectorOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
RGBVectorOptsinstance.
-
_OverlayDisplayToolBar__makeSHOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
SHOptsinstance.
-
_OverlayDisplayToolBar__makeTensorOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
TensorOptsinstance.
-
_OverlayDisplayToolBar__makeVectorOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
VectorOptsinstance.
-
_OverlayDisplayToolBar__makeVolumeOptsTools(opts)¶ Creates and returns a collection of controls for editing properties of the given
VolumeOptsinstance.
-
_OverlayDisplayToolBar__overlayEnableChanged(*a)¶ Called when the
Display.enabledproperty for the currently selected overlay changes. Enables/disables thisOverlayDisplayToolBaraccordingly.
-
_OverlayDisplayToolBar__selectedOverlayChanged(*a)¶ Called when the
DisplayContext.selectedOverlayorOverlayListchanges. Ensures that controls for the currently selected overlay are being shown.
-
_OverlayDisplayToolBar__showTools(overlay)¶ Creates and shows a set of controls allowing the user to change the display settings of the specified
overlay.
-
__module__= 'fsleyes.controls.overlaydisplaytoolbar'¶
-
-
fsleyes.controls.overlaydisplaytoolbar._imageLabel(img)[source]¶ Used to generate labels for the
VectorOpts.modulateImage,VectorOpts.clipImage, and otherImage-based choice properties.
-
fsleyes.controls.overlaydisplaytoolbar._TOOLTIPS= <MagicMock name='mock.utils.typedict.TypeDict()' id='281473492539520'>¶ This dictionary contains tooltips for
DisplayandDisplayOptsproperties. It is referenced in the_TOOLBAR_PROPSdictionary definition.
-
fsleyes.controls.overlaydisplaytoolbar._TOOLBAR_PROPS= <MagicMock name='mock.utils.typedict.TypeDict()' id='281473492539520'>¶ This dictionary defines specifications for all controls shown on an
OverlayDisplayToolBar.