Package omero.gateway.model
Class ROIData
- java.lang.Object
- 
- omero.gateway.model.DataObject
- 
- omero.gateway.model.ROIData
 
 
- 
 public class ROIData extends DataObject Converts the ROI object.- Since:
- 3.0-Beta4
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddShapeData(ShapeData shape)Adds ShapeData object to ROIData.ROICoordinatefirstPlane()Deprecated.Will be removed in future.java.util.Collection<FolderData>getFolders()Get the folders this ROI is part ofImageDatagetImage()Returns the image for the ROI.java.util.Iterator<java.util.List<ShapeData>>getIterator()Returns the iterator of the collection of the map.intgetPlaneCount()Deprecated.Will be removed in future.intgetShapeCount()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.java.lang.StringgetUuid()Get the UUIDbooleanisClientSide()Returnstrueif the object a client-side object,falseotherwise.ROICoordinatelastPlane()Deprecated.Will be removed in future.voidremoveShapeData(ShapeData shape)Removes the ShapeData object from ROIData.voidsetClientSide(boolean clientSide)Sets the flag indicating if the object is a client-side object or not.voidsetImage(omero.model.Image image)Sets the image for the ROI.voidsetUuid(java.lang.String uuid)Set the UUID- 
Methods inherited from class omero.gateway.model.DataObjectasAnnotation, 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
 
- 
 
- 
- 
- 
Method Detail- 
setImagepublic void setImage(omero.model.Image image) Sets the image for the ROI.- Parameters:
- image- See above.
 
 - 
getImagepublic ImageData getImage() Returns the image for the ROI.- Returns:
- See above.
 
 - 
addShapeDatapublic void addShapeData(ShapeData shape) Adds ShapeData object to ROIData.- Parameters:
- shape- See above.
 
 - 
removeShapeDatapublic void removeShapeData(ShapeData shape) Removes the ShapeData object from ROIData.- Parameters:
- shape- See above.
 
 - 
getPlaneCount@Deprecated public 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)Returns the number of planes occupied by the ROI.- Returns:
- See above.
 
 - 
getShapeCountpublic int getShapeCount() Returns the number of shapes in the ROI.- Returns:
- See above.
 
 - 
getShapespublic java.util.List<ShapeData> getShapes() Returns a list of all shapes.- Returns:
- See above.
 
 - 
getShapespublic 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).- Parameters:
- 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).
- Returns:
- See above.
 
 - 
getShapespublic java.util.List<ShapeData> getShapes(int z, int t, boolean excludeUnspecific) Returns a list of shapes on a given plane.- Parameters:
- 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.
- Returns:
- See above.
 
 - 
getIteratorpublic java.util.Iterator<java.util.List<ShapeData>> getIterator() Returns the iterator of the collection of the map.- Returns:
- See above.
 
 - 
firstPlane@Deprecated public 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)Return the first plane that the ROI starts on.- Returns:
- See above.
 
 - 
lastPlane@Deprecated public 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)Returns the last plane that the ROI ends on.- Returns:
- See above.
 
 - 
getShapesInRange@Deprecated public 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)Returns an iterator of the Shapes in the ROI in the range [start, end].- Parameters:
- start- The starting plane where the Shapes should reside.
- end- The final plane where the Shapes should reside.
- Returns:
- See above.
 
 - 
isClientSidepublic boolean isClientSide() Returnstrueif the object a client-side object,falseotherwise.- Returns:
- See above.
 
 - 
setClientSidepublic void setClientSide(boolean clientSide) Sets the flag indicating if the object is a client-side object or not.- Parameters:
- clientSide- Passed- trueif it is a client-side object,- falseotherwise.
 
 - 
getFolderspublic java.util.Collection<FolderData> getFolders() Get the folders this ROI is part of- Returns:
- See above.
 
 - 
getUuidpublic java.lang.String getUuid() Get the UUID- Returns:
- See above
 
 - 
setUuidpublic void setUuid(java.lang.String uuid) Set the UUID- Parameters:
- uuid- The UUID
 
 
- 
 
-