it.geosolutions.jaiext.iterators
Class RandomIterFallbackIntNoCache

java.lang.Object
  extended by it.geosolutions.jaiext.iterators.RandomIterFallbackIntNoCache
All Implemented Interfaces:
javax.media.jai.iterator.RandomIter

public class RandomIterFallbackIntNoCache
extends Object
implements javax.media.jai.iterator.RandomIter

Modified version of JAI RandomIterFallbackByte that stores the tile positions in a int array. The current tile is not cached but it is calculated every time.


Field Summary
protected  Rectangle boundsRect
           
protected  int boundsX
           
protected  int boundsY
           
protected  RenderedImage im
           
protected  SampleModel sampleModel
           
 
Constructor Summary
RandomIterFallbackIntNoCache(RenderedImage im, Rectangle bounds)
           
 
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
 

Field Detail

im

protected RenderedImage im

boundsRect

protected Rectangle boundsRect

sampleModel

protected SampleModel sampleModel

boundsX

protected int boundsX

boundsY

protected int boundsY
Constructor Detail

RandomIterFallbackIntNoCache

public RandomIterFallbackIntNoCache(RenderedImage im,
                                    Rectangle bounds)
Method Detail

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–2014 GeoSolutions. All rights reserved.