com.jme3.terrain.geomipmap.lodcalc
クラス DistanceLodCalculator

java.lang.Object
  上位を拡張 com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator
すべての実装されたインタフェース:
Savable, LodCalculator, java.lang.Cloneable

public class DistanceLodCalculator
extends java.lang.Object
implements LodCalculator

Calculates the LOD of the terrain based on its distance from the cameras. Taking the minimum distance from all cameras.


コンストラクタの概要
DistanceLodCalculator()
           
DistanceLodCalculator(LodThreshold lodThresholdCalculator)
           
DistanceLodCalculator(TerrainPatch terrainPatch, LodThreshold lodThresholdCalculator)
           
 
メソッドの概要
 boolean calculateLod(java.util.List<Vector3f> locations, java.util.HashMap<java.lang.String,UpdatedTerrainPatch> updates)
           
 LodCalculator clone()
           
 Vector3f getCenterLocation()
           
 void read(JmeImporter im)
           
 void setTerrainPatch(TerrainPatch terrainPatch)
           
 java.lang.String toString()
           
 boolean usesVariableLod()
          If true, then this calculator can cause neighbouring terrain chunks to have LOD levels that are greater than 1 apart.
 void write(JmeExporter ex)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

DistanceLodCalculator

public DistanceLodCalculator()

DistanceLodCalculator

public DistanceLodCalculator(LodThreshold lodThresholdCalculator)

DistanceLodCalculator

public DistanceLodCalculator(TerrainPatch terrainPatch,
                             LodThreshold lodThresholdCalculator)
メソッドの詳細

calculateLod

public boolean calculateLod(java.util.List<Vector3f> locations,
                            java.util.HashMap<java.lang.String,UpdatedTerrainPatch> updates)
定義:
インタフェース LodCalculator 内の calculateLod

getCenterLocation

public Vector3f getCenterLocation()

setTerrainPatch

public void setTerrainPatch(TerrainPatch terrainPatch)
定義:
インタフェース LodCalculator 内の setTerrainPatch

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
例外:
java.io.IOException

clone

public LodCalculator clone()
定義:
インタフェース LodCalculator 内の clone
オーバーライド:
クラス java.lang.Object 内の clone

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString

usesVariableLod

public boolean usesVariableLod()
インタフェース LodCalculator の記述:
If true, then this calculator can cause neighbouring terrain chunks to have LOD levels that are greater than 1 apart. Entropy algorithms will want to return true for this. Straight distance calculations will just want to return false.

定義:
インタフェース LodCalculator 内の usesVariableLod