it.geosolutions.jaiext.iterators
Class RandomIterFallbackShortNoCache
java.lang.Object
it.geosolutions.jaiext.iterators.RandomIterFallbackShortNoCache
- All Implemented Interfaces:
- javax.media.jai.iterator.RandomIter
public class RandomIterFallbackShortNoCache
- extends Object
- implements javax.media.jai.iterator.RandomIter
Modified version of JAI RandomIterFallbackByte
that stores the tile positions in a short array with less memory usage. The current tile is
not cached but it is calculated every time.
Method Summary |
void |
done()
|
double[] |
getPixel(int x,
int y,
double[] dArray)
|
float[] |
getPixel(int x,
int y,
float[] fArray)
|
int[] |
getPixel(int x,
int y,
int[] iArray)
|
int |
getSample(int x,
int y,
int b)
|
double |
getSampleDouble(int x,
int y,
int b)
|
float |
getSampleFloat(int x,
int y,
int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
im
protected RenderedImage im
boundsRect
protected Rectangle boundsRect
sampleModel
protected SampleModel sampleModel
boundsX
protected int boundsX
boundsY
protected int boundsY
RandomIterFallbackShortNoCache
public RandomIterFallbackShortNoCache(RenderedImage im,
Rectangle bounds)
getSample
public int getSample(int x,
int y,
int b)
- Specified by:
getSample
in interface javax.media.jai.iterator.RandomIter
getSampleFloat
public float getSampleFloat(int x,
int y,
int b)
- Specified by:
getSampleFloat
in interface javax.media.jai.iterator.RandomIter
getSampleDouble
public double getSampleDouble(int x,
int y,
int b)
- Specified by:
getSampleDouble
in interface javax.media.jai.iterator.RandomIter
getPixel
public int[] getPixel(int x,
int y,
int[] iArray)
- Specified by:
getPixel
in interface javax.media.jai.iterator.RandomIter
getPixel
public float[] getPixel(int x,
int y,
float[] fArray)
- Specified by:
getPixel
in interface javax.media.jai.iterator.RandomIter
getPixel
public double[] getPixel(int x,
int y,
double[] dArray)
- Specified by:
getPixel
in interface javax.media.jai.iterator.RandomIter
done
public void done()
- Specified by:
done
in interface javax.media.jai.iterator.RandomIter
Copyright © 2006–2015 GeoSolutions. All rights reserved.