public class MultiTerrainLodControl extends TerrainLodControl
Modifier and Type | Class and Description |
---|---|
protected class |
MultiTerrainLodControl.UpdateMultiLOD
Overrides the parent UpdateLOD runnable to process
multiple terrains.
|
TerrainLodControl.UpdateLOD
camera, cameraLocations, cameras, forceUpdate, hasResetLod, indexer, lastCameraLocations, lodCalcRunning, lodCalculator, previousCameraLocation, terrain, useRenderCamera
enabled, spatial
Constructor and Description |
---|
MultiTerrainLodControl() |
MultiTerrainLodControl(Camera camera) |
MultiTerrainLodControl(Terrain terrain) |
MultiTerrainLodControl(Terrain terrain,
Camera camera) |
MultiTerrainLodControl(Terrain terrain,
java.util.List<Camera> cameras) |
Modifier and Type | Method and Description |
---|---|
void |
addTerrain(TerrainQuad tq)
Add a terrain that will have its LOD handled by this control.
|
protected TerrainLodControl.UpdateLOD |
createLodUpdateTask(java.util.List<Vector3f> locations,
LodCalculator lodCalculator) |
protected DistanceLodCalculator |
makeLodCalculator() |
protected void |
prepareTerrain() |
void |
removeTerrain(TerrainQuad tq)
Add a terrain that will no longer have its LOD handled by this control.
|
cloneFields, controlRender, controlUpdate, detachAndCleanUpControl, forceUpdate, getLodCalculator, isUseRenderCamera, jmeClone, read, setCamera, setCameras, setEnabled, setLodCalculator, setSpatial, setTerrain, setUseRenderCamera, updateLOD, updateLOD, updateLodOffCount, write
cloneForSpatial, getSpatial, isEnabled, render, update
public MultiTerrainLodControl()
public MultiTerrainLodControl(Terrain terrain)
public MultiTerrainLodControl(Camera camera)
protected DistanceLodCalculator makeLodCalculator()
makeLodCalculator
in class TerrainLodControl
public void addTerrain(TerrainQuad tq)
public void removeTerrain(TerrainQuad tq)
protected TerrainLodControl.UpdateLOD createLodUpdateTask(java.util.List<Vector3f> locations, LodCalculator lodCalculator)
createLodUpdateTask
in class TerrainLodControl
protected void prepareTerrain()
prepareTerrain
in class TerrainLodControl