Class BaseSubmosaicProducer
- Object
-
- BaseSubmosaicProducer
-
- All Implemented Interfaces:
SubmosaicProducer
- Direct Known Subclasses:
DefaultSubmosaicProducer
public class BaseSubmosaicProducer extends Object implements SubmosaicProducer
Basic submosaic producer. Accepts all granules and mosaics without any real special handling
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
doInputTransparency
protected boolean
dryRun
protected List<Future<GranuleDescriptor.GranuleLoadingResult>>
granulesFutures
The final lists for granules to be computed, splitted per dimension value.protected int
granulesNumber
The number of collected granulesprotected boolean
hasAlpha
protected Color
inputTransparentColor
protected RasterLayerResponse
rasterLayerResponse
protected double[][]
sourceThreshold
-
Constructor Summary
Constructors Constructor Description BaseSubmosaicProducer(RasterLayerResponse rasterLayerResponse, boolean dryRun)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(GranuleDescriptor granuleDescriptor)
protected boolean
acceptGranule(GranuleDescriptor granuleDescriptor)
protected MosaicInputs
collectGranules()
This methods collects the granules from their eventual multithreaded processing and turn them into aMosaicInputs
object.List<MosaicElement>
createMosaic()
boolean
doInputTransparency()
double[][]
getSourceThreshold()
boolean
hasAlpha()
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface SubmosaicProducer
init, isReprojecting
-
-
-
-
Field Detail
-
granulesFutures
protected final List<Future<GranuleDescriptor.GranuleLoadingResult>> granulesFutures
The final lists for granules to be computed, splitted per dimension value.
-
dryRun
protected final boolean dryRun
-
rasterLayerResponse
protected RasterLayerResponse rasterLayerResponse
-
granulesNumber
protected int granulesNumber
The number of collected granules. *
-
sourceThreshold
protected double[][] sourceThreshold
-
hasAlpha
protected boolean hasAlpha
-
doInputTransparency
protected boolean doInputTransparency
-
inputTransparentColor
protected Color inputTransparentColor
-
-
Constructor Detail
-
BaseSubmosaicProducer
public BaseSubmosaicProducer(RasterLayerResponse rasterLayerResponse, boolean dryRun)
-
-
Method Detail
-
collectGranules
protected MosaicInputs collectGranules() throws IOException
This methods collects the granules from their eventual multithreaded processing and turn them into aMosaicInputs
object.- Returns:
- a
MosaicInputs
ready to be mosaicked. - Throws:
IOException
-
createMosaic
public List<MosaicElement> createMosaic() throws IOException
- Specified by:
createMosaic
in interfaceSubmosaicProducer
- Throws:
IOException
-
accept
public boolean accept(GranuleDescriptor granuleDescriptor)
- Specified by:
accept
in interfaceSubmosaicProducer
-
acceptGranule
protected boolean acceptGranule(GranuleDescriptor granuleDescriptor)
-
doInputTransparency
public boolean doInputTransparency()
- Specified by:
doInputTransparency
in interfaceSubmosaicProducer
-
getSourceThreshold
public double[][] getSourceThreshold()
- Specified by:
getSourceThreshold
in interfaceSubmosaicProducer
-
hasAlpha
public boolean hasAlpha()
- Specified by:
hasAlpha
in interfaceSubmosaicProducer
-
-