Class RawHeightMap

java.lang.Object
com.ardor3d.extension.terrain.heightmap.RawHeightMap

public class RawHeightMap extends Object
  • 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

      public RawHeightMap.HeightMapFormat getFormat()
      Returns:
      the format
    • setFormat

      public void setFormat(RawHeightMap.HeightMapFormat format)
      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