fsleyes.controls.orthotoolbar
¶
This module provides the OrthoToolBar
class, which is a
ControlToolBar
for use with the OrthoPanel
.
-
class
fsleyes.controls.orthotoolbar.
OrthoToolBar
(parent, overlayList, displayCtx, frame, ortho)¶ Bases:
fsleyes.controls.controlpanel.ControlToolBar
The
OrthoToolBar
is aControlToolBar
for use with theOrthoPanel
. AnOrthoToolBar
looks something like this:The
OrthoToolBar
allows the user to control important parts of theOrthoPanel
display, and also to display aCanvasSettingsPanel
, which allows control over all aspects of anOrthoPanel
.The
OrthoToolBar
contains controls which modify properties, or run actions, defined on the following classes:OrthoPanel
The OrthoPanel
class is a FSLeyes view which displays a 2D view of 3D overlays.OrthoOpts
The OrthoOpts
class is used byOrthoPanel
instances to manage their display settings.OrthoViewProfile
The OrthoViewProfile
class is aProfile
for theOrthoPanel
class.-
showCursorAndLabels
= <MagicMock name='mock.Boolean()' id='140655056157552'>¶ This property is linked to a button on the toolbar which allows the user to simultaneously toggle the
SceneOpts.showCursor
andOrthoOpts.showLabels
properties.
-
__init__
(parent, overlayList, displayCtx, frame, ortho)¶ Create an
OrthoToolBar
.Parameters: - parent – The
wx
parent object. - overlayList – The
OverlayList
instance. - displayCtx – The
DisplayContext
instance. - frame – The
FSLeyesFrame
instance. - ortho – The
OrthoPanel
instance.
- parent – The
-
destroy
()¶ Must be called when this
OrthoToolBar
is no longer in use. Removes some property listeners, and calls the base class implementation.
-
static
supportedViews
()¶ Overrides
ControlMixin.supportedViews()
. TheOrthoToolBar
is only intended to be added toOrthoPanel
views.
-
_OrthoToolBar__makeTools
(*a)¶ Called by
__init__()
, and whenever theViewPanel.profile
property changes.Re-creates all tools shown on this
OrthoToolBar
.
-
_OrthoToolBar__showCursorAndLabelsChanged
(*a)¶ Called when the
showCursorAndLabels
property is changed. Propagates the change on to theSceneOpts.showCursor
andOrthoOpts.showLabels
properties.
-
__module__
= 'fsleyes.controls.orthotoolbar'¶
-