Class PerspectiveLodCalculator
java.lang.Object
com.jme3.terrain.geomipmap.lodcalc.PerspectiveLodCalculator
- All Implemented Interfaces:
- Savable,- LodCalculator,- Cloneable
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
PerspectiveLodCalculatorpublic PerspectiveLodCalculator()
- 
PerspectiveLodCalculator
 
- 
- 
Method Details- 
calculateLodpublic boolean calculateLod(TerrainPatch patch, List<Vector3f> locations, HashMap<String, UpdatedTerrainPatch> updates) - Specified by:
- calculateLodin interface- LodCalculator
 
- 
getCenterLocation
- 
clone- Specified by:
- clonein interface- LodCalculator
- Overrides:
- clonein class- Object
 
- 
write- Specified by:
- writein interface- Savable
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Throws:
- IOException
 
- 
usesVariableLodpublic 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 interface- LodCalculator
 
- 
getPixelErrorpublic float getPixelError()
- 
setPixelErrorpublic void setPixelError(float pixelError) 
- 
setCam
- 
turnOffLodpublic void turnOffLod()- Specified by:
- turnOffLodin interface- LodCalculator
 
- 
isLodOffpublic boolean isLodOff()- Specified by:
- isLodOffin interface- LodCalculator
 
- 
turnOnLodpublic void turnOnLod()- Specified by:
- turnOnLodin interface- LodCalculator
 
 
-