com.jme3.terrain.heightmap
クラス RawHeightMap

java.lang.Object
  上位を拡張 com.jme3.terrain.heightmap.AbstractHeightMap
      上位を拡張 com.jme3.terrain.heightmap.RawHeightMap
すべての実装されたインタフェース:
HeightMap

public class RawHeightMap
extends AbstractHeightMap

RawHeightMap creates a height map from a RAW image file. The greyscale image denotes height based on the value of the pixel for each point. Where pure black the lowest point and pure white denotes the highest.


フィールドの概要
static int FORMAT_16BITBE
          Format specification for 16 bit big endian heightmaps
static int FORMAT_16BITLE
          Format specification for 16 bit little endian heightmaps
static int FORMAT_8BIT
          Format specification for 8 bit precision heightmaps
 
クラス com.jme3.terrain.heightmap.AbstractHeightMap から継承されたフィールド
NORMALIZE_RANGE
 
コンストラクタの概要
RawHeightMap(float[] heightData)
           
RawHeightMap(java.io.InputStream stream, int size, int format, boolean swapxy)
           
RawHeightMap(java.lang.String filename, int size)
          Constructor creates a new RawHeightMap object and loads a RAW image file to use as a height field.
RawHeightMap(java.lang.String filename, int size, int format, boolean swapxy)
           
RawHeightMap(java.net.URL resource, int size, int format, boolean swapxy)
           
 
メソッドの概要
 boolean load()
          load fills the height data array with the appropriate data from the set RAW image.
 void setFilename(java.lang.String filename)
          setFilename sets the file to use for the RAW data.
 void setHeightStream(java.io.InputStream stream)
          setHeightStream sets the stream to use for the RAW data.
 
クラス com.jme3.terrain.heightmap.AbstractHeightMap から継承されたメソッド
erodeTerrain, findMinMaxHeights, flatten, getHeightMap, getInterpolatedHeight, getScaledHeightAtPoint, getScaledHeightMap, getSize, getTrueHeightAtPoint, normalizeTerrain, save, setHeightAtPoint, setHeightScale, setMagnificationFilter, setSize, smooth, unloadHeightMap
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

FORMAT_8BIT

public static final int FORMAT_8BIT
Format specification for 8 bit precision heightmaps

関連項目:
定数フィールド値

FORMAT_16BITLE

public static final int FORMAT_16BITLE
Format specification for 16 bit little endian heightmaps

関連項目:
定数フィールド値

FORMAT_16BITBE

public static final int FORMAT_16BITBE
Format specification for 16 bit big endian heightmaps

関連項目:
定数フィールド値
コンストラクタの詳細

RawHeightMap

public RawHeightMap(java.lang.String filename,
                    int size)
             throws java.lang.Exception
Constructor creates a new RawHeightMap object and loads a RAW image file to use as a height field. The greyscale image denotes the height of the terrain, where dark is low point and bright is high point. The values of the RAW correspond directly with the RAW values or 0 - 255.

パラメータ:
filename - the RAW file to use as the heightmap.
size - the size of the RAW (must be square).
例外:
JmeException - if the filename is null or not RAW, and if the size is 0 or less.
java.lang.Exception

RawHeightMap

public RawHeightMap(float[] heightData)

RawHeightMap

public RawHeightMap(java.lang.String filename,
                    int size,
                    int format,
                    boolean swapxy)
             throws java.lang.Exception
例外:
java.lang.Exception

RawHeightMap

public RawHeightMap(java.io.InputStream stream,
                    int size,
                    int format,
                    boolean swapxy)
             throws java.lang.Exception
例外:
java.lang.Exception

RawHeightMap

public RawHeightMap(java.net.URL resource,
                    int size,
                    int format,
                    boolean swapxy)
             throws java.lang.Exception
例外:
java.lang.Exception
メソッドの詳細

load

public boolean load()
load fills the height data array with the appropriate data from the set RAW image. If the RAW image has not been set a JmeException will be thrown.

戻り値:
true if the load is successfull, false otherwise.

setFilename

public void setFilename(java.lang.String filename)
                 throws java.lang.Exception
setFilename sets the file to use for the RAW data. A call to load is required to put the changes into effect.

パラメータ:
filename - the new file to use for the height data.
例外:
JmeException - if the file is null or not RAW.
java.lang.Exception

setHeightStream

public void setHeightStream(java.io.InputStream stream)
                     throws java.lang.Exception
setHeightStream sets the stream to use for the RAW data. A call to load is required to put the changes into effect.

パラメータ:
stream - the new stream to use for the height data.
例外:
JmeException - if the stream is null or not RAW.
java.lang.Exception