edu.stanford.rsl.konrad.data
Class Grid2D

java.lang.Object
  extended by edu.stanford.rsl.konrad.data.Grid
      extended by edu.stanford.rsl.konrad.data.Grid2D

public class Grid2D
extends Grid


Constructor Summary
Grid2D(float[][] buffer)
           
Grid2D(float[][] buffer, int[] border, int innerDimension)
           
 
Method Summary
 void addAtIndex(int i, int j, float val)
           
 void addAtIndex(int i, int j, int component, float val)
           
 float getAtIndex(int i, int j)
           
 float getAtIndex(int i, int j, int component)
           
 float[][] getBuffer()
           
 Grid1D getSubGrid(int index)
           
 double[] indexToPhysical(double i, double j)
           
 double[] physicalToIndex(double x, double y)
           
 void setAtIndex(int i, int j, float val)
           
 void setAtIndex(int i, int j, int component, float val)
           
 
Methods inherited from class edu.stanford.rsl.konrad.data.Grid
getBoundary, getOrigin, getSize, getSpacing, setOrigin, setSpacing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid2D

public Grid2D(float[][] buffer)

Grid2D

public Grid2D(float[][] buffer,
              int[] border,
              int innerDimension)
Method Detail

getBuffer

public float[][] getBuffer()

getSubGrid

public Grid1D getSubGrid(int index)

indexToPhysical

public double[] indexToPhysical(double i,
                                double j)

physicalToIndex

public double[] physicalToIndex(double x,
                                double y)

getAtIndex

public float getAtIndex(int i,
                        int j)

getAtIndex

public float getAtIndex(int i,
                        int j,
                        int component)

addAtIndex

public void addAtIndex(int i,
                       int j,
                       float val)

addAtIndex

public void addAtIndex(int i,
                       int j,
                       int component,
                       float val)

setAtIndex

public void setAtIndex(int i,
                       int j,
                       float val)

setAtIndex

public void setAtIndex(int i,
                       int j,
                       int component,
                       float val)