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, frame, 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
-
__init__(parent, overlayList, displayCtx, frame, ortho)[source]¶ Create an
OrthoEditActionToolBar.- Parameters
parent – The
wxparent objectoverlayList – The
OverlayListinstance.displayCtx – The
DisplayContextinstance.frame – The
FSLeyesFrameinstance.ortho – The
OrthoPanelinstance.
-
destroy()[source]¶ Must be called when this
OrthoEditActionis no longer needed. Removes property listeners, and calls theControlToolBar.destroy()method.
-
static
supportedViews()[source]¶ Overrides
ControlMixin.supportedViews(). TheOrthoEditActionToolBaris only intended to be added toOrthoPanelviews.
-
_OrthoEditActionToolBar__profileChanged(*a)¶ Called when the
ViewPanel.profileproperty of theOrthoPanelchanges. Shows/hides edit controls accordingly.
-
__module__= 'fsleyes.controls.orthoeditactiontoolbar'¶