Package omeis.providers.re.data
Class PlaneDef
- java.lang.Object
-
- omeis.providers.re.data.PlaneDef
-
- All Implemented Interfaces:
java.io.Serializable
public class PlaneDef extends java.lang.Object implements java.io.SerializableIdentifies a 2D-plane in the XYZ moving frame of the 3D stack. Tells which plane the wavelengths to render belong to.- Since:
- OME2.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PlaneDef(int slice, int t)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Overridden to reflect equality of abstract values (data object) as opposite to object identity.RegionDefgetRegion()Returns the region to render.booleangetRenderShapes()Returns whether or not the shapes (masks) will be rendered.java.util.List<java.lang.Long>getShapeIds()Returns whether or not the shapes (masks) will be rendered.intgetSlice()Returns an identifier to tell which kind of plane this object identifies.intgetStride()Returns the stride.intgetT()Returns the timepoint.intgetX()Returns the index of the plane in the set identified by this object.intgetY()Returns the index of the plane in the set identified by this object.intgetZ()Returns the index of the plane in the set identified by this object.inthashCode()Overridden to reflect equality of abstract values (data object) as opposite to object identity.voidsetRegion(RegionDef region)Sets the region to render.voidsetRenderShapes(boolean renderShapes)Sets whether or not to render the shapes (masks).voidsetShapeIds(java.util.List<java.lang.Long> shapeIds)Sets whether or not to render the shapes (masks).voidsetStride(int stride)Returns the stride.voidsetX(int x)Selects a plane in the set identified by this object.voidsetY(int y)Selects a plane in the set identified by this object.voidsetZ(int z)Selects a plane in the set identified by this object.java.lang.StringtoString()Overrides generictoStringmethod to provide a specific string representation of this object.
-
-
-
Field Detail
-
XY
public static final int XY
Flag to identify an XY-plane.- See Also:
- Constant Field Values
-
ZY
public static final int ZY
Flag to identify an YZ-plane.- See Also:
- Constant Field Values
-
XZ
public static final int XZ
Flag to identify an XZ-plane.- See Also:
- Constant Field Values
-
-
Method Detail
-
setX
public void setX(int x)
Selects a plane in the set identified by this object. Can only be called in the context of an ZY-plane.- Parameters:
x- The plane index.- Throws:
java.lang.IllegalArgumentException- If bad arguments are passed in or this is not an ZY-plane.
-
setY
public void setY(int y)
Selects a plane in the set identified by this object. Can only be called in the context of an XZ-plane.- Parameters:
y- The plane index.- Throws:
java.lang.IllegalArgumentException- If bad arguments are passed in or this is not an XZ-plane.
-
setZ
public void setZ(int z)
Selects a plane in the set identified by this object. Can only be called in the context of an XY-plane.- Parameters:
z- The plane index.- Throws:
java.lang.IllegalArgumentException- If bad arguments are passed in or this is not an XY-plane.
-
getSlice
public int getSlice()
Returns an identifier to tell which kind of plane this object identifies.
-
getT
public int getT()
Returns the timepoint.- Returns:
- See above.
-
getX
public int getX()
Returns the index of the plane in the set identified by this object. Only relevant in the case of an YZ-plane.- Returns:
- See above.
-
getY
public int getY()
Returns the index of the plane in the set identified by this object. Only relevant in the case of an XZ-plane.- Returns:
- See above.
-
getZ
public int getZ()
Returns the index of the plane in the set identified by this object. Only relevant in the case of an XY-plane.- Returns:
- See above.
-
setRegion
public void setRegion(RegionDef region)
Sets the region to render.- Parameters:
region- The region to render.
-
getRegion
public RegionDef getRegion()
Returns the region to render.- Returns:
- See above.
-
setStride
public void setStride(int stride)
Returns the stride.- Parameters:
stride- The value to set.
-
getStride
public int getStride()
Returns the stride.- Returns:
- See above.
-
getRenderShapes
public boolean getRenderShapes()
Returns whether or not the shapes (masks) will be rendered.- Returns:
- See above.
-
setRenderShapes
public void setRenderShapes(boolean renderShapes)
Sets whether or not to render the shapes (masks).- Parameters:
renderShapes- The value to set.
-
getShapeIds
public java.util.List<java.lang.Long> getShapeIds()
Returns whether or not the shapes (masks) will be rendered.- Returns:
- See above.
-
setShapeIds
public void setShapeIds(java.util.List<java.lang.Long> shapeIds)
Sets whether or not to render the shapes (masks).- Parameters:
shapeIds- The value to set.
-
equals
public boolean equals(java.lang.Object o)
Overridden to reflect equality of abstract values (data object) as opposite to object identity.- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
Overridden to reflect equality of abstract values (data object) as opposite to object identity.- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
Overrides generictoStringmethod to provide a specific string representation of this object.- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-