com.jme3.terrain.geomipmap.lodcalc
Interface LodCalculator

All Superinterfaces:
java.lang.Cloneable, Savable
All Known Implementing Classes:
DistanceLodCalculator, PerspectiveLodCalculator

public interface LodCalculator
extends Savable, java.lang.Cloneable

Calculate the Level of Detail of a terrain patch based on the cameras, or other locations.


Method Summary
 boolean calculateLod(TerrainPatch terrainPatch, java.util.List<Vector3f> locations, java.util.HashMap<java.lang.String,UpdatedTerrainPatch> updates)
           
 LodCalculator clone()
           
 boolean isLodOff()
           
 void turnOffLod()
           
 void turnOnLod()
           
 boolean usesVariableLod()
          If true, then this calculator can cause neighbouring terrain chunks to have LOD levels that are greater than 1 apart.
 
Methods inherited from interface com.jme3.export.Savable
read, write
 

Method Detail

calculateLod

boolean calculateLod(TerrainPatch terrainPatch,
                     java.util.List<Vector3f> locations,
                     java.util.HashMap<java.lang.String,UpdatedTerrainPatch> updates)

clone

LodCalculator clone()

turnOffLod

void turnOffLod()

turnOnLod

void turnOnLod()

isLodOff

boolean isLodOff()

usesVariableLod

boolean usesVariableLod()
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.