public class ROIData extends DataObject
Constructor and Description |
---|
ROIData()
Create a new instance of an ROIData object.
|
ROIData(omero.model.Roi roi)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addShapeData(ShapeData shape)
Adds ShapeData object to ROIData.
|
ROICoordinate |
firstPlane()
Deprecated.
Will be removed in future. Does not work as
expected if the ROI contains shapes which are associated
with all planes (Z, C, T == -1)
|
java.util.Collection<FolderData> |
getFolders()
Get the folders this ROI is part of
|
ImageData |
getImage()
Returns the image for the ROI.
|
java.util.Iterator<java.util.List<ShapeData>> |
getIterator()
Returns the iterator of the collection of the map.
|
int |
getPlaneCount()
Deprecated.
Will be removed in future. Does not work as
expected if the ROI contains shapes which are associated
with all planes (Z, C, T == -1)
|
int |
getShapeCount()
Returns the number of shapes in the ROI.
|
java.util.List<ShapeData> |
getShapes()
Returns a list of all shapes.
|
java.util.List<ShapeData> |
getShapes(int z,
int t)
Returns a list of shapes on a given plane, including
shapes which are not specifically attached to the plane
(span over all z planes and/or timepoints).
|
java.util.List<ShapeData> |
getShapes(int z,
int t,
boolean excludeUnspecific)
Returns a list of shapes on a given plane.
|
java.util.Iterator<java.util.List<ShapeData>> |
getShapesInRange(ROICoordinate start,
ROICoordinate end)
Deprecated.
Will be removed in future. Does not work as
expected if the ROI contains shapes which are associated
with all planes (Z, C, T == -1)
|
java.lang.String |
getUuid()
Get the UUID
|
boolean |
isClientSide()
Returns
true if the object a client-side object,
false otherwise. |
ROICoordinate |
lastPlane()
Deprecated.
Will be removed in future. Does not work as
expected if the ROI contains shapes which are associated
with all planes (Z, C, T == -1)
|
void |
removeShapeData(ShapeData shape)
Removes the ShapeData object from ROIData.
|
void |
setClientSide(boolean clientSide)
Sets the flag indicating if the object is a client-side object or not.
|
void |
setImage(omero.model.Image image)
Sets the image for the ROI.
|
void |
setUuid(java.lang.String uuid)
Set the UUID
|
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
public ROIData(omero.model.Roi roi)
roi
- The ROI hosted by the component.public ROIData()
public void setImage(omero.model.Image image)
image
- See above.public ImageData getImage()
public void addShapeData(ShapeData shape)
shape
- See above.public void removeShapeData(ShapeData shape)
shape
- See above.@Deprecated public int getPlaneCount()
public int getShapeCount()
public java.util.List<ShapeData> getShapes()
public java.util.List<ShapeData> getShapes(int z, int t)
z
- The z-section (-1 to get only shapes which are
available to all z planes).t
- The timepoint (-1 to get only shapes which are
available to all timepoints).public java.util.List<ShapeData> getShapes(int z, int t, boolean excludeUnspecific)
z
- The z-section (-1 to get only shapes which are
available to all z planes).t
- The timepoint (-1 to get only shapes which are
available to all timepoints).excludeUnspecific
- Pass true to only get shapes which
are specifically bound to the given z/t
plane, excluding shapes which are available
to all z planes and/or timepoints.public java.util.Iterator<java.util.List<ShapeData>> getIterator()
@Deprecated public ROICoordinate firstPlane()
@Deprecated public ROICoordinate lastPlane()
@Deprecated public java.util.Iterator<java.util.List<ShapeData>> getShapesInRange(ROICoordinate start, ROICoordinate end)
start
- The starting plane where the Shapes should reside.end
- The final plane where the Shapes should reside.public boolean isClientSide()
true
if the object a client-side object,
false
otherwise.public void setClientSide(boolean clientSide)
clientSide
- Passed true
if it is a client-side object,
false
otherwise.public java.util.Collection<FolderData> getFolders()
public java.lang.String getUuid()
public void setUuid(java.lang.String uuid)
uuid
- The UUID