fsleyes.displaycontext.orthoopts
¶
This module provides the OrthoOpts
class, which contains display
settings used by the OrthoPanel
class.
-
class
fsleyes.displaycontext.orthoopts.
OrthoOpts
(*args, **kwargs)[source]¶ Bases:
fsleyes.displaycontext.sceneopts.SceneOpts
The
OrthoOpts
class is used byOrthoPanel
instances to manage their display settings.Note
While the
OrthoOpts
class hasxzoom
,yzoom
, andzzoom
, properties which control the zoom levels on each canvas independently,OrthoOpts
class also inherits azoom
property from theSceneOpts
class. This global zoom property can be used to adjust all canvas zoom levels simultaneously.-
cursorGap
= <MagicMock name='mock.Boolean()' id='3029415704'>¶
-
showXCanvas
= <MagicMock name='mock.Boolean()' id='3031712864'>¶ Toggles display of the X canvas.
-
showYCanvas
= <MagicMock name='mock.Boolean()' id='3031712864'>¶ Toggles display of the Y canvas.
-
showZCanvas
= <MagicMock name='mock.Boolean()' id='3031712864'>¶ Toggles display of the Z canvas.
-
showLabels
= <MagicMock name='mock.Boolean()' id='3031712864'>¶ If
True
, labels showing anatomical orientation are displayed on each of the canvases.
-
layout
= <MagicMock name='mock.Choice()' id='3030895104'>¶ How should we lay out each of the three canvases?
-
_OrthoOpts__onZoom
(*a)¶ Called when the
SceneOpts.zoom
property changes.Propagates the change to the
xzoom
,yzoom
, andzzoom
properties.
-
__module__
= 'fsleyes.displaycontext.orthoopts'¶
-
xzoom
= <MagicMock name='mock.Percentage()' id='3029416424'>¶ Controls zoom on the X canvas.
-
yzoom
= <MagicMock name='mock.Percentage()' id='3029416472'>¶ Controls zoom on the Y canvas.
-
zzoom
= <MagicMock name='mock.Percentage()' id='3029416520'>¶ Controls zoom on the Z canvas.
-
__init__
(*args, **kwargs)[source]¶ Create an
OrthoOpts
instance. All arguments are passed through to theSceneOpts
constructor.This method sets up a binding from the
SceneOpts.zoom
property to thexzoom
,yzoom
, andzzoom
properties - see__onZoom()
.
-
_onPerformanceChange
(*a)[source]¶ Overrides
SceneOpts._onPerformanceChange()
. Changes the value of therenderMode
andhighDpi
properties according to the performance setting.
-