Package omeroweb :: Package webtest :: Module views
[hide private]
[frames] | no frames]

Module views

source code

Functions [hide private]
 
dataset(request, datasetId, **kwargs)
'Hello World' example from tutorial on http://trac.openmicroscopy.org.uk/ome/wiki/OmeroWeb
source code
 
login(request)
Attempts to get a connection to the server by calling omeroweb.webgateway.views.getBlitzConnection with the 'request' object.
source code
 
logout(request) source code
 
index(request, **kwargs) source code
 
channel_overlay_viewer(request, imageId, **kwargs)
Viewer for overlaying separate channels from the same image or different images and adjusting horizontal and vertical alignment of each
source code
 
render_channel_overlay(request, **kwargs)
Overlays separate channels (red, green, blue) from the same image or different images manipulating each indepdently (translate, scale, rotate etc? )
source code
 
metadata(request, iid, **kwargs) source code
 
roi_viewer(request, roi_library, imageId, **kwargs)
Displays an image, using 'jquery.drawinglibrary.js' to draw ROIs on the image.
source code
 
add_annotations(request, **kwargs)
Creates a omero.gateway.CommentAnnotationWrapper and adds it to the images according to variables in the http request.
source code
 
split_view_figure(request, **kwargs)
Generates an html page displaying a number of images in a grid with channels split into different columns.
source code
 
dataset_split_view(request, datasetId, **kwargs)
Generates a web page that displays a dataset in two panels, with the option to choose different rendering settings (channels on/off) for each panel.
source code
 
image_dimensions(request, imageId, **kwargs)
Prepare data to display various dimensions of a multi-dim image as axes of a grid of image planes.
source code
 
image_viewer(request, iid, **kwargs)
This view is responsible for showing pixel data as images
source code
Variables [hide private]
  logger = logging.getLogger('webtest')

Imports: HttpResponseRedirect, HttpResponse, reverse, render_to_response, getBlitzConnection, _session_logout, webgateway_views, isUserConnected, getSpimData, StringIO, settings, logging, traceback, rint, rstring, omero, Image


Function Details [hide private]

dataset(request, datasetId, **kwargs)

source code 

'Hello World' example from tutorial on http://trac.openmicroscopy.org.uk/ome/wiki/OmeroWeb

Decorators:
  • @isUserConnected

login(request)

source code 

Attempts to get a connection to the server by calling omeroweb.webgateway.views.getBlitzConnection with the 'request' object. If a connection is created, the user is directed to the 'webtest_index' page. If a connection is not created, this method returns a login page.

Parameters:
  • request - The django http request
Returns:
The http response - webtest_index or login page

index(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

channel_overlay_viewer(request, imageId, **kwargs)

source code 

Viewer for overlaying separate channels from the same image or different images and adjusting horizontal and vertical alignment of each

Decorators:
  • @isUserConnected

render_channel_overlay(request, **kwargs)

source code 

Overlays separate channels (red, green, blue) from the same image or different images manipulating each indepdently (translate, scale, rotate etc? )

Decorators:
  • @isUserConnected

metadata(request, iid, **kwargs)

source code 
Decorators:
  • @isUserConnected

roi_viewer(request, roi_library, imageId, **kwargs)

source code 

Displays an image, using 'jquery.drawinglibrary.js' to draw ROIs on the image.

Decorators:
  • @isUserConnected

add_annotations(request, **kwargs)

source code 

Creates a omero.gateway.CommentAnnotationWrapper and adds it to the images according to variables in the http request.

Parameters:
  • request - The django django.core.handlers.wsgi.WSGIRequest
    • imageIds: A comma-delimited list of image IDs
    • comment: The text to add as a comment to the images
    • ns: Namespace for the annotation
    • replace: If "true", try to replace existing annotation with same ns
Returns:
A simple html page with a success message
Decorators:
  • @isUserConnected

split_view_figure(request, **kwargs)

source code 

Generates an html page displaying a number of images in a grid with channels split into different columns. The page also includes a form for modifying various display parameters and re-submitting to regenerate this page. If no 'imageIds' parameter (comma-delimited list) is found in the 'request', the page generated is simply a form requesting image IDs. If there are imageIds, the first ID (image) is used to generate the form based on channels of that image.

Parameters:
  • request - The django http request
Returns:
The http response - html page displaying split view figure.
Decorators:
  • @isUserConnected

dataset_split_view(request, datasetId, **kwargs)

source code 

Generates a web page that displays a dataset in two panels, with the option to choose different rendering settings (channels on/off) for each panel. It uses the render_image url for each image, generating the full sized image which is scaled down to view.

The page also includes a form for editing the channel settings and display size of images. This form resubmits to this page and displays the page again with updated parameters.

Parameters:
  • request - The django http request
  • datasetId (Number.) - The ID of the dataset.
Returns:
The http response - html page displaying split view figure.
Decorators:
  • @isUserConnected

image_dimensions(request, imageId, **kwargs)

source code 

Prepare data to display various dimensions of a multi-dim image as axes of a grid of image planes. E.g. x-axis = Time, y-axis = Channel. If the image has spim data, then combine images with different SPIM angles to provide an additional dimension. Also get the SPIM data from various XML annotations and display on page.

Decorators:
  • @isUserConnected

image_viewer(request, iid, **kwargs)

source code 

This view is responsible for showing pixel data as images

Decorators:
  • @isUserConnected