public class ROIFacility extends Facility
Facility
for ROI.Modifier and Type | Method and Description |
---|---|
Map<FolderData,Collection<ROIData>> |
addRoisToFolders(SecurityContext ctx,
long imageID,
Collection<ROIData> roiList,
Collection<FolderData> folders)
Adds ROIs to Folders
|
Map<FolderData,Collection<ROIData>> |
addRoisToFolders(SecurityContext ctx,
long imageID,
Collection<ROIData> roiList,
Collection<FolderData> folders,
boolean removeFromOtherFolders)
Adds ROIs to Folders
|
int |
getROICount(SecurityContext ctx,
long imageId)
Get the number of ROIs for an image (
-1
in case of error) |
Collection<FolderData> |
getROIFolders(SecurityContext ctx,
long imageId)
Get all ROI folders for a certain image
|
ROIResult |
loadROI(SecurityContext ctx,
long roiId)
Loads the ROI
|
List<ROIResult> |
loadROIs(SecurityContext ctx,
long imageID)
Loads the ROI related to the specified image.
|
List<ROIResult> |
loadROIs(SecurityContext ctx,
long imageID,
List<Long> measurements)
Loads the ROI related to the specified image.
|
List<ROIResult> |
loadROIs(SecurityContext ctx,
long imageID,
List<Long> measurements,
long userID)
Loads the ROI related to the specified image.
|
List<ROIResult> |
loadROIsByPlane(SecurityContext ctx,
long imageID,
int z,
int t)
Loads the ROI related to the specified image.
|
Collection<ROIResult> |
loadROIsForFolder(SecurityContext ctx,
long imageId,
long folderId)
Get all ROIs which are part of a certain folder
|
void |
removeRoisFromFolders(SecurityContext ctx,
long imageID,
Collection<ROIData> roiList,
Collection<FolderData> folders)
Remove the ROIs from the folders
|
Collection<ROIData> |
saveROIs(SecurityContext ctx,
long imageID,
Collection<ROIData> roiList)
Save the ROI for the image to the server.
|
Collection<ROIData> |
saveROIs(SecurityContext ctx,
long imageID,
long userID,
Collection<ROIData> roiList)
Save the ROI for the image to the server.
|
addPropertyChangeListener, clear, firePropertyChanged, firePropertyChanged, getFacility, logDebug, logError, logInfo, logWarn, removePropertyChangeListener
public int getROICount(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException
-1
in case of error)ctx
- The SecurityContext
imageId
- The image IdDSOutOfServiceException
DSAccessException
public ROIResult loadROI(SecurityContext ctx, long roiId) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.roiId
- The ROI's id.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public List<ROIResult> loadROIsByPlane(SecurityContext ctx, long imageID, int z, int t) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.z
- The selection z-section.t
- The selection timepoint.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public List<ROIResult> loadROIs(SecurityContext ctx, long imageID) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public List<ROIResult> loadROIs(SecurityContext ctx, long imageID, List<Long> measurements) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.measurements
- The measurements IDs linked to the image if any.DSOutOfServiceException
- If the connection is broken, or logged in.DSAccessException
- If an error occurred while trying to retrieve data from OMEDS
service.public List<ROIResult> loadROIs(SecurityContext ctx, long imageID, List<Long> measurements, long userID) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.measurements
- The measurements IDs linked to the image if any.userID
- The user's ID.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public Collection<ROIData> saveROIs(SecurityContext ctx, long imageID, Collection<ROIData> roiList) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID.roiList
- The list of ROI to save.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public Map<FolderData,Collection<ROIData>> addRoisToFolders(SecurityContext ctx, long imageID, Collection<ROIData> roiList, Collection<FolderData> folders) throws DSOutOfServiceException, DSAccessException
ctx
- The SecurityContext
imageID
- The image idroiList
- The ROIs to add to the Foldersfolders
- The Folders to add the ROIs toDSOutOfServiceException
DSAccessException
public Map<FolderData,Collection<ROIData>> addRoisToFolders(SecurityContext ctx, long imageID, Collection<ROIData> roiList, Collection<FolderData> folders, boolean removeFromOtherFolders) throws DSOutOfServiceException, DSAccessException
ctx
- The SecurityContext
imageID
- The image idroiList
- The ROIs to add to the Foldersfolders
- The Folders to add the ROIs toremoveFromOtherFolders
- Pass true
if the ROIs should only be linked to
the specified folders, others will be unlinked.DSOutOfServiceException
DSAccessException
public void removeRoisFromFolders(SecurityContext ctx, long imageID, Collection<ROIData> roiList, Collection<FolderData> folders) throws DSOutOfServiceException, DSAccessException
ctx
- The SecurityContext
imageID
- The image idroiList
- The ROIs to remove from the foldersfolders
- The Folders to remove the ROIs fromDSOutOfServiceException
DSAccessException
public Collection<ROIData> saveROIs(SecurityContext ctx, long imageID, long userID, Collection<ROIData> roiList) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.imageID
- The image's ID (can be -1
for ROIs not attached
to an image)userID
- The user's ID.roiList
- The list of ROI to save.DSOutOfServiceException
- If the connection is broken, or not logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public Collection<FolderData> getROIFolders(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException
ctx
- The SecurityContext
imageId
- The image idDSOutOfServiceException
- If the connection is broken, or logged in.DSAccessException
- If an error occurred while trying to retrieve data from OMEDS
service.public Collection<ROIResult> loadROIsForFolder(SecurityContext ctx, long imageId, long folderId) throws DSOutOfServiceException, DSAccessException
ctx
- The SecurityContext
imageId
- The image idfolderId
- The folder idDSOutOfServiceException
- If the connection is broken, or logged in.DSAccessException
- If an error occurred while trying to retrieve data from OMEDS
service.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.