fsleyes.controls.orthoeditactiontoolbar¶
This module provides the OrthoEditActionToolbar, a toolbar used
by the OrthoPanel in edit mode, which contains various buttons
allowing the user to run various edit-related actions.
-
class
fsleyes.controls.orthoeditactiontoolbar.OrthoEditActionToolBar(parent, overlayList, displayCtx, ortho)[source]¶ Bases:
fsleyes.controls.controlpanel.ControlToolBarThe
OrthoEditActionToolBaris a toolbar used by theOrthoPanel, which contains buttons allowing the user to:Open the
OrthoEditSettingsPanelCreate a new
ImageUndo/redo the last change
Clear/fill/erase the current selection
Copy/paste data between images
-
static
supportedViews()[source]¶ Overrides
ControlMixin.supportedViews(). TheOrthoEditActionToolBaris only intended to be added toOrthoPanelviews.
-
static
profileCls()[source]¶ The
OrthoEditActionToolBaris intended to be activated with theOrthoEditProfile.
-
static
ignoreControl()[source]¶ The
OrthoEditActionToolBaris not intended to be explicitly added by the user - it is added viaOrthoPanel.toggleEditMode(). Overriding this method tells theFSLeyesFramethat it should not be added to the ortho panel settings menu.
-
__init__(parent, overlayList, displayCtx, ortho)[source]¶ Create an
OrthoEditActionToolBar.- Parameters
parent – The
wxparent objectoverlayList – The
OverlayListinstance.displayCtx – The
DisplayContextinstance.ortho – The
OrthoPanelinstance.
-
destroy()[source]¶ Must be called when this
OrthoEditActionToolBaris no longer needed. Clears references, and calls the base-classdestroymethod.
-
__createTools()¶ Called when the
ViewPanel.profileproperty of theOrthoPanelchanges. Shows/hides edit controls accordingly.
-
__module__= 'fsleyes.controls.orthoeditactiontoolbar'¶