• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • Last Change
  • Annotate
  • Revision Log

root/trunk/components/common/src/ome/api/RawPixelsStore.java

Revision 2796, 2.1 kB (checked in by callan, 4 months ago)

Initial version of getCol() (#1098)

  • Property svn:keywords set to
    Date
    Revision
    Id
    URL
Line 
1/*
2 *   ome.api.RawPixelsStore
3 *
4 *   Copyright 2006 University of Dundee. All rights reserved.
5 *   Use is subject to license terms supplied in LICENSE.txt
6 */
7
8package ome.api;
9
10/**
11 * Binary data provider. Initialized with the id of a
12 * {@link ome.model.core.Pixels} instance, this interface can provide various
13 * slices, stacks, regions of the 5-dimensional (X-Y planes with multiple
14 * Z-sections and Channels over Time). The byte array returned by the getter
15 * methods and passed to the setter methods can and will be interpreted
16 * according to results of {@link #getByteWidth()}, {@link #isFloat()}, and
17 * {@link #isSigned()}.
18 */
19public interface RawPixelsStore extends StatefulServiceInterface {
20
21    // State management.
22    public void setPixelsId(long pixelsId);
23
24    /**
25     * delegates to {@link ome.io.nio.PixelBuffer}
26     *
27     * @param pixelsId
28     * @return
29     * @see ome.io.nio.PixelBuffer#getPlaneSize()
30     */
31    public int getPlaneSize();
32
33    public int getRowSize();
34
35    public int getStackSize();
36
37    public int getTimepointSize();
38
39    public int getTotalSize();
40
41    public long getRowOffset(int y, int z, int c, int t);
42
43    public long getPlaneOffset(int z, int c, int t);
44
45    public long getStackOffset(int c, int t);
46
47    public long getTimepointOffset(int t);
48
49    public byte[] getRegion(int size, long offset);
50   
51    public byte[] getRow(int y, int z, int c, int t);
52   
53    public byte[] getCol(int x, int z, int c, int t);
54
55    public byte[] getPlaneRegion(int z, int c, int t, int count, int offset);
56
57    public byte[] getPlane(int z, int c, int t);
58
59    public byte[] getStack(int c, int t);
60
61    public byte[] getTimepoint(int t);
62
63    public void setRegion(int size, long offset, byte[] buffer);
64
65    public void setRow(byte[] buffer, int y, int z, int c, int t);
66
67    public void setPlane(byte[] buffer, int z, int c, int t);
68
69    public void setStack(byte[] buffer, int z, int c, int t);
70
71    public void setTimepoint(byte[] buffer, int t);
72
73    public int getByteWidth();
74
75    public boolean isSigned();
76
77    public boolean isFloat();
78
79    public byte[] calculateMessageDigest();
80
81}
Note: See TracBrowser for help on using the browser.

Download in other formats:

  • Plain Text
  • Original Format

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/