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()
Return the first plane that the ROI starts on.
|
Collection<FolderData> |
getFolders()
Get the folders this ROI is part of
|
ImageData |
getImage()
Returns the image for the ROI.
|
Iterator<List<ShapeData>> |
getIterator()
Returns the iterator of the collection of the map.
|
int |
getPlaneCount()
Returns the number of planes occupied by the ROI.
|
int |
getShapeCount()
Returns the number of shapes in the ROI.
|
List<ShapeData> |
getShapes(int z,
int t)
Returns the list of shapes on a given plane.
|
Iterator<List<ShapeData>> |
getShapesInRange(ROICoordinate start,
ROICoordinate end)
Returns an iterator of the Shapes in the ROI in the range [start, end].
|
String |
getUuid()
Get the UUID
|
boolean |
isClientSide()
Returns
true if the object a client-side object,
false otherwise. |
ROICoordinate |
lastPlane()
Returns the last plane that the ROI ends on.
|
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(String uuid)
Set the UUID
|
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, 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.public int getPlaneCount()
public int getShapeCount()
public List<ShapeData> getShapes(int z, int t)
z
- The z-section.t
- The timepoint.public Iterator<List<ShapeData>> getIterator()
public ROICoordinate firstPlane()
public ROICoordinate lastPlane()
public Iterator<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 Collection<FolderData> getFolders()
public String getUuid()
public void setUuid(String uuid)
uuid
- The UUID
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.