Skip to content
Snippets Groups Projects
Commit e7b1bbf9 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

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
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment