|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.terrain.HeightMapSampler
public class HeightMapSampler
| Nested Class Summary | |
|---|---|
static class |
HeightMapSampler.Type
|
| Constructor Summary | |
|---|---|
HeightMapSampler(float[][] map)
|
|
HeightMapSampler(GridResourceSpec<GridSampler> spec)
|
|
HeightMapSampler(int sDim,
int tDim)
|
|
HeightMapSampler(java.net.URL resource)
|
|
HeightMapSampler(java.net.URL resource,
int sDim,
int tDim)
|
|
HeightMapSampler(java.net.URL resource,
int sDim,
int tDim,
HeightMapSampler.Type type)
|
|
| Method Summary | |
|---|---|
float[][] |
getMap()
Returns the backing two dimensional float array for direct manipulation. |
float |
getOffset()
|
float |
getS1()
|
float |
getS2()
|
float |
getScale()
|
int |
getSDim()
|
float |
getT1()
|
float |
getT2()
|
int |
getTDim()
|
void |
release()
|
org.openmali.vecmath2.Vector3f |
sampleBinormal(float s,
float t)
Samples a binormal vector from the grid |
float |
sampleHeight(float s,
float t)
Samples a height value from the grid |
org.openmali.vecmath2.Vector3f |
sampleNormal(float s,
float t)
Samples a normal vector from the grid |
org.openmali.vecmath2.Vector3f |
sampleTangent(float s,
float t)
Samples a tangent vector from the grid |
void |
setOffset(float offset)
|
void |
setS1(float s1)
|
void |
setS2(float s2)
|
void |
setScale(float scale)
|
void |
setT1(float t1)
|
void |
setT2(float t2)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeightMapSampler(java.net.URL resource)
throws java.io.IOException
java.io.IOException
public HeightMapSampler(java.net.URL resource,
int sDim,
int tDim)
throws java.io.IOException
java.io.IOException
public HeightMapSampler(java.net.URL resource,
int sDim,
int tDim,
HeightMapSampler.Type type)
throws java.io.IOException
java.io.IOExceptionpublic HeightMapSampler(float[][] map)
public HeightMapSampler(int sDim,
int tDim)
public HeightMapSampler(GridResourceSpec<GridSampler> spec)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void release()
release in interface GridResourcerelease in interface GridSampler
public float sampleHeight(float s,
float t)
GridSampler
sampleHeight in interface GridSamplers - the "longitude" coordinate of the gridt - the "latitude" coordinate of the grid
public float[][] getMap()
public int getSDim()
public int getTDim()
public float getOffset()
public void setOffset(float offset)
public float getScale()
public void setScale(float scale)
public float getS1()
public void setS1(float s1)
public float getS2()
public void setS2(float s2)
public float getT1()
public void setT1(float t1)
public float getT2()
public void setT2(float t2)
public org.openmali.vecmath2.Vector3f sampleBinormal(float s,
float t)
GridSampler
sampleBinormal in interface GridSamplers - the "longitude" coordinate of the gridt - the "latitude" coordinate of the grid
public org.openmali.vecmath2.Vector3f sampleNormal(float s,
float t)
GridSampler
sampleNormal in interface GridSamplers - the "longitude" coordinate of the gridt - the "latitude" coordinate of the grid
public org.openmali.vecmath2.Vector3f sampleTangent(float s,
float t)
GridSampler
sampleTangent in interface GridSamplers - the "longitude" coordinate of the gridt - the "latitude" coordinate of the grid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||