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
e7b1bbf9
Commit
e7b1bbf9
authored
10 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
ImageDisplay parameter is no longer optional when creating a
GLImageData object.
parent
886f2fe4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/fslview/gl/glimagedata.py
+2
-7
2 additions, 7 deletions
fsl/fslview/gl/glimagedata.py
with
2 additions
and
7 deletions
fsl/fslview/gl/glimagedata.py
+
2
−
7
View file @
e7b1bbf9
...
@@ -59,7 +59,7 @@ import OpenGL.GL.ARB.texture_rg as arbrg
...
@@ -59,7 +59,7 @@ import OpenGL.GL.ARB.texture_rg as arbrg
class
GLImageData
(
object
):
class
GLImageData
(
object
):
def
__init__
(
self
,
image
,
xax
,
yax
,
imageDisplay
=
None
):
def
__init__
(
self
,
image
,
xax
,
yax
,
imageDisplay
):
"""
"""
Initialise the OpenGL data buffers required to render the given image.
Initialise the OpenGL data buffers required to render the given image.
Parameters:
Parameters:
...
@@ -70,15 +70,10 @@ class GLImageData(object):
...
@@ -70,15 +70,10 @@ class GLImageData(object):
- yax: The image axis which maps to the screen y axis.
- yax: The image axis which maps to the screen y axis.
- imageDisplay:
Optional. A fsl.data.image
.ImageDisplay object
- imageDisplay:
A fsl.fslview.displaycontext
.ImageDisplay object
which describes how the image is to be displayed.
which describes how the image is to be displayed.
If not provided, the default image.display instance
is used (see fsl.data.image.ImageDisplay for
details).
"""
"""
if
imageDisplay
is
None
:
imageDisplay
=
image
.
display
self
.
image
=
image
self
.
image
=
image
self
.
display
=
imageDisplay
self
.
display
=
imageDisplay
...
...
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