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)[source]¶ 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='281473497326640'>¶ This property allows the user to change the
OrthoEditProfilebetweenselmode, andselintmode.
-
__init__(parent, overlayList, displayCtx, frame, ortho)[source]¶ Create an
OrthoEditToolBar.- Parameters
parent – The
wxparent object.overlayList – The
OverlayListinstance.displayCtx – The
DisplayContextinstance.frame – The
FSLeyesFrameinstance.ortho – The
OrthoPanelinstance.
-
destroy()[source]¶ Must be called when this
OrthoEditToolBaris no longer needed. Removes property listeners, and calls theControlToolBar.destroy()method.
-
static
supportedViews()[source]¶ 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'¶
-
fsleyes.controls.orthoedittoolbar._LABELS= {'fillValue': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'intensityThres': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'searchRadius': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'selectionCursorColour': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'selectionOverlayColour': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'selectionSize': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'targetImage': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>}¶ This dictionary contains labels for some
OrthoEditToolBarcontrols. It is referenced in the_TOOLBAR_SPECSdictionary.
-
fsleyes.controls.orthoedittoolbar._ICONS= {'drawMode': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/drawModeHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/drawMode24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/selectModeHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/selectMode24.png'], 'limitToRadius': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/radiusHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/radius24.png'], 'localFill': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/localsearchHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/localsearch24.png'], 'mode': {'desel': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/eraserHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/eraser24.png'], 'fill': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/bucketHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/bucket24.png'], 'nav': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/addHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/add24.png'], 'sel': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/pencilHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/pencil24.png'], 'selint': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/selectByIntensityHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/selectByIntensity24.png']}, 'selectionIs3D': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/selection3DHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/selection3D24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/selection2DHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/selection2D24.png'], 'selint': ['/builddir/build/BUILD/fsleyes-0.34.2/apidoc/../fsleyes/../assets/icons/selectByIntensityHighlight24.png', '/builddir/build/BUILD/fsleyes-0.34.2/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='281473490533920'>, 'fillValue': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'intensityThres': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'limitToRadius': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'localFill': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'mode': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'searchRadius': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'selectionIs3D': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'selectionSize': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>, 'targetImage': <MagicMock name='mock.TypeDict().__getitem__()' id='281473490533920'>}¶ This dictionary contains tooltips for some
OrthoEditToolBarcontrols. It is referenced in the_TOOLBAR_SPECSdictionary.
-
fsleyes.controls.orthoedittoolbar._TOOLBAR_SPECS= [<MagicMock name='mock.Widget()' id='281473490037968'>, 'div', <MagicMock name='mock.Widget()' id='281473490037968'>, 'div', <MagicMock name='mock.Widget()' id='281473490037968'>, <MagicMock name='mock.Widget()' id='281473490037968'>, <MagicMock name='mock.Widget()' id='281473490037968'>, [<MagicMock name='mock.Widget()' id='281473490037968'>, <MagicMock name='mock.Widget()' id='281473490037968'>], [<MagicMock name='mock.Widget()' id='281473490037968'>, <MagicMock name='mock.Widget()' id='281473490037968'>], <MagicMock name='mock.Widget()' id='281473490037968'>]¶ 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.