fsleyes.controls.orthoedittoolbar¶
This module provides the OrthoEditToolBar, a
ControlToolBar which displays controls for editing Image
instances in an OrthoPanel.
-
class
fsleyes.controls.orthoedittoolbar.OrthoEditToolBar(parent, overlayList, displayCtx, frame, ortho)¶ Bases:
fsleyes.controls.controlpanel.ControlToolBarThe
OrthoEditToolBaris aControlToolBarwhich displays controls for editingImageinstances in anOrthoPanel.An
OrthoEditToolBarlooks something like this:
The
OrthoEditToolBarexposes properties and actions which are defined on theOrthoEditProfileclass, and allows the user to:- Change the
OrthoPanelprofile betweenviewandeditmode (see theViewPanel.profileproperty). When inviewmode, all of the other controls are hidden. - Undo/redo changes to the selection and to
Imageinstances. - Clear and fill the current selection.
- Switch between a 2D and 3D selection cursor.
- Change the selection cursor size.
- Create a new mask/ROI
Imagefrom the current selection. - Switch between regular select mode, and select by intensity mode, and adjust the select by intensity mode settings.
All of the controls shown on an
OrthoEditToolBarinstance are defined in the_TOOLBAR_SPECSdictionary.-
selint= <MagicMock name='mock.Boolean()' id='139845844115072'>¶ This property allows the user to change the
OrthoEditProfilebetweenselmode, andselintmode.
-
__init__(parent, overlayList, displayCtx, frame, ortho)¶ Create an
OrthoEditToolBar.Parameters: - parent – The
wxparent object. - overlayList – The
OverlayListinstance. - displayCtx – The
DisplayContextinstance. - frame – The
FSLeyesFrameinstance. - ortho – The
OrthoPanelinstance.
- parent – The
-
destroy()¶ Must be called when this
OrthoEditToolBaris no longer needed. Removes property listeners, and calls theControlToolBar.destroy()method.
-
static
supportedViews()¶ Overrides
ControlMixin.supportedViews(). TheOrthoEditToolBaris only intended to be added toOrthoPanelviews.
-
_OrthoEditToolBar__profileChanged(*a)¶ Called when the
ViewPanel.profileproperty of theOrthoPanelchanges. Shows/hides edit controls accordingly.
-
__module__= 'fsleyes.controls.orthoedittoolbar'¶
- Change the
-
fsleyes.controls.orthoedittoolbar._LABELS= {'fillValue': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'intensityThres': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'searchRadius': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'selectionCursorColour': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'selectionOverlayColour': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'selectionSize': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'targetImage': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>}¶ This dictionary contains labels for some
OrthoEditToolBarcontrols. It is referenced in the_TOOLBAR_SPECSdictionary.
-
fsleyes.controls.orthoedittoolbar._ICONS= {'drawMode': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/drawModeHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/drawMode24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selectModeHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selectMode24.png'], 'limitToRadius': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/radiusHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/radius24.png'], 'localFill': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/localsearchHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/localsearch24.png'], 'mode': {'nav': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/addHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/add24.png'], 'sel': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/pencilHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/pencil24.png'], 'desel': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/eraserHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/eraser24.png'], 'fill': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/bucketHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/bucket24.png'], 'selint': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selectByIntensityHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selectByIntensity24.png']}, 'selectionIs3D': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selection3DHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selection3D24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selection2DHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selection2D24.png'], 'selint': ['/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selectByIntensityHighlight24.png', '/builddir/build/BUILD/fsleyes-0.27.3/apidoc/../fsleyes/../assets/icons/selectByIntensity24.png']}¶ This dictionary contains icons for some
OrthoEditToolBarcontrols. It is referenced in the_TOOLBAR_SPECSdictionary.
-
fsleyes.controls.orthoedittoolbar._TOOLTIPS= {'drawMode': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'fillValue': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'intensityThres': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'limitToRadius': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'localFill': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'mode': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'searchRadius': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'selectionIs3D': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'selectionSize': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>, 'targetImage': <MagicMock name='mock.TypeDict().__getitem__()' id='139845834911816'>}¶ This dictionary contains tooltips for some
OrthoEditToolBarcontrols. It is referenced in the_TOOLBAR_SPECSdictionary.
-
fsleyes.controls.orthoedittoolbar._targetImageName(image)¶
-
fsleyes.controls.orthoedittoolbar._TOOLBAR_SPECS= [<MagicMock name='mock.Widget()' id='139845838698984'>, 'div', <MagicMock name='mock.Widget()' id='139845838698984'>, 'div', <MagicMock name='mock.Widget()' id='139845838698984'>, <MagicMock name='mock.Widget()' id='139845838698984'>, <MagicMock name='mock.Widget()' id='139845838698984'>, [<MagicMock name='mock.Widget()' id='139845838698984'>, <MagicMock name='mock.Widget()' id='139845838698984'>], [<MagicMock name='mock.Widget()' id='139845838698984'>, <MagicMock name='mock.Widget()' id='139845838698984'>], <MagicMock name='mock.Widget()' id='139845838698984'>]¶ This list contains specifications for all of the tools shown in an
OrthoEditToolBar, in the order that they are shown.Some specs are grouped together into sub-lists - these will be laid out vertically on the toolbar.