public interface IRenderingSettings extends ServiceInterface
Modifier and Type | Method and Description |
---|---|
Map<Boolean,List<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 . |
Map<Boolean,List<Long>> |
applySettingsToImages(long from,
List<Long> to)
Applies rendering settings to a given
Image . |
boolean |
applySettingsToPixels(long from,
long to)
Applies rendering settings to a given
Pixels . |
Map<Boolean,List<Long>> |
applySettingsToProject(long from,
long to)
Applies rendering settings to all images in all
Datasets
of a given Project . |
<T extends IObject> |
applySettingsToSet(long from,
Class<T> type,
Set<Long> nodeIds)
Applies rendering settings to one or many containers.
|
RenderingDef |
createNewRenderingDef(Pixels pixels)
Creates a new rendering definition object along with its sub-objects.
|
RenderingDef |
getRenderingSettings(long pixelsId)
Returns the default rendering settings for a given pixels for the
current user.
|
void |
resetDefaults(RenderingDef def,
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 IObject> |
resetDefaultsByOwnerInSet(Class<T> type,
Set<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.
|
Set<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 IObject> |
resetDefaultsInSet(Class<T> type,
Set<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.
|
RenderingDef |
resetDefaultsNoSave(RenderingDef def,
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 IObject> |
resetMinMaxInSet(Class<T> type,
Set<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(Pixels pFrom,
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.
|
Set<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 IObject> |
setOriginalSettingsInSet(Class<T> type,
Set<Long> nodeIds)
Resets a rendering settings back to channel global minimum and maximum
for the specified containers.
|
boolean sanityCheckPixels(Pixels pFrom, 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.RenderingDef getRenderingSettings(long pixelsId)
pixelsId
- The Id of the Pixels
ValidationException
- if the image qualified by
imageId
is unlocatable.RenderingDef createNewRenderingDef(Pixels pixels)
pixels
- The Pixels set to link to the rendering definition.Pixels
has been unloaded.void resetDefaults(RenderingDef def, 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
.RenderingDef resetDefaultsNoSave(RenderingDef def, 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.Set<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 IObject> Set<Long> resetDefaultsInSet(Class<T> type, Set<Long> nodeIds)
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 IObject> Set<Long> resetDefaultsByOwnerInSet(Class<T> type, Set<Long> nodeIds)
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 IObject> Set<Long> resetMinMaxInSet(Class<T> type, Set<Long> nodeIds)
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 IObject> Map<Boolean,List<Long>> applySettingsToSet(long from, Class<T> type, Set<Long> nodeIds)
Dataset
is to be copied to, all images within that
Dataset
will have the rendering settings applied. Supported
container types are:
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.Map<Boolean,List<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.Map<Boolean,List<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.Map<Boolean,List<Long>> applySettingsToImages(long from, List<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.Set<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 IObject> Set<Long> setOriginalSettingsInSet(Class<T> type, Set<Long> nodeIds)
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.
Version: 5.2.4-ice35-b23
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.