ome.services.blitz.gateway.services.impl
Class RenderingServiceImpl

java.lang.Object
  extended by ome.services.blitz.gateway.services.impl.RenderingServiceImpl
All Implemented Interfaces:
RenderingService

public class RenderingServiceImpl
extends Object
implements RenderingService

Since:
OME3.0
Version:
3.0 (Internal version: $Revision: $Date: $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk, Donald MacDonald      donald@lifesci.dundee.ac.uk

Constructor Summary
RenderingServiceImpl(omero.api.RenderingEnginePrx renderingEngine)
          Create the ImageService passing the gateway.
 
Method Summary
 double getChannelWindowEnd(Long pixelsId, int w)
          Get the channel max.
 double getChannelWindowStart(Long pixelsId, int w)
          Get the channel min.
 int getDefaultT(Long pixelsId)
          Get the default T point of the image
 int getDefaultZ(Long pixelsId)
          Get the default Z section of the image
 omero.model.Pixels getPixels(Long pixelsId)
          Get the pixels of the Rendering engine.
 int[] getRenderedImage(long pixelsId, int z, int t)
          Render image as Buffered image.
 int[][][] getRenderedImageMatrix(long pixelsId, int z, int t)
          Render image as 3d matrix.
 boolean isActive(Long pixelsId, int w)
          Is the channel active.
 int[] renderAsPackedInt(Long pixelsId, int z, int t)
          Render as a packedInt
 int[] renderAsPackedIntAsRGBA(long pixelsId, int z, int t)
          Render image as Buffered image.
 void setActive(Long pixelsId, int w, boolean active)
          Set the active channels in the pixels.
 void setChannelWindow(Long pixelsId, int w, double start, double end)
          Set the channel min, max.
 void setDefaultT(Long pixelsId, int t)
          Set the default timepoint of the image.
 void setDefaultZ(Long pixelsId, int z)
          Set the default Z section of the image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderingServiceImpl

public RenderingServiceImpl(omero.api.RenderingEnginePrx renderingEngine)
Create the ImageService passing the gateway.

Parameters:
renderingEngine - To generate new instances of the renderingEngine.
Method Detail

getChannelWindowEnd

public double getChannelWindowEnd(Long pixelsId,
                                  int w)
                           throws omero.ServerError
Description copied from interface: RenderingService
Get the channel max.

Specified by:
getChannelWindowEnd in interface RenderingService
Parameters:
pixelsId - the pixelsId of the image.
w - channel.
Returns:
see above.
Throws:
omero.ServerError

getChannelWindowStart

public double getChannelWindowStart(Long pixelsId,
                                    int w)
                             throws omero.ServerError
Description copied from interface: RenderingService
Get the channel min.

Specified by:
getChannelWindowStart in interface RenderingService
Parameters:
pixelsId - the pixelsId of the image.
w - channel.
Returns:
see above.
Throws:
omero.ServerError

getDefaultT

public int getDefaultT(Long pixelsId)
                throws omero.ServerError
Description copied from interface: RenderingService
Get the default T point of the image

Specified by:
getDefaultT in interface RenderingService
Parameters:
pixelsId - the pixelsId of the image.
Returns:
see above.
Throws:
omero.ServerError

getDefaultZ

public int getDefaultZ(Long pixelsId)
                throws omero.ServerError
Description copied from interface: RenderingService
Get the default Z section of the image

Specified by:
getDefaultZ in interface RenderingService
Parameters:
pixelsId - the pixelsId of the image.
Returns:
see above.
Throws:
omero.ServerError

getPixels

public omero.model.Pixels getPixels(Long pixelsId)
                             throws omero.ServerError
Description copied from interface: RenderingService
Get the pixels of the Rendering engine.

Specified by:
getPixels in interface RenderingService
Parameters:
pixelsId - the pixelsId of the image.
Returns:
see above.
Throws:
omero.ServerError

isActive

public boolean isActive(Long pixelsId,
                        int w)
                 throws omero.ServerError
Description copied from interface: RenderingService
Is the channel active.

Specified by:
isActive in interface RenderingService
Parameters:
pixelsId - the pixels id.
w - channel
Returns:
true if the channel active.
Throws:
omero.ServerError

renderAsPackedInt

public int[] renderAsPackedInt(Long pixelsId,
                               int z,
                               int t)
                        throws omero.ServerError
Description copied from interface: RenderingService
Render as a packedInt

Specified by:
renderAsPackedInt in interface RenderingService
Parameters:
pixelsId - pixels id of the plane to render
z - z section to render
t - timepoint to render
Returns:
packed int
Throws:
omero.ServerError

setActive

public void setActive(Long pixelsId,
                      int w,
                      boolean active)
               throws omero.ServerError
Description copied from interface: RenderingService
Set the active channels in the pixels.

Specified by:
setActive in interface RenderingService
Parameters:
pixelsId - the pixels id.
w - the channel
active - set active?
Throws:
omero.ServerError

setChannelWindow

public void setChannelWindow(Long pixelsId,
                             int w,
                             double start,
                             double end)
                      throws omero.ServerError
Description copied from interface: RenderingService
Set the channel min, max.

Specified by:
setChannelWindow in interface RenderingService
Parameters:
pixelsId - the pixelsId of the image.
w - channel.
start - min.
end - max.
Throws:
omero.ServerError

setDefaultT

public void setDefaultT(Long pixelsId,
                        int t)
                 throws omero.ServerError
Description copied from interface: RenderingService
Set the default timepoint of the image.

Specified by:
setDefaultT in interface RenderingService
Parameters:
pixelsId - the pixelsId of the image.
t - see above.
Throws:
omero.ServerError

setDefaultZ

public void setDefaultZ(Long pixelsId,
                        int z)
                 throws omero.ServerError
Description copied from interface: RenderingService
Set the default Z section of the image.

Specified by:
setDefaultZ in interface RenderingService
Parameters:
pixelsId - the pixelsId of the image.
z - see above.
Throws:
omero.ServerError

getRenderedImage

public int[] getRenderedImage(long pixelsId,
                              int z,
                              int t)
                       throws omero.ServerError
Description copied from interface: RenderingService
Render image as Buffered image.

Specified by:
getRenderedImage in interface RenderingService
Parameters:
pixelsId - pixels id of the plane to render
z - z section to render
t - timepoint to render
Returns:
packed int
Throws:
omero.ServerError

getRenderedImageMatrix

public int[][][] getRenderedImageMatrix(long pixelsId,
                                        int z,
                                        int t)
                                 throws omero.ServerError
Description copied from interface: RenderingService
Render image as 3d matrix.

Specified by:
getRenderedImageMatrix in interface RenderingService
Parameters:
pixelsId - pixels id of the plane to render
z - z section to render
t - timepoint to render
Returns:
packed int
Throws:
omero.ServerError

renderAsPackedIntAsRGBA

public int[] renderAsPackedIntAsRGBA(long pixelsId,
                                     int z,
                                     int t)
                              throws omero.ServerError
Description copied from interface: RenderingService
Render image as Buffered image.

Specified by:
renderAsPackedIntAsRGBA in interface RenderingService
Parameters:
pixelsId - pixels id of the plane to render
z - z section to render
t - timepoint to render
Returns:
packed int
Throws:
omero.ServerError


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

Copyright © 2009 The University of Dundee. All Rights Reserved.