glcanvas.data
Class FlowGeometry
java.lang.Object
glcanvas.data.FlowGeometry
public class FlowGeometry
- extends java.lang.Object
Constructor Summary |
FlowGeometry(java.io.File file,
boolean bigEndian)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isFlipped
public boolean isFlipped
FlowGeometry
public FlowGeometry(java.io.File file,
boolean bigEndian)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
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)