Package ome.io.nio

Class RomioPixelBuffer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, PixelBuffer

    public class RomioPixelBuffer
    extends AbstractBuffer
    implements PixelBuffer
    Class implementation of the PixelBuffer interface for standard "proprietary" ROMIO/OMEIS data format.
    Since:
    3.0
    See Also:
    PixelBuffer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAXIMUM_BUFFER_SIZE
      Default maximum buffer size for planar data transfer.
    • Constructor Summary

      Constructors 
      Constructor Description
      RomioPixelBuffer​(java.lang.String path, ome.model.core.Pixels pixels)
      Creates a new instance.
      RomioPixelBuffer​(java.lang.String path, ome.model.core.Pixels pixels, boolean permitModification)
      Creates a new instance, with manual setting of permitModification.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] calculateMessageDigest()
      Implemented as specified by PixelBuffer I/F.
      void checkBounds​(java.lang.Integer x, java.lang.Integer y, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      void close()
      Closes the buffer, cleaning up file state.
      int getByteWidth()
      Implemented as specified by PixelBuffer I/F.
      ome.util.PixelData getCol​(java.lang.Integer x, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      byte[] getColDirect​(java.lang.Integer x, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t, byte[] buffer)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Integer getColSize()
      Implemented as specified by PixelBuffer I/F.
      ome.util.PixelData getHypercube​(java.util.List<java.lang.Integer> offset, java.util.List<java.lang.Integer> size, java.util.List<java.lang.Integer> step)
      Implemented as specified by PixelBuffer I/F.
      byte[] getHypercubeDirect​(java.util.List<java.lang.Integer> offset, java.util.List<java.lang.Integer> size, java.util.List<java.lang.Integer> step, byte[] buffer)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Long getHypercubeSize​(java.util.List<java.lang.Integer> offset, java.util.List<java.lang.Integer> size, java.util.List<java.lang.Integer> step)
      Retrieves a the size of a hypercube from this pixel buffer.
      long getId()
      Implemented as specified by PixelBuffer I/F.
      ome.util.PixelData getPlane​(java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      byte[] getPlaneDirect​(java.lang.Integer z, java.lang.Integer c, java.lang.Integer t, byte[] buffer)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Long getPlaneOffset​(java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      ome.util.PixelData getPlaneRegion​(java.lang.Integer x, java.lang.Integer y, java.lang.Integer width, java.lang.Integer height, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t, java.lang.Integer stride)
      Implemented as specified by ByteBuffer I/F.
      byte[] getPlaneRegionDirect​(java.lang.Integer z, java.lang.Integer c, java.lang.Integer t, java.lang.Integer count, java.lang.Integer offset, byte[] buffer)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Long getPlaneSize()
      Implemented as specified by PixelBuffer I/F.
      ome.util.PixelData getRegion​(java.lang.Integer size, java.lang.Long offset)
      Implemented as specified by PixelBuffer I/F.
      byte[] getRegionDirect​(java.lang.Integer size, java.lang.Long offset, byte[] buffer)
      Implemented as specified by PixelBuffer I/F.
      java.util.List<java.util.List<java.lang.Integer>> getResolutionDescriptions()
      Return a list of lists each of which has sizeX, sizeY for the resolution level matching the index of the outer index.
      int getResolutionLevel()
      Retrieves the active resolution level.
      int getResolutionLevels()
      Retrieves the number of resolution levels that the backing pixels pyramid contains.
      ome.util.PixelData getRow​(java.lang.Integer y, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      byte[] getRowDirect​(java.lang.Integer y, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t, byte[] buffer)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Long getRowOffset​(java.lang.Integer y, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Integer getRowSize()
      Implemented as specified by PixelBuffer I/F.
      java.lang.String getSha1()  
      int getSizeC()
      Implemented as specified by PixelBuffer I/F.
      int getSizeT()
      Implemented as specified by PixelBuffer I/F.
      int getSizeX()
      Implemented as specified by PixelBuffer I/F.
      int getSizeY()
      Implemented as specified by PixelBuffer I/F.
      int getSizeZ()
      Implemented as specified by PixelBuffer I/F.
      ome.util.PixelData getStack​(java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      byte[] getStackDirect​(java.lang.Integer c, java.lang.Integer t, byte[] buffer)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Long getStackOffset​(java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Long getStackSize()
      Implemented as specified by PixelBuffer I/F.
      ome.util.PixelData getTile​(java.lang.Integer z, java.lang.Integer c, java.lang.Integer t, java.lang.Integer x, java.lang.Integer y, java.lang.Integer w, java.lang.Integer h)
      Retrieves a tile from this pixel buffer.
      byte[] getTileDirect​(java.lang.Integer z, java.lang.Integer c, java.lang.Integer t, java.lang.Integer x, java.lang.Integer y, java.lang.Integer w, java.lang.Integer h, byte[] buffer)
      Retrieves a tile from this pixel buffer.
      java.awt.Dimension getTileSize()
      Retrieves the tile size for the pixel store.
      ome.util.PixelData getTimepoint​(java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      byte[] getTimepointDirect​(java.lang.Integer t, byte[] buffer)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Long getTimepointOffset​(java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      java.lang.Long getTimepointSize()
      Implemented as specified by PixelBuffer I/F.
      java.lang.Long getTotalSize()
      Implemented as specified by PixelBuffer I/F.
      boolean isFloat()
      Implemented as specified by PixelBuffer I/F.
      boolean isSigned()
      Implemented as specified by PixelBuffer I/F.
      static java.lang.Integer safeLongToInteger​(java.lang.Long v)
      Converts a Long value to an Integer safely.
      void setPlane​(byte[] buffer, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      void setPlane​(java.nio.ByteBuffer buffer, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      void setRegion​(java.lang.Integer size, java.lang.Long offset, byte[] buffer)
      Implemented as specified by PixelBuffer I/F.
      void setRegion​(java.lang.Integer size, java.lang.Long offset, java.nio.ByteBuffer buffer)
      Implemented as specified by PixelBuffer I/F.
      void setResolutionLevel​(int resolutionLevel)
      Sets the active resolution level.
      void setRow​(java.nio.ByteBuffer buffer, java.lang.Integer y, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      void setStack​(byte[] buffer, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      void setStack​(java.nio.ByteBuffer buffer, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      void setTile​(byte[] buffer, java.lang.Integer z, java.lang.Integer c, java.lang.Integer t, java.lang.Integer x, java.lang.Integer y, java.lang.Integer w, java.lang.Integer h)
      Sets a tile in this pixel buffer.
      void setTimepoint​(byte[] buffer, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      void setTimepoint​(java.nio.ByteBuffer buffer, java.lang.Integer t)
      Implemented as specified by PixelBuffer I/F.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait