Class BaseSubmosaicProducer
Object
BaseSubmosaicProducer
- All Implemented Interfaces:
SubmosaicProducer
- Direct Known Subclasses:
DefaultSubmosaicProducer
Basic submosaic producer. Accepts all granules and mosaics without any real special handling
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final booleanprotected final List<Future<GranuleDescriptor.GranuleLoadingResult>>The final lists for granules to be computed, splitted per dimension value.protected intThe number of collected granulesprotected booleanprotected Colorprotected RasterLayerResponseprotected double[][] -
Constructor Summary
ConstructorsConstructorDescriptionBaseSubmosaicProducer(RasterLayerResponse rasterLayerResponse, boolean dryRun) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(GranuleDescriptor granuleDescriptor) protected booleanacceptGranule(GranuleDescriptor granuleDescriptor) protected MosaicInputsThis methods collects the granules from their eventual multithreaded processing and turn them into aMosaicInputsobject.booleandouble[][]booleanhasAlpha()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SubmosaicProducer
init, isReprojecting
-
Field Details
-
granulesFutures
The final lists for granules to be computed, splitted per dimension value. -
dryRun
protected final boolean dryRun -
rasterLayerResponse
-
granulesNumber
protected int granulesNumberThe number of collected granules. * -
sourceThreshold
protected double[][] sourceThreshold -
hasAlpha
protected boolean hasAlpha -
doInputTransparency
protected boolean doInputTransparency -
inputTransparentColor
-
-
Constructor Details
-
BaseSubmosaicProducer
-
-
Method Details
-
collectGranules
This methods collects the granules from their eventual multithreaded processing and turn them into aMosaicInputsobject.- Returns:
- a
MosaicInputsready to be mosaicked. - Throws:
IOException
-
createMosaic
- Specified by:
createMosaicin interfaceSubmosaicProducer- Throws:
IOException
-
accept
- Specified by:
acceptin interfaceSubmosaicProducer
-
acceptGranule
-
doInputTransparency
public boolean doInputTransparency()- Specified by:
doInputTransparencyin interfaceSubmosaicProducer
-
getSourceThreshold
public double[][] getSourceThreshold()- Specified by:
getSourceThresholdin interfaceSubmosaicProducer
-
hasAlpha
public boolean hasAlpha()- Specified by:
hasAlphain interfaceSubmosaicProducer
-