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 by OrthoPanel instances to manage their display settings.

Note

While the OrthoOpts class has xzoom, yzoom, and zzoom, properties which control the zoom levels on each canvas independently, OrthoOpts class also inherits a zoom property from the SceneOpts class. This global zoom property can be used to adjust all canvas zoom levels simultaneously.

cursorGap = <MagicMock name='mock.Boolean()' id='4116814796'>
showXCanvas = <MagicMock name='mock.Boolean()' id='4122063852'>

Toggles display of the X canvas.

showYCanvas = <MagicMock name='mock.Boolean()' id='4122063852'>

Toggles display of the Y canvas.

showZCanvas = <MagicMock name='mock.Boolean()' id='4122063852'>

Toggles display of the Z canvas.

showLabels = <MagicMock name='mock.Boolean()' id='4122063852'>

If True, labels showing anatomical orientation are displayed on each of the canvases.

layout = <MagicMock name='mock.Choice()' id='4120315372'>

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, and zzoom properties.

__module__ = 'fsleyes.displaycontext.orthoopts'
xzoom = <MagicMock name='mock.Percentage()' id='4116814924'>

Controls zoom on the X canvas.

yzoom = <MagicMock name='mock.Percentage()' id='4116815052'>

Controls zoom on the Y canvas.

zzoom = <MagicMock name='mock.Percentage()' id='4116815116'>

Controls zoom on the Z canvas.

__init__(*args, **kwargs)[source]

Create an OrthoOpts instance. All arguments are passed through to the SceneOpts constructor.

This method sets up a binding from the SceneOpts.zoom property to the xzoom, yzoom, and zzoom properties - see __onZoom().

_onPerformanceChange(*a)[source]

Overrides SceneOpts._onPerformanceChange(). Changes the value of the renderMode and highDpi properties according to the performance setting.