Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD 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
Evan Edmond
fslpy
Commits
6572a97d
Commit
6572a97d
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
X/Y/Z canvas centre command line argument is now working. Its semantics
will change soon though.
parent
90049ff5
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/fsleyes_parseargs.py
+3
-2
3 additions, 2 deletions
fsl/fsleyes/fsleyes_parseargs.py
fsl/tools/fsleyes.py
+13
-1
13 additions, 1 deletion
fsl/tools/fsleyes.py
with
16 additions
and
3 deletions
fsl/fsleyes/fsleyes_parseargs.py
+
3
−
2
View file @
6572a97d
...
@@ -564,8 +564,9 @@ HELP = td.TypeDict({
...
@@ -564,8 +564,9 @@ HELP = td.TypeDict({
# TODO how about other overlay types?
# TODO how about other overlay types?
'
Main.voxelLoc
'
:
'
Location to show (voxel coordinates of
'
'
Main.voxelLoc
'
:
'
Location to show (voxel coordinates of
'
'
first overlay)
'
,
'
first overlay)
'
,
'
Main.worldLoc
'
:
'
Location to show (world coordinates,
'
'
Main.worldLoc
'
:
'
Location to show (world coordinates of
'
'
takes precedence over --voxelloc)
'
,
'
first overlay, takes precedence over
'
'
--voxelloc)
'
,
'
Main.selectedOverlay
'
:
'
Selected overlay (default: last)
'
,
'
Main.selectedOverlay
'
:
'
Selected overlay (default: last)
'
,
'
Main.autoDisplay
'
:
'
Automatically configure display settings to
'
'
Main.autoDisplay
'
:
'
Automatically configure display settings to
'
'
overlays (unless any display settings are
'
'
overlays (unless any display settings are
'
...
...
This diff is collapsed.
Click to expand it.
fsl/tools/fsleyes.py
+
13
−
1
View file @
6572a97d
...
@@ -30,6 +30,7 @@ import fsl.fsleyes.displaycontext as displaycontext
...
@@ -30,6 +30,7 @@ import fsl.fsleyes.displaycontext as displaycontext
import
fsl.fsleyes.perspectives
as
perspectives
import
fsl.fsleyes.perspectives
as
perspectives
import
fsl.fsleyes.overlay
as
fsloverlay
import
fsl.fsleyes.overlay
as
fsloverlay
import
fsl.utils.status
as
status
import
fsl.utils.status
as
status
import
fsl.utils.async
as
async
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
@@ -240,7 +241,18 @@ def interface(parent, args, ctx):
...
@@ -240,7 +241,18 @@ def interface(parent, args, ctx):
fsleyes_parseargs
.
applySceneArgs
(
fsleyes_parseargs
.
applySceneArgs
(
args
,
overlayList
,
displayCtx
,
viewOpts
)
args
,
overlayList
,
displayCtx
,
viewOpts
)
def
centre
():
if
args
.
xcentre
:
viewPanel
.
getXCanvas
().
centreDisplayAt
(
*
args
.
xcentre
)
if
args
.
ycentre
:
viewPanel
.
getYCanvas
().
centreDisplayAt
(
*
args
.
ycentre
)
if
args
.
zcentre
:
viewPanel
.
getZCanvas
().
centreDisplayAt
(
*
args
.
zcentre
)
if
isinstance
(
viewPanel
,
views
.
OrthoPanel
):
async
.
idle
(
centre
)
return
frame
return
frame
...
...
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