Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
fslpy
Commits
98608763
Commit
98608763
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
OrthoEditProfile canvas update was broken due to recent changes to
performance levels.
parent
4b6fe081
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/fsleyes/displaycontext/sceneopts.py
+6
-1
6 additions, 1 deletion
fsl/fsleyes/displaycontext/sceneopts.py
fsl/fsleyes/profiles/orthoeditprofile.py
+2
-2
2 additions, 2 deletions
fsl/fsleyes/profiles/orthoeditprofile.py
with
8 additions
and
3 deletions
fsl/fsleyes/displaycontext/sceneopts.py
+
6
−
1
View file @
98608763
...
@@ -55,7 +55,12 @@ class SceneOpts(props.HasProperties):
...
@@ -55,7 +55,12 @@ class SceneOpts(props.HasProperties):
to the colour bar, if it is being shown.
to the colour bar, if it is being shown.
"""
"""
# NOTE: If you change the maximum performance value,
# make sure you update all references to
# performance because, for example, the
# OrthoEditProfile does numerical comparisons
# to it.
performance
=
props
.
Choice
((
1
,
2
,
3
,
4
),
default
=
4
)
performance
=
props
.
Choice
((
1
,
2
,
3
,
4
),
default
=
4
)
"""
User controllable performance setting.
"""
User controllable performance setting.
...
...
This diff is collapsed.
Click to expand it.
fsl/fsleyes/profiles/orthoeditprofile.py
+
2
−
2
View file @
98608763
...
@@ -643,7 +643,7 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile):
...
@@ -643,7 +643,7 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile):
# performance mode, the cursor
# performance mode, the cursor
# is only drawn on the current
# is only drawn on the current
# canvas.
# canvas.
if
self
.
_viewPanel
.
getSceneOptions
().
performance
<
5
:
if
self
.
_viewPanel
.
getSceneOptions
().
performance
<
4
:
cursors
=
[
cursors
[
canvases
.
index
(
canvas
)]]
cursors
=
[
cursors
[
canvases
.
index
(
canvas
)]]
canvases
=
[
canvas
]
canvases
=
[
canvas
]
...
@@ -733,7 +733,7 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile):
...
@@ -733,7 +733,7 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile):
On all lower performance settings, only the source canvas is updated.
On all lower performance settings, only the source canvas is updated.
"""
"""
perf
=
self
.
_viewPanel
.
getSceneOptions
().
performance
perf
=
self
.
_viewPanel
.
getSceneOptions
().
performance
if
perf
==
5
:
if
perf
==
4
:
if
mousePos
is
None
or
canvasPos
is
None
:
if
mousePos
is
None
or
canvasPos
is
None
:
self
.
_viewPanel
.
Refresh
()
self
.
_viewPanel
.
Refresh
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment