Class PerspectiveLodCalculator
java.lang.Object
com.jme3.terrain.geomipmap.lodcalc.PerspectiveLodCalculator
- All Implemented Interfaces:
Savable,LodCalculator,Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancalculateLod(TerrainPatch patch, List<Vector3f> locations, HashMap<String, UpdatedTerrainPatch> updates) clone()getCenterLocation(TerrainPatch patch) floatbooleanisLodOff()voidread(JmeImporter im) voidvoidsetPixelError(float pixelError) voidvoidbooleanIf true, then this calculator can cause neighbouring terrain chunks to have LOD levels that are greater than 1 apart.voidwrite(JmeExporter ex)
-
Constructor Details
-
PerspectiveLodCalculator
public PerspectiveLodCalculator() -
PerspectiveLodCalculator
-
-
Method Details
-
calculateLod
public boolean calculateLod(TerrainPatch patch, List<Vector3f> locations, HashMap<String, UpdatedTerrainPatch> updates) - Specified by:
calculateLodin interfaceLodCalculator
-
getCenterLocation
-
clone
- Specified by:
clonein interfaceLodCalculator- Overrides:
clonein classObject
-
write
- Specified by:
writein interfaceSavable- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Throws:
IOException
-
usesVariableLod
public boolean usesVariableLod()Description copied from interface:LodCalculatorIf 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.- Specified by:
usesVariableLodin interfaceLodCalculator
-
getPixelError
public float getPixelError() -
setPixelError
public void setPixelError(float pixelError) -
setCam
-
turnOffLod
public void turnOffLod()- Specified by:
turnOffLodin interfaceLodCalculator
-
isLodOff
public boolean isLodOff()- Specified by:
isLodOffin interfaceLodCalculator
-
turnOnLod
public void turnOnLod()- Specified by:
turnOnLodin interfaceLodCalculator
-