glcanvas.data
Class FlowGeometry

java.lang.Object
  extended by glcanvas.data.FlowGeometry

public class FlowGeometry
extends java.lang.Object


Field Summary
 boolean isFlipped
           
 
Constructor Summary
FlowGeometry(java.io.File file, boolean bigEndian)
           
 
Method Summary
 int[] getBounds()
           
 int getDimX()
           
 int getDimY()
           
 float[] getInterpolationCoeffsAt(Vec3 pos, int[] neighbors)
           
 Vec3 getMax()
           
 Vec3 getMin()
           
 Interpolation getNeighbors(Vec3 pos)
          Returns all neighbors of the given position counterclockwise
 Vec3 getNormCoords(Vec3 pos)
           
 int getNumChannels()
           
 Vec3 getValueAt(int id)
           
 Vec3 getValueAt(int x, int y)
           
 int getVtxIdx(int x, int y)
           
 boolean within(Vec3 pos)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isFlipped

public boolean isFlipped
Constructor Detail

FlowGeometry

public FlowGeometry(java.io.File file,
                    boolean bigEndian)
             throws java.io.FileNotFoundException,
                    java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

getBounds

public int[] getBounds()

getDimX

public int getDimX()

getDimY

public int getDimY()

getInterpolationCoeffsAt

public float[] getInterpolationCoeffsAt(Vec3 pos,
                                        int[] neighbors)

getMax

public Vec3 getMax()

getMin

public Vec3 getMin()

getNeighbors

public Interpolation getNeighbors(Vec3 pos)
Returns all neighbors of the given position counterclockwise

Parameters:
pos -
Returns:
int[] of vertex ID's

getNormCoords

public Vec3 getNormCoords(Vec3 pos)

getNumChannels

public int getNumChannels()

getValueAt

public Vec3 getValueAt(int id)

getValueAt

public Vec3 getValueAt(int x,
                       int y)

getVtxIdx

public int getVtxIdx(int x,
                     int y)

within

public boolean within(Vec3 pos)