ome.services.blitz.gateway.services.impl
Class RawPixelsStoreServiceImpl

java.lang.Object
  extended by ome.services.blitz.gateway.services.impl.RawPixelsStoreServiceImpl
All Implemented Interfaces:
RawPixelsStoreService

public class RawPixelsStoreServiceImpl
extends Object
implements RawPixelsStoreService

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
RawPixelsStoreServiceImpl(omero.api.RawPixelsStorePrx rawPixelsStore)
          Create the ImageService passing the gateway.
 
Method Summary
 int getByteWidth(long pixelsId)
          Get the bytewidth of the image
 byte[] getPlane(long pixelsId, int z, int c, int t)
          get bytes to the plane c, t, z
 int getPlaneSize(long pixelsId)
          Get the plane size of the current image.
 int getRowSize(long pixelsId)
          Get the plane size of the current image.
 int getStackSize(long pixelsId)
          Get the stack size of the current image.
 int getTimepointSize(long pixelsId)
          Get the timepoint size of the current image.
 int getTotalSize(long pixelsId)
          Get the total size of the current image.
 boolean isFloat(long pixelsId)
          Are the bytes in the image floats.
 boolean isSigned(long pixelsId)
          Are the bytes in the image signed.
 void setPlane(long pixelsId, byte[] buf, int z, int c, int t)
          set the plane at z, c, t to the bytes of buf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawPixelsStoreServiceImpl

public RawPixelsStoreServiceImpl(omero.api.RawPixelsStorePrx rawPixelsStore)
Create the ImageService passing the gateway.

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

getByteWidth

public int getByteWidth(long pixelsId)
                 throws omero.ServerError
Description copied from interface: RawPixelsStoreService
Get the bytewidth of the image

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

getPlane

public byte[] getPlane(long pixelsId,
                       int z,
                       int c,
                       int t)
                throws omero.ServerError
Description copied from interface: RawPixelsStoreService
get bytes to the plane c, t, z

Specified by:
getPlane in interface RawPixelsStoreService
Parameters:
pixelsId - the pixelsId of the image.
z - see above.
c - see above.
t - the bytes.
Returns:
see above.
Throws:
omero.ServerError

getPlaneSize

public int getPlaneSize(long pixelsId)
                 throws omero.ServerError
Description copied from interface: RawPixelsStoreService
Get the plane size of the current image.

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

getRowSize

public int getRowSize(long pixelsId)
               throws omero.ServerError
Description copied from interface: RawPixelsStoreService
Get the plane size of the current image.

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

getStackSize

public int getStackSize(long pixelsId)
                 throws omero.ServerError
Description copied from interface: RawPixelsStoreService
Get the stack size of the current image.

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

getTimepointSize

public int getTimepointSize(long pixelsId)
                     throws omero.ServerError
Description copied from interface: RawPixelsStoreService
Get the timepoint size of the current image.

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

getTotalSize

public int getTotalSize(long pixelsId)
                 throws omero.ServerError
Description copied from interface: RawPixelsStoreService
Get the total size of the current image.

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

isFloat

public boolean isFloat(long pixelsId)
                throws omero.ServerError
Description copied from interface: RawPixelsStoreService
Are the bytes in the image floats.

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

isSigned

public boolean isSigned(long pixelsId)
                 throws omero.ServerError
Description copied from interface: RawPixelsStoreService
Are the bytes in the image signed.

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

setPlane

public void setPlane(long pixelsId,
                     byte[] buf,
                     int z,
                     int c,
                     int t)
              throws omero.ServerError
Description copied from interface: RawPixelsStoreService
set the plane at z, c, t to the bytes of buf.

Specified by:
setPlane in interface RawPixelsStoreService
Parameters:
pixelsId - the pixelsId of the image.
buf - bytes of the plane.
z - z section
c - channel
t - timepoint
Throws:
omero.ServerError


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

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