public class PerspectiveLodCalculator extends java.lang.Object implements LodCalculator
| Constructor and Description |
|---|
PerspectiveLodCalculator() |
PerspectiveLodCalculator(Camera cam,
float pixelError) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
calculateLod(TerrainPatch patch,
java.util.List<Vector3f> locations,
java.util.HashMap<java.lang.String,UpdatedTerrainPatch> updates) |
LodCalculator |
clone() |
Vector3f |
getCenterLocation(TerrainPatch patch) |
float |
getPixelError() |
boolean |
isLodOff() |
void |
read(JmeImporter im) |
void |
setCam(Camera cam) |
void |
setPixelError(float pixelError) |
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.
|
void |
write(JmeExporter ex) |
public PerspectiveLodCalculator()
public PerspectiveLodCalculator(Camera cam, float pixelError)
public boolean calculateLod(TerrainPatch patch, java.util.List<Vector3f> locations, java.util.HashMap<java.lang.String,UpdatedTerrainPatch> updates)
calculateLod in interface LodCalculatorpublic Vector3f getCenterLocation(TerrainPatch patch)
public LodCalculator clone()
clone in interface LodCalculatorclone in class java.lang.Objectpublic void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
public boolean usesVariableLod()
LodCalculatorusesVariableLod in interface LodCalculatorpublic float getPixelError()
public void setPixelError(float pixelError)
public void setCam(Camera cam)
public void turnOffLod()
turnOffLod in interface LodCalculatorpublic boolean isLodOff()
isLodOff in interface LodCalculatorpublic void turnOnLod()
turnOnLod in interface LodCalculator