it.geosolutions.jaiext.crop
Class CropDescriptor

java.lang.Object
  extended by javax.media.jai.OperationDescriptorImpl
      extended by it.geosolutions.jaiext.crop.CropDescriptor
All Implemented Interfaces:
Serializable, javax.media.jai.OperationDescriptor, javax.media.jai.RegistryElementDescriptor

public class CropDescriptor
extends javax.media.jai.OperationDescriptorImpl

Describes the "Crop" operation which performs a crop on an image, like the standard JAI Crop, but does so respecting the tile scheduler and tile cache specified in the rendering hints

Author:
Andrea Aime
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.media.jai.OperationDescriptorImpl
resources, sourceNames, supportedModes
 
Fields inherited from interface javax.media.jai.OperationDescriptor
NO_PARAMETER_DEFAULT
 
Constructor Summary
CropDescriptor()
           
 
Method Summary
static javax.media.jai.RenderedOp create(RenderedImage source0, Float x, Float y, Float width, Float height, javax.media.jai.ROI roi, Range noData, double[] destNoData, RenderingHints hints)
          Performs cropping to a specified bounding box.
static void register()
          Manually registers the operation in the registry in case it's not already there
 
Methods inherited from class javax.media.jai.OperationDescriptorImpl
arePropertiesSupported, getDefaultSourceClass, getDestClass, getDestClass, getInvalidRegion, getName, getNumParameters, getNumSources, getParamClasses, getParamDefaults, getParamDefaultValue, getParameterListDescriptor, getParamMaxValue, getParamMinValue, getParamNames, getPropertyGenerators, getPropertyGenerators, getRenderableDestClass, getRenderableSourceClasses, getResourceBundle, getResources, getSourceClasses, getSourceClasses, getSourceNames, getSupportedModes, isImmediate, isModeSupported, isRenderableSupported, isRenderedSupported, makeDefaultSourceClassList, validateArguments, validateArguments, validateParameters, validateParameters, validateRenderableArguments, validateRenderableSources, validateSources, validateSources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CropDescriptor

public CropDescriptor()
Method Detail

register

public static void register()
Manually registers the operation in the registry in case it's not already there


create

public static javax.media.jai.RenderedOp create(RenderedImage source0,
                                                Float x,
                                                Float y,
                                                Float width,
                                                Float height,
                                                javax.media.jai.ROI roi,
                                                Range noData,
                                                double[] destNoData,
                                                RenderingHints hints)
Performs cropping to a specified bounding box.

Parameters:
source - RenderedImage source 0.
x - The x origin of the cropping operation.
y - The y origin of the cropping operation.
width - The width of the cropping operation.
height - The height of the cropping operation.
roi - Eventual ROI object used for performing the crop operation.
noData - Eventual No Data Range object used for checking if the No Data are present.
hints - The RenderingHints to use, may be null


Copyright © 2006–2015 GeoSolutions. All rights reserved.