Home
last modified time | relevance | path

Searched refs:heightData (Results 1 – 11 of 11) sorted by relevance

/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
DAbstractHeightMap.java58 protected float[] heightData = null; field in AbstractHeightMap
73 heightData = null; in unloadHeightMap()
101 heightData[x + (z * size)] = height; in setHeightAtPoint()
153 return heightData[x + (z * size)]; in getTrueHeightAtPoint()
167 return ((heightData[x + (z * size)]) * heightScale); in getScaledHeightAtPoint()
214 return heightData; in getHeightMap()
222 float[] hm = new float[heightData.length]; in getScaledHeightMap()
223 for (int i=0; i<heightData.length; i++) { in getScaledHeightMap()
224 hm[i] = heightScale * heightData[i]; in getScaledHeightMap()
261 dos.write((int) heightData[j + (i * size)]); in save()
[all …]
DRawHeightMap.java85 public RawHeightMap(float heightData[]) { in RawHeightMap() argument
86 this.heightData = heightData; in RawHeightMap()
87 this.size = (int) FastMath.sqrt(heightData.length); in RawHeightMap()
155 if (null != heightData) { in load()
161 heightData = new float[size * size]; in load()
181 heightData[index] = dis.readUnsignedShort(); in load()
197 heightData[index] = dis.readUnsignedShort(); in load()
199 heightData[index] = dis.readUnsignedByte(); in load()
DImageBasedHeightMap.java106 heightData = new float[(imageWidth * imageHeight)]; in load()
116heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
121heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
130heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
135heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
DCombinerHeightMap.java233 if (null != heightData) { in load()
238 heightData = new float[size * size]; in load()
248 heightData[i + (j * size)] = in load()
256 heightData[i + (j * size)] = in load()
DFluidSimHeightMap.java143 if (null != heightData) { in load()
147 heightData = new float[size * size]; in load()
214 heightData[x + y * size] = (float) (tempBuffer[curBuf][x + y * size]); in load()
DHillHeightMap.java122 if (null != heightData) { in load()
125 heightData = new float[size * size]; in load()
DMidpointDisplacementHeightMap.java119 if (null != heightData) { in load()
122 heightData = new float[size * size]; in load()
DParticleDepositionHeightMap.java147 if (null != heightData) { in load()
152 heightData = new float[size * size]; in load()
DFaultHeightMap.java134 if (null != heightData) { in load()
137 heightData = new float[size * size]; in load()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/
DGeoMap.java56 public GeoMap(FloatBuffer heightData, int width, int height, int maxval){ in GeoMap() argument
57 hdata = new float[heightData.limit()]; in GeoMap()
58 heightData.get(hdata); in GeoMap()
64 public GeoMap(float[] heightData, int width, int height, int maxval){ in GeoMap() argument
65 this.hdata = heightData; in GeoMap()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/grid/
DFractalTileLoader.java36 this.heightData = this.buffer.array(); in load()