public class OperationConstDescriptor
extends OperationDescriptorImpl
OperationDescriptorImpl
describing the OperationConst operationModifier and Type | Field and Description |
---|---|
static int |
CONSTANT_INDEX |
static int |
DEST_NODATA_INDEX |
static int |
OPERATION_INDEX |
static int |
RANGE_INDEX |
static int |
ROI_INDEX |
Constructor and Description |
---|
OperationConstDescriptor()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static RenderedOp |
create(RenderedImage source,
double[] constants,
AlgebraDescriptor.Operator op,
ROI roi,
Range noData,
double destinationNoData,
RenderingHints hints)
Executes the selected operation with a constant on the input image.
|
static RenderableOp |
createRenderable(RenderableImage source,
double[] constants,
AlgebraDescriptor.Operator op,
ROI roi,
Range noData,
double destinationNoData,
RenderingHints hints)
Executes the selected operation with a constant on the input image.
|
boolean |
isRenderableSupported()
Returns
true since renderable operation is supported. |
protected boolean |
validateParameters(String modeName,
ParameterBlock args,
StringBuffer msg) |
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, isRenderedSupported, makeDefaultSourceClassList, validateArguments, validateArguments, validateParameters, validateRenderableArguments, validateRenderableSources, validateSources, validateSources
public static final int OPERATION_INDEX
public static final int ROI_INDEX
public static final int RANGE_INDEX
public static final int DEST_NODATA_INDEX
public static final int CONSTANT_INDEX
public boolean isRenderableSupported()
true
since renderable operation is supported.isRenderableSupported
in interface OperationDescriptor
isRenderableSupported
in class OperationDescriptorImpl
protected boolean validateParameters(String modeName, ParameterBlock args, StringBuffer msg)
validateParameters
in class OperationDescriptorImpl
public static RenderedOp create(RenderedImage source, double[] constants, AlgebraDescriptor.Operator op, ROI roi, Range noData, double destinationNoData, RenderingHints hints)
Creates a ParameterBlockJAI
from all supplied arguments except hints
and invokes
JAI.create(String,ParameterBlock,RenderingHints)
.
source
- RenderedImage
source.constants
- the constants array to apply to the sourceop
- operation to executeroi
- optional ROI objectoptional
- nodata range for checking nodatadestinationNoData
- value to set for destination NoDatahints
- The RenderingHints
to use. May be null
.RenderedOp
destination.JAI
,
ParameterBlockJAI
,
RenderedOp
public static RenderableOp createRenderable(RenderableImage source, double[] constants, AlgebraDescriptor.Operator op, ROI roi, Range noData, double destinationNoData, RenderingHints hints)
Creates a ParameterBlockJAI
from all supplied arguments except hints
and invokes
JAI.createRenderable(String,ParameterBlock,RenderingHints)
.
source
- RenderedImage
source.constants
- the constants array to apply to the sourceop
- operation to executeroi
- optional ROI objectoptional
- nodata range for checking nodatadestinationNoData
- value to set for destination NoDatahints
- The RenderingHints
to use. May be null
.RenderableOp
destination.JAI
,
ParameterBlockJAI
,
RenderableOp
Copyright © 2006–2018 GeoSolutions. All rights reserved.