Class RawHeightMap
java.lang.Object
com.ardor3d.extension.terrain.heightmap.RawHeightMap
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionRawHeightMap
(InputStream stream, int size) RawHeightMap
(String filename, int size) RawHeightMap
(URL resource, int size) -
Method Summary
Modifier and TypeMethodDescriptionfloat[]
boolean
isFlipX()
boolean
isFlipY()
boolean
boolean
isLoaded()
boolean
isSwapXY()
boolean
load
fills the height data array with the appropriate data from the set RAW image stream or file.void
setFlipX
(boolean flipX) void
setFlipY
(boolean flipY) void
void
setLittleEndian
(boolean isLittleEndian) void
setSwapXY
(boolean swapXY)
-
Constructor Details
-
Method Details
-
loadHeightmap
public boolean loadHeightmap()load
fills the height data array with the appropriate data from the set RAW image stream or file.- Returns:
- true if the load is successful, false otherwise.
-
getHeightData
public float[] getHeightData()- Returns:
- the heightData
-
getFormat
- Returns:
- the format
-
setFormat
- Parameters:
format
- the format to set
-
isLittleEndian
public boolean isLittleEndian()- Returns:
- the isLittleEndian
-
setLittleEndian
public void setLittleEndian(boolean isLittleEndian) - Parameters:
isLittleEndian
- the isLittleEndian to set
-
isSwapXY
public boolean isSwapXY()- Returns:
- the swapXY
-
setSwapXY
public void setSwapXY(boolean swapXY) - Parameters:
swapXY
- the swapXY to set
-
isFlipX
public boolean isFlipX()- Returns:
- the flipX
-
setFlipX
public void setFlipX(boolean flipX) - Parameters:
flipX
- the flipX to set
-
isFlipY
public boolean isFlipY()- Returns:
- the flipY
-
setFlipY
public void setFlipY(boolean flipY) - Parameters:
flipY
- the flipY to set
-
isLoaded
public boolean isLoaded()- Returns:
- the loaded
-