public class ROIWrapper extends AnnotatableWrapper<ROIData> implements ROI
Wraps function calls to the ROIData contained.
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATION_LINK
Annotation link name for this type of object
|
data
IJ_PROPERTY
Constructor and Description |
---|
ROIWrapper()
Constructor of the ROIWrapper class.
|
ROIWrapper(Iterable<? extends Shape> shapes)
Constructor of the ROIWrapper class.
|
ROIWrapper(ROIData roi)
Constructor of the ROIWrapper class.
|
Modifier and Type | Method and Description |
---|---|
void |
addShape(Shape shape)
Adds a Shape to the ROI.
|
protected String |
annotationLinkType()
Returns the type of annotation link for this object.
|
void |
deleteShape(int pos)
Deletes a shape from the ROI.
|
void |
deleteShape(ShapeData shape)
Deletes a ShapeData from the ROI.
|
static List<ROI> |
fromImageJ(Collection<? extends Roi> ijRois)
Converts a collection of ImageJ ROIs to a list of OMERO ROIs
|
static List<ROI> |
fromImageJ(Collection<? extends Roi> ijRois,
String property)
Converts a collection of ImageJ ROIs to a list of OMERO ROIs
|
String |
getName()
Gets the ROI name.
|
List<Shape> |
getShapes()
Returns the list of shapes contained in the ROI.
|
void |
saveROI(DataManager dm)
Saves the ROI.
|
void |
setImage(Image image)
Sets the image linked to the ROI.
|
void |
setName(String name)
Sets the ROI name.
|
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlink
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addShapes, asDataObject, checkProperty, fromImageJ, fromImageJ, getBounds, ijIDProperty, ijNameProperty, link, toImageJ, toImageJ, toImageJ, toImageJ, toImageJ
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, linkIfNotLinked, rate, unlink
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
public static final String ANNOTATION_LINK
public ROIWrapper()
public ROIWrapper(Iterable<? extends Shape> shapes)
shapes
- List of shapes to add to the ROIData.public ROIWrapper(ROIData roi)
roi
- The ROIData to wrap.public static List<ROI> fromImageJ(Collection<? extends Roi> ijRois)
ijRois
- A collection of ImageJ ROIs.public static List<ROI> fromImageJ(Collection<? extends Roi> ijRois, String property)
ijRois
- A collection of ImageJ ROIs.property
- The property used to store the 4D ROI local index/label. Defaults to if null
or empty.public String getName()
public void setName(String name)
public void addShape(Shape shape)
public void setImage(Image image)
public void deleteShape(ShapeData shape)
deleteShape
in interface ROI
shape
- ShapeData to delete.public void deleteShape(int pos)
deleteShape
in interface ROI
pos
- Position of the ShapeData in the ShapeData list from the ROI.IndexOutOfBoundsException
- If pos is out of the ShapeData list bounds.public void saveROI(DataManager dm) throws ServiceException, AccessException, ExecutionException
saveROI
in interface ROI
dm
- The data manager.ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.ExecutionException
- A Facility can't be retrieved or instantiated.protected String annotationLinkType()
annotationLinkType
in class AnnotatableWrapper<ROIData>
Copyright © 2020–2023 GReD. All rights reserved.