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.
クラス 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