Package ome.logic

Class PixelsImpl

  • All Implemented Interfaces:
    ome.api.IPixels, ome.api.ServiceInterface, ome.system.SelfConfigurableService

    @Transactional(readOnly=true)
    public class PixelsImpl
    extends AbstractLevel2Service
    implements ome.api.IPixels
    implementation of the Pixels service interface.
    Since:
    OME2.2
    • Field Detail

      • RENDERING_DEF_QUERY_PREFIX

        public static final java.lang.String RENDERING_DEF_QUERY_PREFIX
        Standard rendering definition HQL query prefix
        See Also:
        Constant Field Values
    • Constructor Detail

      • PixelsImpl

        public PixelsImpl()
    • Method Detail

      • getServiceInterface

        public java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
        Returns the interface this implementation is for.
        Specified by:
        getServiceInterface in interface ome.system.SelfConfigurableService
        See Also:
        SelfConfigurableService.getServiceInterface()
      • retrievePixDescription

        public ome.model.core.Pixels retrievePixDescription​(long pixId)
        Specified by:
        retrievePixDescription in interface ome.api.IPixels
      • retrieveRndSettingsFor

        public ome.model.display.RenderingDef retrieveRndSettingsFor​(long pixId,
                                                                     long userId)
        Specified by:
        retrieveRndSettingsFor in interface ome.api.IPixels
      • retrieveAllRndSettings

        public java.util.List<ome.model.IObject> retrieveAllRndSettings​(long pixId,
                                                                        long userId)
        Specified by:
        retrieveAllRndSettings in interface ome.api.IPixels
      • retrieveRndSettings

        public ome.model.display.RenderingDef retrieveRndSettings​(long pixId)
        Specified by:
        retrieveRndSettings in interface ome.api.IPixels
      • loadRndSettings

        public ome.model.display.RenderingDef loadRndSettings​(long renderingDefId)
        Specified by:
        loadRndSettings in interface ome.api.IPixels
      • copyAndResizePixels

        @Transactional(readOnly=false)
        public java.lang.Long copyAndResizePixels​(long pixelsId,
                                                  java.lang.Integer sizeX,
                                                  java.lang.Integer sizeY,
                                                  java.lang.Integer sizeZ,
                                                  java.lang.Integer sizeT,
                                                  java.util.List<java.lang.Integer> channelList,
                                                  java.lang.String methodology,
                                                  boolean copyStats)
        Specified by:
        copyAndResizePixels in interface ome.api.IPixels
      • copyAndResizeImage

        @Transactional(readOnly=false)
        public java.lang.Long copyAndResizeImage​(long imageId,
                                                 java.lang.Integer sizeX,
                                                 java.lang.Integer sizeY,
                                                 java.lang.Integer sizeZ,
                                                 java.lang.Integer sizeT,
                                                 java.util.List<java.lang.Integer> channelList,
                                                 java.lang.String name,
                                                 boolean copyStats)
        Specified by:
        copyAndResizeImage in interface ome.api.IPixels
      • createImage

        @Transactional(readOnly=false)
        public java.lang.Long createImage​(int sizeX,
                                          int sizeY,
                                          int sizeZ,
                                          int sizeT,
                                          java.util.List<java.lang.Integer> channelList,
                                          ome.model.enums.PixelsType pixelsType,
                                          java.lang.String name,
                                          java.lang.String description)
        Specified by:
        createImage in interface ome.api.IPixels
      • setChannelGlobalMinMax

        @Transactional(readOnly=false)
        public void setChannelGlobalMinMax​(long pixelsId,
                                           int channelIndex,
                                           double min,
                                           double max)
        Specified by:
        setChannelGlobalMinMax in interface ome.api.IPixels
      • saveRndSettings

        @Transactional(readOnly=false)
        public void saveRndSettings​(ome.model.display.RenderingDef rndSettings)
        Specified by:
        saveRndSettings in interface ome.api.IPixels
      • getBitDepth

        public int getBitDepth​(ome.model.enums.PixelsType pixelsType)
        Specified by:
        getBitDepth in interface ome.api.IPixels
      • getEnumeration

        @Deprecated
        public <T extends ome.model.IObject> T getEnumeration​(java.lang.Class<T> klass,
                                                              java.lang.String value)
        Deprecated.
        Specified by:
        getEnumeration in interface ome.api.IPixels
      • getAllEnumerations

        @Deprecated
        public <T extends ome.model.IObject> java.util.List<T> getAllEnumerations​(java.lang.Class<T> klass)
        Deprecated.
        Specified by:
        getAllEnumerations in interface ome.api.IPixels