public interface IRenderingSettings extends ServiceInterface
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Boolean,java.util.List<java.lang.Long>> |
applySettingsToDataset(long from,
long to)
Applies rendering settings to all images in a given
Dataset . |
boolean |
applySettingsToImage(long from,
long to)
Applies rendering settings to a given
Image . |
java.util.Map<java.lang.Boolean,java.util.List<java.lang.Long>> |
applySettingsToImages(long from,
java.util.List<java.lang.Long> to)
Applies rendering settings to a given
Image . |
boolean |
applySettingsToPixels(long from,
long to)
Applies rendering settings to a given
Pixels . |
java.util.Map<java.lang.Boolean,java.util.List<java.lang.Long>> |
applySettingsToProject(long from,
long to)
Applies rendering settings to all images in all
Datasets
of a given Project . |
<T extends ome.model.IObject> |
applySettingsToSet(long from,
java.lang.Class<T> type,
java.util.Set<java.lang.Long> nodeIds)
Applies rendering settings to one or many containers.
|
ome.model.display.RenderingDef |
createNewRenderingDef(ome.model.core.Pixels pixels)
Creates a new rendering definition object along with its sub-objects.
|
ome.model.display.RenderingDef |
getRenderingSettings(long pixelsId)
Returns the default rendering settings for a given pixels for the
current user.
|
void |
resetDefaults(ome.model.display.RenderingDef def,
ome.model.core.Pixels pixels)
Resets the given rendering settings to those that are specified by the
rendering engine intelligent pretty good image (PG) logic for
the pixels set linked to that set of rendering settings.
|
<T extends ome.model.IObject> |
resetDefaultsByOwnerInSet(java.lang.Class<T> type,
java.util.Set<java.lang.Long> nodeIds)
Resets the rendering settings of a given group of containers based on
the owner's (essentially a copy).
|
void |
resetDefaultsForPixels(long pixelsId)
Resets a Pixels' default rendering settings back to those that are
specified by the rendering engine intelligent pretty good image
(PG) logic.
|
java.util.Set<java.lang.Long> |
resetDefaultsInDataset(long dataSetId)
Resets a dataset's rendering settings back to those that are specified
by the rendering engine intelligent pretty good image (PG) logic.
|
void |
resetDefaultsInImage(long imageId)
Resets an image's default rendering settings back to those that are
specified by the rendering engine intelligent pretty good image
(PG) logic.
|
<T extends ome.model.IObject> |
resetDefaultsInSet(java.lang.Class<T> type,
java.util.Set<java.lang.Long> nodeIds)
Resets a rendering settings back to one or many containers that are
specified by the rendering engine intelligent pretty good image
(PG) logic.
|
ome.model.display.RenderingDef |
resetDefaultsNoSave(ome.model.display.RenderingDef def,
ome.model.core.Pixels pixels)
Resets the given rendering settings to those that are specified by the
rendering engine intelligent pretty good image (PG) logic for
the pixels set linked to that set of rendering settings.
|
<T extends ome.model.IObject> |
resetMinMaxInSet(java.lang.Class<T> type,
java.util.Set<java.lang.Long> nodeIds)
Resets a the channel windows for one or many containers back to their
global minimum and global maximum for the channel.
|
boolean |
sanityCheckPixels(ome.model.core.Pixels pFrom,
ome.model.core.Pixels pTo)
Checks if the specified sets of pixels are compatible.
|
void |
setOriginalSettingsForPixels(long pixelsId)
Resets an Pixels' default rendering settings back to channel global
minimum and maximum.
|
java.util.Set<java.lang.Long> |
setOriginalSettingsInDataset(long datasetId)
Resets a dataset's rendering settings back to channel global
minimum and maximum.
|
void |
setOriginalSettingsInImage(long imageId)
Resets an image's default rendering settings back to channel global
minimum and maximum.
|
<T extends ome.model.IObject> |
setOriginalSettingsInSet(java.lang.Class<T> type,
java.util.Set<java.lang.Long> nodeIds)
Resets a rendering settings back to channel global minimum and maximum
for the specified containers.
|
boolean sanityCheckPixels(ome.model.core.Pixels pFrom, ome.model.core.Pixels pTo)
true
if the pixels set is valid, false
otherwise.pFrom
- The pixels set to copy the settings from.pTo
- The pixels set to copy the settings to.ome.model.display.RenderingDef getRenderingSettings(long pixelsId)
pixelsId
- The Id of the Pixels
ValidationException
- if the image qualified by
imageId
is unlocatable.ome.model.display.RenderingDef createNewRenderingDef(ome.model.core.Pixels pixels)
pixels
- The Pixels set to link to the rendering definition.Pixels
has been unloaded.void resetDefaults(ome.model.display.RenderingDef def, ome.model.core.Pixels pixels)
getRenderingSettings(long)
as it relies on
certain objects being loaded. The rendering settings are saved upon
completion.def
- A RenderingDef
to reset. It is expected that
def.pixels will be unloaded and that the actual linked Pixels set
will be provided in the pixels
argument.pixels
- The Pixels set for def
.ome.model.display.RenderingDef resetDefaultsNoSave(ome.model.display.RenderingDef def, ome.model.core.Pixels pixels)
getRenderingSettings(long)
as it relies on
certain objects being loaded. The rendering settings are not saved.def
- A RenderingDef
to reset. It is expected that
def.pixels will be unloaded and that the actual linked Pixels set
will be provided in the pixels
argument.pixels
- The Pixels set for def
.def
with the rendering settings reset.void resetDefaultsInImage(long imageId)
imageId
- The Id of the Image
.ValidationException
- if the image qualified by
imageId
is unlocatable.void resetDefaultsForPixels(long pixelsId)
pixelsId
- The Id of the Pixels
.ValidationException
- if the Pixels qualified by
pixelsId
is unlocatable.java.util.Set<java.lang.Long> resetDefaultsInDataset(long dataSetId)
dataSetId
- The Id of the DataSet
.Set
of image IDs that have had their
rendering settings reset.ValidationException
- if the image qualified by
dataSetId
is unlocatable.<T extends ome.model.IObject> java.util.Set<java.lang.Long> resetDefaultsInSet(java.lang.Class<T> type, java.util.Set<java.lang.Long> nodeIds)
Project
Dataset
Image
Plate
Pixels
type
- The type of nodes to handle.nodeIds
- Ids of the node type.Set
of image IDs that have had their
rendering settings reset.ValidationException
- if an illegal type
is
used.<T extends ome.model.IObject> java.util.Set<java.lang.Long> resetDefaultsByOwnerInSet(java.lang.Class<T> type, java.util.Set<java.lang.Long> nodeIds)
Project
Dataset
Image
Plate
Pixels
type
- The type of nodes to handle.nodeIds
- Ids of the node type.Set
of image IDs that have had their
rendering settings reset.ValidationException
- if an illegal type
is
used.<T extends ome.model.IObject> java.util.Set<java.lang.Long> resetMinMaxInSet(java.lang.Class<T> type, java.util.Set<java.lang.Long> nodeIds)
Project
Dataset
Image
Plate
Pixels
type
- The type of nodes to handle.nodeIds
- Ids of the node type.Set
of image IDs that have had their
rendering settings reset.ValidationException
- if an illegal type
is
used.<T extends ome.model.IObject> java.util.Map<java.lang.Boolean,java.util.List<java.lang.Long>> applySettingsToSet(long from, java.lang.Class<T> type, java.util.Set<java.lang.Long> nodeIds)
Dataset
is to be copied to, all images within that
Dataset
will have the rendering settings applied. Supported
container types are:
Project
Dataset
Image
Plate
Screen
Pixels
T
- The type of object to copy to.from
- The Id of the pixels set to copy the rendering settings from.type
- The type of nodes to handle.nodeIds
- Ids of the node type.TRUE
is a collection of images ID, the settings were successfully applied to.
The value of the FALSE
is a collection of images ID, the
settings could not be applied to.ValidationException
- if an illegal type
is
used.java.util.Map<java.lang.Boolean,java.util.List<java.lang.Long>> applySettingsToProject(long from, long to)
Datasets
of a given Project
.from
- The Id of the pixels set to copy the rendering settings from.to
- The Id of the project container to apply settings to.TRUE
is a collection of images ID, the settings were successfully applied to.
The value of the FALSE
is a collection of images ID, the
settings could not be applied to.ValidationException
- if the rendering settings from
is unlocatable or the project to
is unlocatable.java.util.Map<java.lang.Boolean,java.util.List<java.lang.Long>> applySettingsToDataset(long from, long to)
Dataset
.from
- The Id of the pixels set to copy the rendering settings from.to
- The Id of the dataset container to apply settings to.TRUE
is a collection of images ID, the settings were successfully applied to.
The value of the FALSE
is a collection of images ID, the
settings could not be applied to.ValidationException
- if the rendering settings from
is unlocatable or the dataset to
is unlocatable.boolean applySettingsToImage(long from, long to)
Image
.from
- The Id of the pixels set to copy the rendering settings from.to
- The Id of the image container to apply settings to.true
if the settings were successfully applied,
false
otherwise.ValidationException
- if the rendering settings from
is unlocatable or the image to
is unlocatable.java.util.Map<java.lang.Boolean,java.util.List<java.lang.Long>> applySettingsToImages(long from, java.util.List<java.lang.Long> to)
Image
.from
- The Id of the pixels set to copy the rendering settings from.to
- The Id of the image container to apply settings to.true
if the settings were successfully applied,
false
otherwise.ValidationException
- if the rendering settings from
is unlocatable or the image to
is unlocatable.boolean applySettingsToPixels(long from, long to)
Pixels
.from
- The Id of the pixels set to copy the rendering settings from.to
- The Id of the pixels container to apply settings to.ValidationException
- if the rendering settings from
is unlocatable or the pixelsto
is unlocatable.java.util.Set<java.lang.Long> setOriginalSettingsInDataset(long datasetId)
datasetId
- The id of the dataset to handle.Set
of image IDs that have had their
rendering settings reset.ValidationException
- if the image qualified by
datasetId
is unlocatable.<T extends ome.model.IObject> java.util.Set<java.lang.Long> setOriginalSettingsInSet(java.lang.Class<T> type, java.util.Set<java.lang.Long> nodeIds)
Project
Dataset
Image
Plate
Pixels
type
- The type of nodes to handle.nodeIds
- Ids of the node type.Set
of image IDs that have had their
rendering settings reset.ValidationException
- if an illegal type
is
used.void setOriginalSettingsInImage(long imageId)
imageId
- The Id of the Image
.ValidationException
- if the image qualified by
imageId
is unlocatable.void setOriginalSettingsForPixels(long pixelsId)
pixelsId
- The Id of the Pixels
set.ValidationException
- if the image qualified by
pixelsId
is unlocatable.