Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fsleyes
fsleyes
Commits
92541b8a
Commit
92541b8a
authored
Sep 07, 2021
by
Paul McCarthy
🚵
Browse files
MNT: These methods aren't used by anything
parent
93a119d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsleyes/displaycontext/displaycontext.py
View file @
92541b8a
...
...
@@ -495,50 +495,6 @@ class DisplayContext(props.SyncableHasProperties):
return
self
.
getOpts
(
overlay
).
referenceImage
def
displayToWorld
(
self
,
dloc
,
*
args
,
**
kwargs
):
"""Transforms the given coordinates from the display coordinate
system into the world coordinate system.
.. warning:: If any :attr:`.NiftiOpts.transform` properties have
been modified manually, this method will return invalid
results.
All other arguments are passed to the
:meth:`.NiftiOpts.transformCoords` method.
"""
displaySpace
=
self
.
displaySpace
if
displaySpace
==
'world'
or
len
(
self
.
__overlayList
)
==
0
:
return
dloc
opts
=
self
.
getOpts
(
displaySpace
)
return
opts
.
transformCoords
(
dloc
,
'display'
,
'world'
,
*
args
,
**
kwargs
)
def
worldToDisplay
(
self
,
wloc
,
*
args
,
**
kwargs
):
"""Transforms the given coordinates from the world coordinate
system into the display coordinate system.
.. warning:: If any :attr:`.NiftiOpts.transform` properties have
been modified manually, this method will return invalid
results.
All other arguments are passed to the
:meth:`.NiftiOpts.transformCoords` method.
"""
displaySpace
=
self
.
displaySpace
if
displaySpace
==
'world'
or
len
(
self
.
__overlayList
)
==
0
:
return
wloc
opts
=
self
.
getOpts
(
displaySpace
)
return
opts
.
transformCoords
(
wloc
,
'world'
,
'display'
,
*
args
,
**
kwargs
)
def
displaySpaceIsRadiological
(
self
):
"""Returns ``True`` if the current :attr:`displaySpace` aligns with
a radiological orientation. A radiological orientation is one in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment