pojos.util
Class MaskClass

java.lang.Object
  extended by pojos.util.MaskClass

public class MaskClass
extends Object

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

Method Summary
 void add(Point p)
          Add the point to the Mask.
 byte[] asBytes()
          Convert the mask data to a byte array.
 MaskData asMaskData(int z, int t, int c)
          Return the MaskClass as a MaskData object, and assign it to The coords provided.
 byte getBit(byte[] data, int bit)
          Set the bit value in a byte array at position bit to be the value value.
 Color getColour()
          Return the colour of the mask.
 void setBit(byte[] data, int bit, int val)
          Set the bit value in a byte array at position bit to be the value value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColour

public Color getColour()
Return the colour of the mask.

Returns:
See above.

asBytes

public byte[] asBytes()
               throws IOException
Convert the mask data to a byte array.

Returns:
See above.
Throws:
IOException

add

public void add(Point p)
Add the point to the Mask.

Parameters:
p - See above.

asMaskData

public MaskData asMaskData(int z,
                           int t,
                           int c)
                    throws IOException
Return the MaskClass as a MaskData object, and assign it to The coords provided.

Parameters:
z - See above.
t - See above.
c - See above.
Returns:
See above.
Throws:
IOException

setBit

public void setBit(byte[] data,
                   int bit,
                   int val)
Set the bit value in a byte array at position bit to be the value value.

Parameters:
data - See above.
bit - See above.
val - See above.

getBit

public byte getBit(byte[] data,
                   int bit)
Set the bit value in a byte array at position bit to be the value value.

Parameters:
data - See above.
bit - See above.
val - See above.


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

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