@OperatorMetadata(alias="JAI", description="Performs a JAI (Java Advanced Imaging) operation on bands of a data product.", internal=true) public class JaiOp extends Operator
| Constructor and Description |
|---|
JaiOp() |
JaiOp(Product sourceProduct,
String operationName,
HashMap<String,Object> operationParameters,
RenderingHints renderingHints) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeTile(Band targetBand,
Tile targetTile,
ProgressMonitor pm)
Called by the framework in order to compute a tile for the given target band.
|
String |
getOperationName() |
HashMap<String,Object> |
getOperationParameters() |
void |
initialize()
Initializes this operator and sets the one and only target product.
|
void |
setOperationName(String operationName) |
void |
setOperationParameters(HashMap<String,Object> operationParameters) |
canComputeTile, canComputeTileStack, checkForCancellation, computeTileStack, deactivateComputeTileMethod, dispose, doExecute, ensureSceneGeoCoding, ensureSingleRasterSize, ensureSingleRasterSize, execute, finalize, getId, getLogger, getParameter, getParameter, getProductManager, getSourceProduct, getSourceProduct, getSourceProductId, getSourceProducts, getSourceTile, getSourceTile, getSpi, getTargetProduct, getTargetProperty, setLogger, setParameter, setParameterDefaultValues, setRequiresAllBands, setSourceProduct, setSourceProduct, setSourceProducts, setSpi, setTargetProduct, stopTileComputationObservation, updatepublic void initialize()
throws OperatorException
OperatorThe target product can be either defined by a field of type Product annotated with the
TargetProduct annotation or
by calling Operator.setTargetProduct(org.esa.snap.core.datamodel.Product) method.
This method shall never be called directly. The framework calls this method after it has created
an instance of this Operator. This will occur
only once durting the lifetime of an Operator instance.
If not already done, calling the Operator.getTargetProduct() will always trigger
a call to the initialize() method.
Any client code that must be performed before computation of tile data
should be placed here.
initialize in class OperatorOperatorException - If an error occurs during operator initialisation.Operator.getTargetProduct()public String getOperationName()
public void setOperationName(String operationName)
public void setOperationParameters(HashMap<String,Object> operationParameters)
public void computeTile(Band targetBand, Tile targetTile, ProgressMonitor pm) throws OperatorException
OperatorThe default implementation throws a runtime exception with the message "not implemented".
This method shall never be called directly.
computeTile in class OperatortargetBand - The target band.targetTile - The current tile associated with the target band to be computed.pm - A progress monitor which should be used to determine computation cancellation requests.OperatorException - If an error occurs during computation of the target raster.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.