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) |
PerspectiveLodCalculator |
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 LodCalculator
public Vector3f getCenterLocation(TerrainPatch patch)
public PerspectiveLodCalculator clone()
clone
in interface LodCalculator
clone
in class java.lang.Object
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
public boolean usesVariableLod()
LodCalculator
usesVariableLod
in interface LodCalculator
public float getPixelError()
public void setPixelError(float pixelError)
public void setCam(Camera cam)
public void turnOffLod()
turnOffLod
in interface LodCalculator
public boolean isLodOff()
isLodOff
in interface LodCalculator
public void turnOnLod()
turnOnLod
in interface LodCalculator