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.SceneOptsThe
OrthoOptsclass is used byOrthoPanelinstances to manage their display settings.Note
While the
OrthoOptsclass hasxzoom,yzoom, andzzoom, properties which control the zoom levels on each canvas independently,OrthoOptsclass also inherits azoomproperty from theSceneOptsclass. This global zoom property can be used to adjust all canvas zoom levels simultaneously.-
cursorGap= <MagicMock name='mock.Boolean()' id='281473492613776'>¶
-
showXCanvas= <MagicMock name='mock.Boolean()' id='281473497326640'>¶ Toggles display of the X canvas.
-
showYCanvas= <MagicMock name='mock.Boolean()' id='281473497326640'>¶ Toggles display of the Y canvas.
-
showZCanvas= <MagicMock name='mock.Boolean()' id='281473497326640'>¶ Toggles display of the Z canvas.
-
showLabels= <MagicMock name='mock.Boolean()' id='281473497326640'>¶ If
True, labels showing anatomical orientation are displayed on each of the canvases.
-
layout= <MagicMock name='mock.Choice()' id='281473498355456'>¶ How should we lay out each of the three canvases?
-
_OrthoOpts__onZoom(*a)¶ Called when the
SceneOpts.zoomproperty changes.Propagates the change to the
xzoom,yzoom, andzzoomproperties.
-
__module__= 'fsleyes.displaycontext.orthoopts'¶
-
xzoom= <MagicMock name='mock.Percentage()' id='281473492614880'>¶ Controls zoom on the X canvas.
-
yzoom= <MagicMock name='mock.Percentage()' id='281473492614976'>¶ Controls zoom on the Y canvas.
-
zzoom= <MagicMock name='mock.Percentage()' id='281473492615024'>¶ Controls zoom on the Z canvas.
-
__init__(*args, **kwargs)[source]¶ Create an
OrthoOptsinstance. All arguments are passed through to theSceneOptsconstructor.This method sets up a binding from the
SceneOpts.zoomproperty to thexzoom,yzoom, andzzoomproperties - see__onZoom().
-
_onPerformanceChange(*a)[source]¶ Overrides
SceneOpts._onPerformanceChange(). Changes the value of therenderModeandhighDpiproperties according to the performance setting.
-